NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

add to only upper limit

-Hello Everyone

I'm new with TS, and running TS2.0

Q1:
I want a multiple numeric step measurement to only compare to a upper limit value. Can I do it?
Apparently TS allows me to compare to a low limit, and not necessary have an upper limit.
However, I can't do the opposite... comparing just the upper limit and not have a low limit.
I guess an easy solution would just to add inf or -inf.

Q2:
1)Some steps I have test with different limits.
2)Some steps I have test with same limits.
3)Some steps I have test with different/same limits, but different units.

for 1) should I use multiple numeric limit test or use a loop & change step limits.
for 2) use a numeric limit test, or use a loop to do the comparisons.
for 3) again use solution in 1).

Just curious, in how the most efficient way would be.

thanx
0 Kudos
Message 1 of 5
(3,531 Views)
Hi,

For Q1, yes you can do upper limits (GT) testing, unfortunately TestStand stores the limit value in the lower limit property whether its a lower limit test or an upper limit test. There are tricks you can do, which have been address in this forum and maybe a knowledge base note or example on the NI website, so as to store the upper limit value in the correct place.

For Q2, there are examples showing how to use different limits based on expression see
here

and there is an example in the TestStand examples under limit loader.

Whether to use Multiple Limits steps or Numeric Limit Test steps really depends on what sort of tests you perform and whether the test returns more than one result. But using MultipleLimitsTest step with the limit file can get a bit confusing to look at.

Hope this is of help.
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,530 Views)
Thanx Ray,

It does help, and I learned something new 😃
I'm currently making alot dmm measurements with switches.
I would have to load all channel names(in a file) to TS for each step test.
Since all of these are numeric measurements, all I have to do is load the right limits, and channels.
Would it not be easier to use a 20 interation(loop) on 1 step and load properties accordingly, instead of a 20 steps?

Thanx
0 Kudos
Message 3 of 5
(3,511 Views)
If you are reading the channel information from a file/location and can do that in a loop then it would be better to as well load the limits in that loop.

Rajiv G
0 Kudos
Message 4 of 5
(3,482 Views)
Hi,

The Start Marker parameter in the property loader you can use a variable and therefore pass a string pointing to different parts of your limit file.
You can place a property loader step plus your switch steps and measurement step in a sequence, pass a string parameters to the sequence which you use as the start marker string in your property loader and you have a nice reusable sequence which you can call in a loop.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 5 of 5
(3,475 Views)