06-28-2013 08:16 AM
Is it possible to make a multiple numeric limit test with the values from a cluster from a labview vi?
Solved! Go to Solution.
06-28-2013 08:27 AM
As it is called "Multiple Numeric Limit" step, the data has to be numeric. So the cluster already contains only numeric fields.
Given that, i would cast the cluster within the module to an array (Cluster to Array). The disadvantage of this is that all fields in the array share the data type, so all are double or single or I32, ....
Other solutions won't work with the default step type, but you could create your own step type to accept a cluster similar to the Multiple Numeric, which only accepts an array.
Norbert
06-29-2013
04:36 PM
- last edited on
10-21-2024
06:42 PM
by
Content Cleaner
This can be done with a little work.
The first step is to get the cluster's data back in to TestStand's memory space as you would do normally.
Then you either use post expressions (since you're at a point in time between the test code module completing and the status evaluation) to move the pertinent parts in to the data source for the step (usually step.numericarray) or...
https://www.ni.com/docs/en-US/bundle/teststand/page/multiple-numeric-limit-test-step-type.html
And
https://www.ni.com/docs/en-US/bundle/teststand-api-reference/page/tsref/multiple-numeric-limit-test-...
Use the 'specify data source for each measurement''.
I'm not in front of a computer with TestStand right now to knock up an example but it should be pretty straight forward.
Either method should allow you to work with a mixed cluster of data types and just evaluate on the numeric ones.
Thanks
Sacha
06-29-2013 11:45 PM
what kind of cluster is it?
cc
07-02-2013 06:35 AM
Hello all
Thanks for your advices. But im sorry last days i could not continou to work on this project i had to do other work. But as soon as possible i ll try the solution.
The cluster is just with numeric values. And what i dont like with the cluster to array solution is that i lose the names of the values.
I ll write again here next week to reply when i could try.
Greets
Christoph
07-08-2013 09:05 AM
Christoph,
in TS, you can provide names for each field of an array. This, of course, is rather static and does not adopt to LV "cluster to array" elements.
Norbert
07-23-2013 06:49 AM
Hello Guys thanks it s solved now. Cluster to array solution. But one problem i still have. How i can write my 7 array values whitch i have now in TS to 7 local variables? It s for the end of the test to write all measurements of the complete test in a csv.
07-23-2013
07:34 AM
- last edited on
10-21-2024
06:42 PM
by
Content Cleaner
Hello again.
I think it s solved with this.
Cheers Guys
Christoph