NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

modify TestStand Step parameters from LabVIEW in runtime

Hi all,
 
I try to change parameter values of a TestStand step in LabVIEW. When I return from the modifying vi (Learn Barcode Template), the following happens:
 
1. I watch RunState.SequenceFile.Data..., I see the changed parameter
2. I watch RunState.Sequence.Main..., which is basically the same target as mentioned above, but here the parameters are unchanged.
3. I need the changed parameters in the Read Barcode.vi. This vi returns an error, because the parameters are unchanged.
4. When I restart the sequence, and halt at the first step, and watch again both parameters (the sam parameters but different path), the changed values appear.
 
Is there a method, which enables to refresh the changed parameters immediately? I tried for example IncChangeCount, but it just marks the sequence as changed. In the learn Barcode Template.vi I open and close the references properly.
 
regards
MB
 
0 Kudos
Message 1 of 2
(3,572 Views)
Hi,

the parameters will be tranfered when the code module execution is finished. I don't understand what exactly you're changing inside your VI, possibly you can post the VI for getting some more information.

When you change your parameters inside the file you're calling in the first step, it's normal that the parameter in TestStand first will be refreshed when you execute the sequence once again in my understanding.

When you use the ActiveX API inside the LV VI and want to change values in TestStand, you can use variables. Parameters will be transfered when calling the code module or returning from the code module.

Another point is the interactive execution, is there a special reason why you execute without a process model? Possibly there could be changes in the runstate property object also...

regards,

Nikolai
0 Kudos
Message 2 of 2
(3,545 Views)