NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent LV Controls and Indicators from saving the last values passed by Teststand?

Hi All,
 
I have troubles with some LabVIEW controls and indicators when I call certain VIs from Teststand. My problem is, that some controls or indicators are not beeing cleared or resetted to default each time I call the VI during a test cycle. For example there is VI-Call at the start of my Test-Sequence to retrieve some informations from the user (Visible Front-Panel). The VI has an Enum-Control with 3 Items. Item 0 is the default value. If I select the third Item for example in the first Test-Cycle, the Enum-Control is still on the third Item in the following cycles.
 
Within another VI I wait for a signal from the FPGA-Interface. If the signal comes, a boolean Indicator lights up. In the first test cycle everything works fine, but in the following test runs the boolean is still on from the previous VI-Call yet before the signal came.
 
Until now I tried really everything. From setting the VIs to reintrant and setting the VI-Option "Clear Indicators when called" (works, but the tests run slowlier) or putting an "Reinitialize All to Default Values"-Node on the Blockdiagramm before the program code starts (not good, because all VI Control-Values passed by Testsand are cleared through this method). The only thing that worked so far was to not set the "Preferred Execution System" to "same as caller" in the concerned VIs. For example the option "User Interface" worked.
 
What could be the reason for this strange VI-behavior when it is called from Teststand?
 
Thanks a lot!
Stefan
0 Kudos
Message 1 of 3
(3,018 Views)
Hi Stefan,

which versions of Labview and Teststand are you using?
Perhaps you have avery easy VI a sequence file.

Because then I can test it here and find a solution...

Best regards
Dippi
0 Kudos
Message 2 of 3
(2,994 Views)
Hi Stefan,
 
I think I understand what you are trying to do and am able to reproduce the behavior you describe.
The way I would solve this is to force LabVIEW to reset the controls/indicators to their default values at the end of the execution of the vi, by calling the "Reinitialize All to Default Values" node at the end (forcing order of execution through error wires).
 
I've created a sample that does this, its in LabVIEW 8.5 and TestStand 4.0.1, let me know if you need it in a previous version.
 
Hope this helps!
Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 3 of 3
(2,938 Views)