Duplicate Concept, Industrial Simulation Program To VB Conversion?

Jul 19, 2009

I am trying to convert an industrial simulation program to a VB program There is one hard concept that I have problem with, it is called "Duplicate" Ex: When 1 person pass the duplicate block A, then 2 persons comes out, (that person is cloned). 1st person goes path 1, has delay time of 1 hour. 2nd person goes path 2, has delay time of 2 hours. At the end of the 1st hour, 1st person arrives at the detour, at the end of 2nd hour, 2nd person arrives at the detour, but 1st person already moves on to the next task for an hour.

So you can consider them doing their separate tasks simultaneously. Then complication comes in when somewhere down the path, 1st and 2nd person pass another duplicate B, then total of 4 persons will run into their own separates paths and delays. Then they will come back to the starting duplicate block A, thus creates total of 8 persons and follow the same path above again.

Until some condition has been met (ex: total number of persons pass through duplicate B), then all of them will leave the system.Anyone has any idea what is the best way (logically easy to follow) to program the concept? I hope I explained it clearly. It's unfortunate that MSDN doesn't allow attaching image or video.

View 2 Replies


ADVERTISEMENT

Building Arena Simulation Model With External Program?

Jan 13, 2012

I have a requirement to construct a Arena simulation model using an entirely separated external VB program, instead of using the build-in VBA programming capabilty. I have some progress on building such program, but not satisfied with the behavior.

Is it possible to create a Model without starting the Arena.exe?If the program halt for any reason (such as termination of debugging) during the model creation steps, the subsequent call to the CreateObject function failed with result like "Cannot create ActiveX/Com objects". This error still occurs even if I manually kill the Arena.exe via the Task Manager. How to avoid this?

-- Current Code --

Try
arenaApp = CType(CreateObject("Arena.Application"), Arena.Application)
arenaModel = arenaApp.Models.Add

[code]....

View 1 Replies

Wpf - Web Resources For Industrial HMI Software Exists?

Mar 14, 2012

I am developing Human-Machine Interface industrial applications for touchscreen computers running on Windows XP embedded. At present, all our applications are written using Visual Basic 6, with some portions in OpenGL.

We are on the verge of adopting a newer technology. We are experimenting VB.NET with .NET Framework and WPF, but we wonder if it is a good choice for us.Our software is not real-time, as the real-time portions are confined to other hardware or software modules, but of course it should be rather responsive.

We found that WPF is not really oriented to embedded software nor to touchscreen user interface. In addition, our embedded computers must be fanless and therefore not really powerful, and WPF looks a bit slow on such hardware (compared to VB6).We are proficient in Basic language, and prefer this kind of language to C-like languages.Which Web resources are available to provide advice regarding our kind of software?

View 1 Replies

Elevator Simulation System

Feb 21, 2010

where can i refer this system. this system consist on elevator location, the level that the consumer need to go and others.

View 1 Replies

Simulation Of Double Click?

Apr 7, 2009

if you can simulate a "double click" when you click a button. What I mean is that,

1 - you click on the button,

2 - the button behaves as if it were clicked twice.

I need this because for some reason, some of the buttons on my form that give focus to a PDF reader need to be clicked twice in a row to work. I think this is because with the component, there are different areas to give focus, but you can only just say "AxAcroPDF.Focus" .

Can I simulate a "double click" on the action of a single click?

View 7 Replies

Program Duplicate Part Of Itself In Another Location

Feb 16, 2011

ok so i have done some searching and i can't seem to find any topics on this subject maybe im not searching for the right topic but here is my problem maybe someone could give me some advise: im writing a program that has a "main" .exe on any system. it will run and do what i am asking it to so far but my problem is i need it to generate a copy of only a portion of itself it has to generate a form and a login form to export in any specified location for transfer and travel and make it "run-able" without the main being present

[Code]...

View 1 Replies

Dice Roll Simulation With Rnd Function?

Apr 9, 2009

dice roll simulation with Rnd function

View 4 Replies

Forms :: Game Of Life Simulation?

Feb 28, 2011

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim x, y As Integer

[code].....

View 4 Replies

How To Use Raw Input With Simulation Ondevice Arrival Events

Nov 8, 2011

I wish to use raw input on an application that i know accepts it and simulate ondevicearrival events for a physical hardware device so i dont have to plug it in to test on device arrival. I can find the pid and other hardware specific numbers if needed for the simulation but im really just wanting to simlulate multiple mice for ondevicearrival.

Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt.

View 1 Replies

Interface And Graphics :: Simulation Of A Light Source And Mirrors

Jan 6, 2011

