06-06-2008 06:49 PM
06-06-2008 07:00 PM
06-06-2008 07:17 PM
06-06-2008 07:46 PM
06-06-2008 07:50 PM
06-07-2008 01:56 AM
06-07-2008 02:33 AM
It is all in the dataflow. Your while loop will not output data until the loop has finished, so if you place a probe after the while loop, it will not contain data until the first loop has stopped.
Run your VI in execution highlighting mode for a better understanding. Yes, the second loop has no purpose. Again, it will always receive a TRUE on the boolean (because only if this wire is true the previous loop was able to complete). Once the first loop is done, the value of the boolean will never get read again and the true value exiting the first loop will stop the second loop after one iteration.
These are very basic concents that are very essential. You should probably start with a few LabVIEW tutorials to get a better understanding.
06-07-2008 11:14 AM
Thank You for that explanation, the code you saw was just an example not the code I am using. I am trying to measure to different things: angular velocity and angular acceleration from a motor. I got angular velocity by looking for an event and then dividing the distance between events by the amount of time past. Now to get my acceleration I have to measure the change in velocity and divide that by the change time. To do this I was originally trying to display both the present velocity and velocity at some time step before present one. This is way I needed the second while loop, so I could put a delay in that loop thus giving me a velocity at some knowen time step before the present one. If there is anyway this can be accomplished I sure appreciate it.
Thank You.
I attached my orginal code.
06-09-2008 08:04 PM