10-01-2009 11:22 AM
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.] |
Can anybody help in fixing this error?
Thanks
Rafi
Solved! Go to Solution.
10-01-2009 12:24 PM
There are no attachments.
Do not click preview. That causes attachments to be removed.
10-01-2009 03:46 PM
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
10-11-2009 02:53 AM
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
10-12-2009 10:07 AM
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!
10-14-2009 02:37 AM
Thanks
your advice was perfect....
Regards
Rafi
07-23-2010 09:18 AM
@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...