NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I access to the limits of a numeric limit test with TestStand API?

I need to acces and save all the limits of a teststand sequence and save it to a log file, I export the documentation to a text file but doesn't import the limits just the name and description.

 

I read that I can access to them with the TestStand API, but there's an infinite number of propertys on the sequence context in property node and I don't find the correct one to save the limits. Can it be done with the API?

limits.PNG

Ing. José Antonio Páez López
Functional Test Engineer & CLAD
0 Kudos
Message 1 of 4
(2,663 Views)

There's actually a built-in way to export limits:

  • Tools » Import Export Properties
  • Choose Export in the tree
  • Fill in a Destination Location
  • On the Property Selector tab, click the filters icon
  • Choose Limit Properties
  • Check the steps/limits you care about and hit Export.Export.PNG

 

If you still want to go the API route, you need to get a reference to the Step object, and there is a limits container under that.

 

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
Message 2 of 4
(2,660 Views)

I want to perform it in a automatic way, so there's not an object reference that point to the step limits in the API.

Ing. José Antonio Páez López
Functional Test Engineer & CLAD
0 Kudos
Message 3 of 4
(2,630 Views)

It sounds like you're looking for the Step.Limits Container i mentioned:

limits.PNG

Getting a reference to all of the steps is the trickier part. This example should help:

https://forums.ni.com/t5/Example-Programs/Creating-a-Sequence-File-Iteration-Tool-Replacing-Absolute...

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 4 of 4
(2,613 Views)