NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to access TestStand Sequence Step Parameters from Excel Macro

Trying to create an EXCEL spreadsheet containing a list of all steps in a TestStand Sequence including Parameter names and types. How can I access the parameter names and types from EXCEL Visual Basic? It seems the API provides access to sequence parameters, but not step parameters.
0 Kudos
Message 1 of 2
(2,991 Views)
mmghost,

Unfortunately, in TestStand 2.0, it is not possible to access the step parameter information.

In TestStand 3.0, there are a few more APIs exposed that give you access to the step parameters. In TestStand 3.0, these are the steps you would take to get that information:

1) Get a hold of the step object of interest. There are many ways to do this. For instance, starting with the Sequence Context you can get the Sequence object, and then get a step object from the sequence.

2) From the Step object, get the Module object.

3) At this point, you need to cast the Module object to the specific adapater type module you are using. For this example, we will assume that we are using the CVI adapter, so we would cast the Module object to a CVIModule o
bject.

4) The CVIModule object contains a Parameters collection of type CVIParameters, which contains the type information.

For different adapter types you would just cast the Module object to a different specific module (LabVIEWModule, ActiveXModule, etc).

Matt P.
NI
0 Kudos
Message 2 of 2
(2,991 Views)