LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

per-condition for every step

In my sequence file I launch a new execution. This new execution performs loops to check threshold and if reached then it closes the instruments. Meantime the sequence file is runing and performing measurement from the instrument.

The issue is that if the new execution closes the instrument and right after that sequence file tries to do a measurement then the instrument not initialized error shows up.

 

1. Thought of adding a precondition that measurement happens only when a flag (say InstrumentNotValid != True) . Is there a way to apply this flag to all steps without going into step setting of each step?

 

2. Are there any other suggestion on how to perform a clean close?

*************************************************
CLD
*************************************************
0 Kudos
Message 1 of 2
(2,546 Views)

What instrument are you communicating with and when your new execution closes the instrument, do you want the original execution to stop or do something else?

 

Rohama K.
0 Kudos
Message 2 of 2
(2,527 Views)