annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Stop compiling array when paused

Risolto!
Vai alla soluzione

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
Messaggio 1 di 12
4.599Visualizzazioni
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
Messaggio 2 di 12
4.590Visualizzazioni
I may have misunderstood your question. What exactly are we waiting on? The Pause button? From True to False?
Richard






0 Kudos
Messaggio 3 di 12
4.563Visualizzazioni
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
Messaggio 4 di 12
4.559Visualizzazioni
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.
Scarica tutti
0 Kudos
Messaggio 5 di 12
4.552Visualizzazioni

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
Messaggio 6 di 12
4.527Visualizzazioni

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
Messaggio 7 di 12
4.517Visualizzazioni
Soluzione
Accettato da Jammin
Messaggio 8 di 12
4.514Visualizzazioni

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
Messaggio 9 di 12
4.504Visualizzazioni
Yes, instead of polling the continue button, you can use an event structure, it should look something like this.
Rodrigo Cuenca
www.cidesi.com

Messaggio 10 di 12
4.495Visualizzazioni