NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error passing container to a VI as Parameter variable by Reference

Dear All,

I'm facing with a subdle error that I encounter when try to pass a TS container to a VI (as cluster) when the container is defined as sequence Parameter by Reference.

I don't know if it is a bug or my error so I will try to explain better...

I created a VI that implement a sort of user dialog interface in order to set-up certain test options. The VI get a cluster as input and return a cluster (the same kind) as output. In case of 'Cancel' the output cluster will be the same as input, otherwise it will reflect the user settings. The input cluster is used to setup the UI controls in order to reflect the current settings.

A 'Configure Test Option' sequence call this VI passing the required cluster to the VI, this data is set as Parameters in the sequence and set 'by Reference' in order to give a chance from a caller sequence to pass back and forth the information required. Must be noted that the TS container was created automatically by TS from the VI prototype.

Doing so you will get an error like this:
"Error Message: Parameter 'Test IN': The type of 'Parameters.TestOptions' does not match the LabVIEW cluster 'Test IN' or cluster passing is off in type definition of 'Parameters.TestOptions'. [Error Code: -17311]"

But the definition is correct and if you set the parameter 'by Value'. All works fine (but without returning information to the caller of course)

I waste a lot of time in order to understand wat's going on and I found just a workaround in order to avoid the problem.

I post an example of my trouble.

Thanks in advance for your help.
Luigi Magni (System Engineer - CTA)
0 Kudos
Message 1 of 3
(3,317 Views)
I assuming you are using TestStand 3.0. This is a know problem. It has been fixed in TestStand 3.1.
0 Kudos
Message 2 of 3
(3,300 Views)


@JoseHdz wrote:
I assuming you are using TestStand 3.0. This is a know problem. It has been fixed in TestStand 3.1.




Yes, we are using TS 3.0 and LV 7.0 or 7.1

Ok. As already happened in other circumstances, please let us know in advance what are the "konw" bugs...

Sincerely
Luigi Magni (System Engineer - CTA)
0 Kudos
Message 3 of 3
(3,283 Views)