NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I access step parameters?

Solved!
Go to solution

Hello,

 

I need to call a dll directly from TestStand and need to specify one of its parameter's length. Is there a way to do this programatically?

 

Thank you

Jerry.

0 Kudos
Message 1 of 4
(2,561 Views)

More Info Needed in this regard.

If you want to pass the value to a .dll, you should declare the variable (Locals/parameters) in advance and that variable should hold the value.

then the variable (Locals/parameters) can be used to pass the value.

 

Assuming you have a parameter Named Cmd, then it should be of string datatype for which you are calculating the length.

then it will work for you.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 4
(2,531 Views)
Solution
Accepted by topic author Cimteker

Module parameters are more complicated than you expect. Additionally, they depend on the adapter you are using.

As you us the C/C++ adapter, you have to review the step properties. Enable "Show hidden properties" in the Station Option to see the 'TS' container. This hidden container contains the very basic configuration settings and execution data for the step.

Module configuration is always part of that container and can be found in the 'SData' subproperty. For C/C++ adapter, the next subproperty is 'Call'.

Review the data structure and use the appropriate lookup string for your len() command. You can copy the lookup string of a property in the variables view using the context menu (simple 'Copy').

Additional hint: The actual value of the parameter is 'ArgVal'.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 3 of 4
(2,529 Views)

Thanks Norbert. It was easy after your suggestions.

This is what I needed to do:

Len( Step.TS.SData.Call.Parms[2].ArgVal)

 

Jerry.

0 Kudos
Message 4 of 4
(2,513 Views)