LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to specify a module pathname with a string variable?

Is there a way to specify the "module pathname" property for a C/CVI
Standard Prototype Adapter using a TestStand string variable?

We have three different Test DLLs. Each DLL exports the same functions with
the same prototype. I want to be able to select which one to use based on a
run-time user selection.

TIA,

Bob.
0 Kudos
Message 1 of 2
(2,808 Views)
Hi Bob,

A step's module path (if it has one) is stored in the hidden string property > Step.TS.SData.ModulePath <

To be able to view this property after inserting a step in a sequence in the Sequence Editor and specifying its module, you must enable the Configure >> Station Options >> Preferences >> Show Hidden Properties setting and then look at the sequence in "tree view", exapanding the step's list of subproperties you want to look at. If you want to set this value programmatically you can reference the step in an expression statement with something like the following:

RunState.Sequence.Main[].TS.SData.ModulePath = "c:\\temp\\mymodule.dll"

It is really only beneficial to do this before the step executes in its sequential order though, an
d if you are wanting to save this change in the sequence file you will have to understand the usage of the TS ActiveX API and the PropertyObjectFile class (information on this is available in the TestStand Programmer Help).

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 2
(2,808 Views)