NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use local variable in LabVIEW-Action?

Hi All!

 

There is local variable (for example "MyVariable") in local scope of project. There is Action-step, created by LabVIEW. One of input terminals step is "Sequence Context".

How can I access to MyVariable by Sequence Context? Unbundle? It does't work.

 

Thank you.

0 Kudos
Message 1 of 3
(3,421 Views)

On the TestStand palette there is a VI called TestStand - Get Property Value.vi.  Use that.  Attached is an image showing how to use it.  The trick is making it produce the correct data type.  Do that by right clicking on the VI and selecting Select Type.  Then you can choose the type.  I think in LV 2010 and TS 2010 it is a polymorphic VI and you can just change it.  I wrote an example here for Chaz: http://forums.ni.com/t5/NI-TestStand/How-to-execute-two-steps-in-parallel/td-p/1449874

 

It's the second example that's attached.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 3
(3,415 Views)

Thank you jigg for good help! I understand now, it simpleSmiley Happy

 

LyzV

0 Kudos
Message 3 of 3
(3,408 Views)