NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when transferring an Array of Clusters to LabView

Solved!
Go to solution

Hi,

 

I'm new in LabView and I hope this error has an easy fix.

I built a VI to check validity of a label.  The Vi receives an array of clusters.  The cluster has 3 strings.

I built in TestStand a Variable with exact same structure.

 

 

I get the following error:

Error, Parameter 'Sn Range Array': Elements of array 'FileGlobals.SN_Ranges' do not match the LabVIEW cluster or cluster passing is off in array element type definition. [Error Code: -17313, Could not accept the parameter passed in.]

Attached is a sequence with only one step.  and the vi.  (the location of the vi must be re assigned in TestStand).

 

Can anybody help in fixing this error?

 

Thanks

Rafi

0 Kudos
Message 1 of 7
(5,076 Views)

There are no attachments.

 

Do not click preview. That causes attachments to be removed.

0 Kudos
Message 2 of 7
(5,072 Views)

Hi,

 

Without seeing your example, I suspect you need to create a TestStand Data type which is a Container which has the three string elements. Then you need to create a variable which is an array of the new Data Type you have created.

 

regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 3 of 7
(5,060 Views)

Thanks and appology for the late response  (I was on vacation).

 

Obviously, I cerated a cluster in both TS and LabView.

 

Attached is a zip containing a seq file with just one step and the vi.  You will need to redirect the vi location.

 

Thnaks

Rafi

0 Kudos
Message 4 of 7
(5,010 Views)

Rafi -

 

I looked at your sequence file and custom data type and noticed that you have not enabled Cluster Passing for your custom data type. Please try the following:

 

Go to the Types Palette. Select your sequence file. Double-click your custom data type. Navigate to the Cluster Passing tab (should be the third tab). Then check, Allow Cluster Passing.

 

What you'll have to be aware of when using Cluster Passing is the following:

 

1. The order of which the elements appear in the Custom Container must match the tab order of the respective elements in the LabVIEW Cluster.

2. The names of the elements that  appear in the Custom Container must match the labels of the elements in the LabVIEW Cluster exactly (Case Sensitive).

 

Hope this helps!

Manooch H.
National Instruments
Message 5 of 7
(4,989 Views)
Solution
Accepted by Rafi2003

Thanks

 

your advice was perfect....

 

Regards

 

Rafi

0 Kudos
Message 6 of 7
(4,972 Views)

@Manooch_H wrote:

2. The names of the elements that  appear in the Custom Container must match the labels of the elements in the LabVIEW Cluster exactly (Case Sensitive).


Just ran into this exact same error but my problem was the name not matching.  The cluster element name can not be one of the reserved name because TestStand can't create the type with that name.  For example I had a LabVIEW cluster element with the name "value".  TestStand created a container with the element name "_value".  I couldn't change it to "value" so I was forced to update my LabVIEW cluster to a name not reserved by TestStand.

 

Thanks Manooch for pointing out the labels must match exactly...

0 Kudos
Message 7 of 7
(4,528 Views)