NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing 2D Cluster Array from TestStand to LabVIEW

Hi,
 
I have a Cluster1 (Var1="", Var2="", Var3=0) and added in the custom data type. I'm able to pass the 1D array of Cluster1 to LabVIEW. But I'm not able to pass the 2D array of same Cluster1 to LabVIEW. I'm getting "[Error Code: -17313, Could not accept the parameter passed in.]". But the values are available in the TestStand sequence variable.
 
Cluster1
Cluster1[0][0]
      Var1="1"
Cluster1[0][0].Var2="1"
Cluster1[0][0].Var3=1
 
 
The same problem I'm getting when I pass values from TestStand "Cluster inside a Cluster" to LabVIEW.
 
Please guide to solve this cluster passing problem.
0 Kudos
Message 1 of 4
(4,443 Views)
Hi Soundar,

Which Version of TestStand you are using?
How did you create the similar clusters in LabVIEW and TestStand?
Are you passing the entire array to the AlbVIEW vi or only elements of it?

The simple solution to pass the array of clusters could be, create the 2-D array of cluster in LabVIEW, and make it a terminal. Then select this VI in the TestStand step. Now teststand will show this terminal(parameter) in its Module Tab. Now in Type column of this parameter you will see a button for "Create Custom Data Type...". Click on this button and TestStand will prompt you to create the custom Data Type for this cluster type. Create and save this cluster type. Now create new 2-D array variable or change the type of existing variable to this newly created type. This value can be easily accessed in LabVIEW.

The similar approach can be followed for passing Cluster inside cluster (i.e. creating first it in LabVIEW).

Regards,
Kaustubh
0 Kudos
Message 2 of 4
(4,433 Views)
Hi Kaustubh,

Thanks for the reply. The TestStand Version is 4.0.1 and LV is 8.5

We use the 'Create Custom Data Type' to add LV Variables in TestStand. This method is working fine for Cluster with variables and for arrays. The problem is for passing Array of Cluster inside a cluster or cluster inside a cluster.

At runtime, the values are passing to the TestStand variables and it is not passing to LabVIIEW variable.

Thanks & Regards,
Soundar


0 Kudos
Message 3 of 4
(4,363 Views)
Hello Soundar,

Can you create a new sequence file that passes your 2-D array of clusters to/from your LabVIEW VI?  Also, I have attached a TestStand sequence that passes and receives from LabVIEW a 1-D array in a cluster in a cluster in a 2-D array.  I was able to use the "Create Custom Data Type" button to create the "1-D array in a cluster in a cluster" data type.  I was then able to create a 2-D array of that type, which I named "MyClusterDataType", in MainSequence's locals variables.  See if you can run my example or make your own sequence files that uses the LabVIEW VI.  I hope this helps.
Best Regards,
Software Engineer
Jett R
Download All
Message 4 of 4
(4,338 Views)