I am trying to do is to draw a ray of light emitted by a light source and it is going to be reflected mirrors. I rotate the emitter and mirrors and the ray of light shold obey the laws of reflection. The emitter and mirrors are in an opaque room which means light should not go out. Where I am now is that I am able to draw the ray but when the angle is 90 degrees ( +or-) all the drawing disappears. I set some conditions to make up for this situation, but it does not seem to work. Besides if the angle exceeds 90 degrees, the line is drawn in the opposite direction.One other thing that happens is I set the ray to stop when either end_x_emitter_ray or end_y_emitter_ray = 500. It works for the end_x_emitter_ray but not for the end_y_emitter_ray[end_x_emitter_ray and end_y_emitter_ray are the point where the ray end]I have uploaded the my whole code here. Can you guys suggest me what can be done to make it work appropriately?

View 6 Replies

Industrial App: Raise An Event For Something That Doesn't Have An Event?

Sep 15, 2010

I want to raise an event for an opto-input state change but not sure if I can. Basically I have 4 opto-inputs on a PCI control card - one of which changes pretty rapidly - that I currently poll with a timer. I'm looking at getting a proper hardware counter for that but the other 3 are production status indicators. I'd prefer it if they alerted the app to a state change though.

Depending on the state of one of the inputs I have to fire a relay which simulates a button push. Having been playing with serial ports and getting a very useful app built for logging production data into a SQL Server DB I want to re-visit a proof-of-concept system I built a few months ago.

Current code - which works fine - but I'd like to change is like this:

Private Sub tmrOptoInput_0_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrOptoInput_0.Tick
'Read OptoInput_1 to Monitor Track State...
Dim aType As Byte ' replace Byte with any other type

[code].....

Having 4 inputs so I need 4 timers, plus another one that polls the database and checks a status flag which triggers the app to start logging. I'd like it to be event driven rather than timer driven if at all possible but I don't know how and there's nothing in the control card docs. Also I can't seem to find anything relevant on the web.

View 2 Replies

Convert Vb6 App To .NET Concept?

Feb 4, 2009

(i dunno what title that describes my question better) well, i'm new in this .NET box. i used by Vb6. and now i want to convert my vb6 app to .NET concept. well now i'm stuck with DataGridView, seems like this control is an "all in one" control and memory eater too. well what i want is to have 2 combobox column in datagridview. say as cboGridID and cboGridDesc

while i type in cboGridID in a row, the cboGridID is dropdowned and select the item which is by Autocomplete, while in cboGridID is active i want the cboGridDesc dropdowned too, and select the item by the same index in cboGridID. and vice versa if i type in cboGridDesc

View 15 Replies

Write A Conversion Program?

Mar 11, 2010

i want to write a program in visual basic .net 2003 console application that will take one variable and then a menu to ask what the user wishes to do.the menu is a conversion of currency i have a code that worked but i whenever i press the other option on the menu the screen just closes

here is the code :

Dim x As Double
Dim y As Double
Dim z As Double
Dim m As Integer

[code]...

View 3 Replies

Count The Duplicate And Show The Most Duplicate?

Mar 17, 2011

I have this data in txt file and the data keeps changing all the time.

[code]...

I would like to read all lines and compare, if the same name and same address is found, which is in the [......], then i need to count it and show the most frequent buyer!should i read it all and put in array, and compare and put the duplicate data and count into another array?

View 6 Replies

CONCEPT - Control The Message And The Ads

Nov 7, 2008

A commercial application we are selling can display a User control written in VB.Net in the interface. I am writing a vertical strip that will display some of our ads to our customers. I would like to be able to control the message and the ads. My idea is to upload an XML file to our server, then have the Vb.Net add-in (user control) download the XML file to a temp location and display the contents as advertisement. 1. Is that a good way to do this? I am open to other suggestions. 2. Is there a way I could embed javascript inside user control? I want to be able to animate the text displayed if possible and I dont know how to do that in Vb.Net user control.

View 4 Replies

Insert A Password Concept In VB?

Aug 25, 2010

make a user name and password in visual basic6.0,

View 3 Replies

Replace Registered Dll Concept?

Jul 22, 2009

I am replacing a VB6 application with a rewritten counterpart in VB.Net. In the VB6 app there was a 'control' application which presented a form to the user and allowed them to select a 'client' from a drop down list. Selecting a client caused the reading of an ini file which set client-specific parameters, including the program names of several dlls, which were also written in VB6 and registered on the subject machine.

For example, each 'client' had a different letter format, and the letter was written by the selected dll. This made everything late-bound, but there is only one user. Most of all, it made it convenient to continually update individual letters by updating only that dll, and dropping the dll on top of the old one. Thus the (clerical) user had only to be told to save this file to the usual folder. I could have compiled everything together in one exe, making my updates larger and more complex.

In re-doing this in VB.Net, how should I replace this sort of approach?

