SystemLink Forum

cancel
Showing results for 
Search instead for 
Did you mean: 

String Comparison Test Monitor

Solved!
Go to solution

Did I miss an example or API vi on how to save a string comparison result to the test monitor?

 

I see in the Labview examples that there is a add measurement (dbl), which is actually converting the double to a string.

 

should I just create a copy of that and use string inputs?

 

does systemlink use the min and measurement fields when saving the data?  Measurement and nominal?

 

 

Kenny

0 Kudos
Message 1 of 3
(1,389 Views)

Some more detail.

 

When adding a measurement, the structure seems to be the following:

 

{
"name":"",
"status":"",
"measurement":"",
"units":"",
"nominalValue":"",
"lowLimit":"",
"highLimit":"",
"comparisonType":""
}

 

When using the TestStand Model, I assume that you can also save the normal TestStand Step Types: 

 

Kenny_K_0-1653928836430.png

 

All of the examples that I have seen match the numeric Limit Test.

 

Are there any examples to populate the Pass/Fail or String Value test?

Kenny

0 Kudos
Message 2 of 3
(1,352 Views)
Solution
Accepted by topic author Kenny_K

Ok, I figured it out.   hopefully NI is monitoring the SystemLink forum and will see this, so they can add more examples.

 

Kenny_K_0-1654001913495.png

 

I created a new VI "Add Test Measurement (string).vi", which has a all strings (instead of doubles) and a new comparison type def, since the string comparison types are different than the numeric limit types.

 

Kenny_K_1-1654002088889.png

 

Comparison Type Def

Kenny_K_2-1654002127033.png

 

VIs are saved in LV 2020

Kenny

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