NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Dynamic Arrays in TestStand

I am trying to use a dynamic array (empty array) as an input to a second sequence that will use elements as individual inputs for LabVIEW VI's being called.  The size of the array will change depending on how many inputs the LabVIEW VI being called requires.

 

For example:  I want to send two numeric values for a VI that sets the amplitude and frequency of my generator and then use the same array to send a single value to select an input channel on my Analyzer.

 

My main sequence is calling a second sequence that will then call the appropriate VI.  I am able to set the array value in the main sequence but when I try to use an individual element as the input for the LabVIEW VI call, it crashes because the array is empty.

 

Is there a way to do this without having to create temporary variables or changing the VI inputs to an array?  Some of my VI's have up to 5 numeric inputs and they are all dynamic dispatch VI's belonging to various classes in LabVIEW. It is not an easy task to change the VI inputs.

0 Kudos
Message 1 of 3
(259 Views)

Hi Leonard,

 


@Leonard33 wrote:

My main sequence is calling a second sequence that will then call the appropriate VI.  I am able to set the array value in the main sequence but when I try to use an individual element as the input for the LabVIEW VI call, it crashes because the array is empty.


How do you send the filled array from your MainSequence to your SubSequence?

Do you see an empty array when using breakpoints in the SubSequence?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(177 Views)

Hello GerdW,

 

Should have started with "I'm a NOOB to TestStand".

 

I got it working. I was making it more complex than it needed to be by trying to use "Evaluate". My confusion started because of string vs. numeric data types for the indices of the arrays when using variables.

0 Kudos
Message 3 of 3
(133 Views)