05-01-2018 04:06 PM
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.
Solved! Go to Solution.
05-02-2018 01:58 AM
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.
05-02-2018 02:02 AM
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'.
05-02-2018 09:38 AM
Thanks Norbert. It was easy after your suggestions.
This is what I needed to do:
Len( Step.TS.SData.Call.Parms[2].ArgVal)
Jerry.