NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Read variable from sequence

Is it possible to read a variable value from a Test Stand script and use it in the application. Specifically, I would like to read a Sequence File Global variable (which stores the script version) and display it in my application's About Box. I am using TestStand 3.0
 
Thanks,
 
AlanJ
0 Kudos
Message 1 of 4
(3,205 Views)
Yes there are some TS functions and some LV VI's that do this. They are called get property value and set property value.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 4
(3,198 Views)

Hi Alan,

Some questions. I dont understand "Teststand script". Is this a running execution? What is your application ? Is this an external process or just a code module ? 

One hint on SequenceFile Globals: These variables are on present in one SequenceFile. If you open an other SequneceFile they are looking (if not copied) different and have no relations between them.

greetings

juergen 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 4
(3,185 Views)

Hi juergen,

By "Teststand script" I mean a sequence. My application is a VB.NET GUI, based on the TestStand .NET example for TestStand 3.0.

Joe and juergen,

I found a solution. The following two lines of code (in Sub axApplicationMgr_DisplaySequenceFile):

Dim seqVersion As String = seq.SequenceFile.FileGlobalsDefaultValues.GetValString("VERSION", 0)

MessageBox.Show("Seq version: " & seqVersion)

Thanks for your help!

AlanJ

 

 

0 Kudos
Message 4 of 4
(3,174 Views)