NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically specify module for a TS sequence step without pop-up dialog?

I am using Labview 6.1 and TestStand 2.0.
I am programatically creating sequence steps and wish to programatically specify a module for each step.
However, I don't want to use the Step.SpecifyModule method as I'd like to do it without the pop-up dialog.
Is there a way of doing this?

Thanks in advance for any help.

Dan
0 Kudos
Message 1 of 4
(3,299 Views)
Hi Dan,

Yes there is a way you can do this. When you insert a step into a sequence, based on the adapter (i.e. LabVIEW) that the step is using, a step property called SData is populated with the info you supply in the dialog. In the sequence editor, select Configure>>Station Options>>Preferences and select the option "Show Hidden Properties". Right click on one of the steps that uses an adapter and select "Open Tree View" from the context menu. In the tree view, view the step's properties by clicking the "+" symbol beside it. Here you should see a property called SData. Inside of this property, you will see information regarding the configuaration of your step. You should be able to set any of these properties using the SetValXXX and GetValXXX methods
of the Propertyobject class. However, the SData property is NOT copied at run-time so any changes you make at runtime, will affect ALL running instances of that sequence. Please refer to the following link for more information:

http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/246f6c77f5ad473e86256a2c0055c0d0?OpenDocument

Hope this helps!
Message 2 of 4
(3,299 Views)
Thanks Bob.
Exactly what I was looking for.

(If you're interested I now have a VI which, when run once in a seq file, will generate a test sequence from a database template for that test sequence.)

Dan
0 Kudos
Message 3 of 4
(3,299 Views)
Hello Dan, I want load a specifyModule for a sequence Call. Can you help Me
0 Kudos
Message 4 of 4
(3,299 Views)