03-01-2010 12:25 AM
Hi,
I have an event structure in a while loop and i have a graph with 2 cursors on it. the graph is within the loop outside event structure and it gets a waveform when an event occurs.
in a seperate loop i have the cursor position property of 2 cursors. i subtract them to get their distance. but when i move the cursors on the graph that is in the first while loop doesnot change the values given out by the property nodes in the second loop
is it something related to event structure? does the actual graph needs to be updated all the time or is it ok if it gets a waveform only on an event
can somebody please help
Thanks in advance..
Solved! Go to Solution.
03-01-2010 01:35 AM
attached is the vi that i cannot figure out why the cursor position only update when its first called. if i stop and run the program again the cursors doesnot update anymore.
does anybody know why this happens?
Thanks
03-01-2010 01:36 AM
sorry forgot to attach ,
here is the file
03-01-2010 02:01 AM
The value of the 'Stop 2' variable is in memory still 'True' so on a second (and consequent) run your upper loop will always terminate after the first run.
The display of the 'Stop 2' LED is being resetted when you hit the 'Get Waveform' button. making the value False.
So reset the button variable after finishing both will loops or before starting both while loops.
Ton
03-01-2010 02:05 AM