NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way of passing a mixed cluster of numbers and booleans to teststand

Hi,

 

I have a labview VI that contains an output cluster containing both numeric and boolean results and would like to pass this to Teststand. At the moment I have coverted all my boolean results to  '1/0'  so that I can create a numeric array and can quite easily pass this to Teststand (using multiple numeric limit test). 

Is there a way to pass mixed results to Teststand and write in the limits (example PASS and GT 5V) or do I have to stick with what I have?

 

Chris

0 Kudos
Message 1 of 4
(3,358 Views)

Hi Chris,

 

your VI output cluster will show up in TestStand as it is - meaning if you have a cluster with numbers and booleans... you will see those values with their specified types also in TestStand after loading your VI in the sequence.

There you can use them - assign values to variables, calculate & whatever.

It's all done by LV and TS - there is no need to convert your results to the same type.

 

Regards,
gedi
0 Kudos
Message 2 of 4
(3,352 Views)

Sorry, not quite sure... so what test do I create (ie pass fail test or numeric test) in test stand and if it is the multiple numeric test then what do I put in the value box

 

see attached

 

Chris

0 Kudos
Message 3 of 4
(3,340 Views)

Which test step type to use depends on what you have to analyze - a boolean condition? String? Number(s)? I can't tell you because I don't know what's in your cluster. If you click on the plus sign next to the parameter name "output cluster" you will see all paramters and their types, which are passed from the VI to TestStand.

You can either create a variable for the whole cluster, or you can assign all or just some values from within the cluster to variables.

The name of the variable (Locals.xxxxxxx... or FileGlobals.xxxxx...) ist what you type in the value field. You can also choose the variable from the expression browser by clicking on the f(x) button.

Are you new to TestStand, do you know how to work with variables in TS?

Maybe the attached picture gives you an example, there I am assigning the values from VI output "VoltageOutputArray" to the TS variable locals.VoltageMeasurement.

This variable ist used again on the tab "Data Source" as the Data Source Expression.

 

Regards,
gedi
0 Kudos
Message 4 of 4
(3,324 Views)