NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert a numerical array to LabVIEWDynamicData Type?

Hi Everyone,

 

I am trying to call the statistics express VI from TestStand to get the mode from a dataset.

The dataset is in a numerical array.

 

Trouble is the Express VI parameter for the dataset is a LabVIEWDynamicData type.

If I pass the array itself I always get back the first number in the array as the answer (incorrect).

 

So anyone know how to convert the array to this type?

 

Thanks,

 

Ronnie

 

CropperCapture[6].Png

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 1 of 4
(3,444 Views)

Hey Believer,

In no way is my example the only solution to what you are seeing, but I feel it might be one of the easiest. I have created a zip folder that I am attaching where I take create an array, convert that to DDT, run the statistics vi on it, and then convert from DDT back to a scalar. I have attached the seq file in three versions so you should be able to open it, if not let me know. Thanks again

Nick

National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,413 Views)

Hi Nick,

 

Thanks for the example and thanks for putting it in all those versions.

So it seems that the main way is to use a LabVIEW VI to convert the data.

 

In the end I 'wrapped' the stats function in a VI and passed the array to the VI.

 

Thanks,

 

Ronnie

 

CropperCapture[60].Png

 

 

 

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 3 of 4
(3,409 Views)

No Problem Believer,

The funny thing is that was my original test, but I wanted to show you that using the numerical conversion is the best way to go about things. Good luck and have a great day!

Nick

National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,397 Views)