09-25-2009 06:03 PM
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
09-28-2009 12:55 PM
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
09-28-2009 01:35 PM
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
09-29-2009 08:03 AM
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