05-02-2023 08:22 AM
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 :
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 !
05-02-2023 10:11 AM
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.
05-03-2023 01:13 AM
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
05-03-2023 03:38 AM
I succeeded to transmis my value to the step result :
But :
- the nominal value does not appear
- the status is calculated by TS :
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 ....
05-03-2023
08:38 AM
- last edited on
10-21-2024
11:40 AM
by
Content Cleaner
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...