From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

c#: Adding limits on Multiple Numeric Limits at runtime

Hello

 

I'm looking for a sample code on how to add limits to a Multiple Numeric Limits step at runtime from c#.

Depending of the DUT capabilities, not the same number of measurements are returned.

 

Best regards

Yannick Willener

0 Kudos
Message 1 of 4
(2,941 Views)

Are they returned in an array of numbers?  If so then you can just use the native step.  Just assign the returning array to Step.NumericArray and on the Data Source tab set up like the following:

MultiNumMoreMeasurements.jpg

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

Thanks. How to set the Name, Limits ant the Comparison Type for each measurement?

 

Best regards
Yannick Willener

0 Kudos
Message 3 of 4
(2,908 Views)

I'm not very good with C# but I created this example that does it explicitly in TestStand.  Maybe it can give you some pointers or get you headed in the right direction?

Let me know if you have any questions about it.  It is in TS 2010. 

 

Regards,

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