12-20-2005 10:57 AM
12-20-2005 11:20 AM
Hi,
The simplest way would be to use the API TS method PropertyObject.SetValBoolean, PropertyObject.SetValNumber or PropertyObject.Set ValString. With the SequenceContext you create a PropertyObject using the method SequenceContext.AsPropertyObject, which you use as the reference for the the SetVal method.
For the SetVal method, pass the full lookup string of your variable eg "Locals.MyString" and set the option parameter to 0x01 (insert if missing).
If you are calling this from LabVIEW, then use the SetVal property VI.
This will insert a varable into the Locals that is "in scope" of the step that is performing the task.
In the TestStand Help - "Using the API in Different Programming Languages" and in the TestStand User manuals there is more information to help you.
This will only make a runtime version of your Local. ie when your sequencefile stop executing your Local will not exist in the Static version of the Sequence File.
12-20-2005 02:17 PM
Hi,
I have attached a small example TS3.0 sequencefile and LV7.1 VI.
Hope this helps
Regards
Ray Farmer
12-22-2005 07:36 AM