LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop compiling array when paused

Solved!
Go to solution

In the vi below, while waiting for user input I would like the vi not to be processing additional data. The result now is that instead of one row of results per iteration I get multiple depending on how long I wait.

 

 

0 Kudos
Message 1 of 12
(3,741 Views)
You need some data dependency between the File Dialog and that first For loop. Wire the File Dialog's error output to the edge of the For Loop, and that will prevent it from spinning while you wait for the user to react.
Message Edited by Broken Arrow on 04-13-2010 01:48 PM
Richard






0 Kudos
Message 2 of 12
(3,732 Views)
I may have misunderstood your question. What exactly are we waiting on? The Pause button? From True to False?
Richard






0 Kudos
Message 3 of 12
(3,705 Views)
When the vi runs, it pauses automatically at each iteration, where it should wait until a user corrects the cursor position on the graph. It is this data that should be saved, and it is, the problem is that in the output file multiple rows of the same data appear instead of just one.
0 Kudos
Message 4 of 12
(3,701 Views)
Here is an example of what I mean, attached is the input file (DEM_test) and the associated output file (DEM_testsubset). Each iteration is represented in the first column, instead of one entery there are multiple.
Download All
0 Kudos
Message 5 of 12
(3,694 Views)

Whats the purpose of the continue button?

Maybe you can try this, I remove the case structure, and move the continue button, it will stay in that loop until you press the button.

DEM_analysis.jpg

Rodrigo Cuenca
www.cidesi.com

0 Kudos
Message 6 of 12
(3,669 Views)

The continue button is supposed to ensure the program waits until the user manually positions the cursors. The continue button is pressed once the cursors are in position, and the program proceeds to the next iteration. The button works fine, and the data that is output is correct, it is just that would like the vi to output one for for each iteration.

 

PS I have LV 8.6

0 Kudos
Message 7 of 12
(3,659 Views)
Solution
Accepted by topic author Jammin
Message 8 of 12
(3,656 Views)

Thanks Rodrigo. Just curious, most of the posts I have read seem to promote the use of event structures. Do you feel that they would be appropriate in this circumstance?

 

dave

0 Kudos
Message 9 of 12
(3,646 Views)
Yes, instead of polling the continue button, you can use an event structure, it should look something like this.
Rodrigo Cuenca
www.cidesi.com

Message 10 of 12
(3,637 Views)