10-13-2009 07:58 PM
10-13-2009 08:56 PM
10-13-2009 11:03 PM - edited 10-13-2009 11:09 PM
10-14-2009 01:06 AM
Hi Nicholas,
I think he means that the "GO"-while loop is on the outside of everything else, so it starts right away as the very first thing and runs until you hit the button.
There are several ways of solving your problem, but I think Ravens solution is by far the easiest one 😉
Kudos!!
10-14-2009 09:40 AM - edited 10-14-2009 09:40 AM
Yes, before the main while loop. One other thing you'll need is some data dependency such as the boolean wire running out of the Start while loop and running to the Main while loop, even though you won't use that value in the main while loop. That guarantees the main while loop won't start until the starter loop ends.
There are other ways of doing this as well such as a state machine, or using event structures. But this method will be quick to add and get you going sooner. If your program becomes more complicated, then you may want to think about a more sophisticated design.
10-14-2009 10:22 AM - edited 10-14-2009 10:30 AM
10-14-2009 11:05 AM
I've had a chance to look more closely at your code.
I think the problem is that you have a 10msec timeout wired to your event structure. And all of your main code is in that timeout case. (What are you actually trying to do with that code?) So of course it looks like the program is starting right away.
You should add a "Go" button. Create a value change event for that. Wire a -1 into a shift register which goes into the timeout node. In the Go Value Change event, have a 10 (or whatever msec timeout you want) go into the right hand shift register. Wire from left hand to right hand shift register in all the other cases.
Now your main code won't run (because of the infinite timeout) until you have hit the Go button which effective changes the timeout to 10 msec.
10-14-2009 11:18 AM
I have done a lot of work on the program. It starts like I want it to. I just have to figure out how to calculate the unfilled collumns (X degrees to gel, gel to peak, start to peak). The peak is just the maximum number. I do not know how to find the time at which it reaches that number. Also the gel temperature, unlike the "X Control", must be separate between each test (0,1,2,3). Ill keep working and attached my in progress Vi. Thank you for all your help.
The program is very rough around the edges right now. I am just trying to grasp the whole Labview programming. I am a freshman in college right now and trying to learn Labview while studying.
10-14-2009 02:28 PM
10-14-2009 03:35 PM