I could tie everything together in one big project (and compile it to an exe which is the large update I was avoiding). Should I just do that? If I continue with the approach of having my client-specific (.net) dlls compiled separately, does this make sense in the .Net world? How do I call them? Do they need to be registered as they were before? What's the right way to do this and still give me the flexibility I had?

View 4 Replies

The Concept Of App.config File?

Feb 6, 2012

[code].....

View 3 Replies

Zipping Concept In Vs 2008

Mar 11, 2011

I want to compress and decompress folder and subfolder in vb.net in windows application.i am using vs2008.

View 10 Replies

C# - Use The Multithreading Concepts And Deadlock Concept?

Mar 27, 2009

I will connect with one database from several machines. In all machines they need to insert the data in single table. In that time: how to use multithreading and deadlock concepts? Using the MySQL database and also MS Access.

View 2 Replies

Concept Or Idea To Create Forum

Dec 5, 2010

I want to create a website like a forum to talk about new technology in my community.This website will useful for students also people in my country to improve their knowledge..So let share me some concepts or idea to research more about it.

View 4 Replies

Adding A Formula To A Temperature Conversion Program

Nov 14, 2010

I'm relatively new to VB, started a programing course in Uni recently What I'm looking to do is to add the following formulae into the program.

[Code]...

View 4 Replies

Define An Implicit Conversion Operator In Program?

Aug 21, 2009

In C# you can use the implicit keyword to define an implicit user-defined type conversion operator.

In VB.NET you can define a CType conversion operator that will explicitly convert a user-defined type into another type.

Is there a way to declare an implicit conversion operator in VB.NET?

View 2 Replies

Displaying Results From A Temperature Conversion Program?

Oct 13, 2010

I am having trouble displaying my results from a temperature conversion program. I am sure it is something simple that I have overlooked. Here is the code.

[Code]...

View 3 Replies

How To Make Temperature (Celsius) Conversion Program

May 2, 2010

I'm new to visual basic and have decided to make a temperature conversion program. I've attached a screenshot to aid in my description. The program reads the temperatures on the left(from text boxes), converts them, and displays the answers on the right in text boxes. The program has a fever check at the bottom which displays whether or not the converted values are a fever.

I've managed to get this to work no problem, but I'm trying to get it so if the user enters the temperatures directly into the "result" textboxes, that the fever check still works. Unfortunately I'm having no luck, the fever check will only display a message if the values have been converted, not directly entered by the user. Here is the code I tried(fever.Text is what is displayed in a textbox above the fever check button):

Private Sub FeverCheck_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FeverCheck.Click
'Turn string values entered into Decimal Values so they can be compared to decimal values
Dim fahrfever As Decimal
Dim Celsfever As Decimal
'The following two lines have problems when debugging
[Code] .....

View 3 Replies

Grasping The Concept / Context Of Two Dimensional Arrays?

Oct 29, 2010

I am having difficulties grasping the concept / context of two dimensional arrays. For the assignment I am working on I am required to use radio buttons to allow a user to vote if they like or dislike an item from a combo box. The contents of the combo box have been populated through the IDE via tht item property.I understand how to set up my rows and columns, which will be, (0 to 4), (0 to 1). The trouble I am having is how to record and display the votes and have them correspond to the selected item from the combo box. Can anyone give me an example of how something like this works?

View 9 Replies

Implementation Of Generation Data Group (GDG) Concept?

Aug 28, 2008

Has anyone implemented the mainframe concept of a Generation Data Group (GDG) in VB.

View 1 Replies

Insert A Password Concept In Visual Basic?

Mar 3, 2011

My responsibility is to build a vb.net function that when a scanner scans an object, it would take the scanned string and call a stored procedure to get a row of data that match that scanned string and pass the data row to an application that would print out a label. below is my vb.net and sql server stored procedure script 1. Do I have to come up with a public class in order to store my row of data to pass it on to a different vb.net application that would take that data row and print out a label? 2. In my stored procedure, how would I return the founded data row to the vb.net function?

[code]...

View 8 Replies

Possible To Achieve Performance Tuning With Same Thread Concept?

Apr 26, 2011

We have developed a vb.net application using multi-threaded listener concept and a dedicated thread for each folder to monitor. With that we simultaneously keep track of the incoming files in each folder.Currently, we are facing an issue whenever we receive multiple files of bulk volume, parallel processing of the files getting delayed with thread concept or failing sometimes.We need to implement the same logic with some other concept avoiding multi-hreading. Or is it possible to achieve performance tuning with the same thread concept?

View 2 Replies

Run Multiple Funcations Simultaneously Using Multithreading Concept?

Jun 6, 2012

How to run multiple funcations simultaneously using multithreading concept?

Actually i am making a software which has backend tool as MS ACCESS. it has 15000+ records in database and i need to display that records as my software loads..but it is much time consunable and sometimes it even goes out of time exception

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved