NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I pass an Array of Clusters with expression type from TestStand to LabVIEW

Hello,

 

I am facing an issue in developing some step types for an application.

 

The scenarion is

 

The application is for generating waveforms using NI PXI cards. So the Waveform properties will be defined in the teststand sequences and pass it to LabVIEW for executing it.

My requirement mentions all the step properties should be of expression type so that user can automate the testing of multiple devices.

 

My Step properties is as shown below.

 

Step Properties.jpg

 

 

Now I am passing this values to my LabVIEW VI.

 

The LabVIEW cluster is  as shown below

 

LabVIEW Cluster.jpg

 

My understanding was the expressing will of string type and will get passed to the LabVIEW array which is of string type so that I can evaluate them with the use of sequence context.

 

But When I try to run the sequence, I am getting the following error.

 

Error: Error executing substep 'Post'.
Parameter 'Waveform Properties':
Elements of array 'Step.Channels' 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.]

 

I am not sure how to proceed from here. Kind of stuck.Smiley Sad

 

looking forward to hear some solutions and correct procedures.

 

Regards,

Mirash

 

Coding is a combination of intelligent and creative work - someone
0 Kudos
Message 1 of 4
(3,664 Views)

Hi,

 

Do you have a Custom Step type, because Channels just looks like a variable such as Locals.Channels rather than a Step Property,

 

Can you post a small example?

 

Another thing, make sure the order of the LabVIEW cluster matches the order of the Container in TestStand.

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,660 Views)

Thanks for the prompt reply.

 

Yes. I am using a Custom Step Type.

 

I have attached a trial code which contains the trial VI, sequence and the type palette ini file.

 

Please have a look at it.

 

Regards,

Mirash

 

Coding is a combination of intelligent and creative work - someone
0 Kudos
Message 3 of 4
(3,656 Views)

The two subVI's, are they using the 'Sequence Context In' because if they do then you need to pass it into Injection_Format Configuration.vi.

 

Currently Sequence Context In is not on the connector pane  Injection_Format Configuration.vi.

 

Also I think your cluster elements should match that of your container elements, eg RMS Value should be called Amplitude.

 

 

Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,653 Views)