LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

repeating a test

hi everybody,

in my test I simply read out a spreadsheet file and plot it. if you dont press the stop button it remains running , right here I want to add a button which should repeat the whole procedure again.

This procedure should be repeatable as long as I choose another file to read,it should than read out the new data and plot it. It should go till I press stop button.

any suggestions?

best regards
john
0 Kudos
Message 1 of 2
(2,581 Views)
Since LabVIEW is a dataflow language you can use the dataflow inherent in your program to make buttons visible or hidden at different points of execution. Then you have to decide how many buttons you want to present to the operator.

For instance, you might always want a stop button presented to the operator, but the button might not take effect when pressed, because the dataflow of the program has not reached a certain point. These kinds of problems can be handled by either partitioning the program into smaller parts, such that a button press program action will be executed without a significant time delay (from the operator perspective) or by showing and hiding the buttons that provide operator control, when appropriate for the program to operate the button function.

You can use some of the vi templates that are available from the start menu, such as queued state machine, or producer-consumer, to help organize the control of operations in the program.
0 Kudos
Message 2 of 2
(2,574 Views)