NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Assign container with value of another container

Hello,
 
 
I would like to assign the parameter (defined as referenced container) of a subsequence with the value of another container. Something like this:
"Parameters.OUT_CONSTANTS = FileGlobals.CONSTANTS"
 
But in my expression windows, I get the message:
"Evalutation error
Variable or property types do not match or are not compatible."Smiley Mad
 
What do I have to do to make it works?
 
Cheers,
Risotto
 
0 Kudos
Message 1 of 2
(2,580 Views)

Hi Risotto,

One concept that you need to watch out for is making sure that the variables defined inside both of your containers need to have the same names. So if your Parameter container had a numeric variable called "Temp", then your FileGlobals container would need a numeric variable called "Temp". The naming conventions need to be the same as well as the data type. The order of the variables inside the cluster doesn't matter. If you don't use the same names for the variables, you will receive the error you mentioned.  Attached is a short snippet of code that shows you how to correctly assign containers. 

Hope this helps!

 

Jonathan N.
National Instruments
Message 2 of 2
(2,566 Views)