NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set subproperty values of a parameter (container) I'm passing?

I want to pass a custom data type (a container with subproperties)as a parameter.

How do I specify the subproperty values in the parameter expression for the SequenceCall step? Can I specify some subproperty values, and leave the others at their default values?

I know that I could create a Local variable of the same type in the calling sequence, set it up in one step, and then pass the whole thing in the SequenceCall step, but is there a way to specify the values in the parameter expression instead?
0 Kudos
Message 1 of 5
(3,865 Views)
Hi,

Is this the sort of thing your are after.

regards
Ray Farmer
Regards
Ray Farmer
Download All
0 Kudos
Message 2 of 5
(3,865 Views)
Sort of...

That will do it all in one step, so thank you!

I'm still wondering if there is some sort of syntax for setting all of the subproperties at once, like you do to initialize a structure in c? Something like {123, "abc", TRUE} to set the value of the "MyContainer" parameter.
0 Kudos
Message 3 of 5
(3,865 Views)
Hi,

Nice idea but the closes you can get is by setting the parameter to Use Default. Then the values that will be used are the values defined in the subSequence. (See example - second step in mainsequence).

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 5
(3,865 Views)

Ray,

 

Is there a way to initialize the container elements to Zero at one shot like the c structure abc a = {0}?

 

Regards,

Ramjee V

0 Kudos
Message 5 of 5
(3,351 Views)