NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass VI parameters to report teststantd

Hello,

sorry if the question have ever been asked, i have probably not found the good keeword !

I have a vi, who execute complex test on few devices.

I transmis the output off this VI to teststand :

Result = True/False --> booleen

Measurements (value) --> float

Units (empty for the moment)

Expected value --> Float

Low Limit --> Float

Hight limit--> Float

Comparaison type (>=;<=; ==; >= <=;< >) --> Ascii

Error message --> Ascii

I would like to transmit this information to the step result to get the information in the Report :

 Result.PNG

The step result must be the same that the result (or status) var.

 

I-m able to transmis the value of status but it doesnt' affect theUUT result ?

I can't find how to transmit the other parameters (i'm a beeginer with TS !).

 

Thank you for the help !

0 Kudos
Message 1 of 5
(1,035 Views)

If you haven't done so yet, I recommend you take the TestStand training.  What you are trying to do is very very beginner for TestStand.

 

You probably want to use a numeric step type and not an action step type.  This way you can evaluate the value coming from your VI.  If you use a numeric step type then you can set the limits, and the Step.Result.Numeric property, which gets evaluated against the limits.

 

Another thing you need to realize about Statuses.... I'm not sure how you are setting the status to False but you should be setting it to a string of "Passed" or "Failed".  That will pass or fail the step and update your report to passed or failed.

 

Let me know if you have specific questions.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(1,018 Views)

The objective is not to do the comparison test under TestStand. The Volume of test to write step by step is too important. My vi execute differents tests (about 100) described in a script. To simplify : at the output of this vi I output the characteristics of the first test that I find false. This test is characterized by Status + Measurement + Nominal value + Low Limit + Hight Limit + Comparison type + Error message ("Test number xx in fault").
1) I want to transmit this result to the step so that it appears in the table of the report (and red color for the test)
2) I wanted to make another post but in case: I also execute this VI in a while loop, I would like teststand to display each loop iteration on the screen, possible? (I must also retrieve the result of each iteration in the report in the form status/measurement etc ..)

Thank you

0 Kudos
Message 3 of 5
(996 Views)

 I succeeded to transmis my value to the step result :

comp.PNG

 But : 

- the nominal value does not appear

- the status is calculated by TS :

Capture2.PNG

 in pre-expression i have try to set step.usecompexpr==false but it's not the solution.

I dont want the result is calculated by teststand .... 

0 Kudos
Message 4 of 5
(989 Views)

Nominal is only used with the EQT comparison type: https://www.ni.com/docs/en-US/bundle/teststand-api-reference/page/tsref/limits-tab-numeric-limit-tes...

 

 

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 5 of 5
(980 Views)