From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Problems with Multiple Numeric Limit Test

Hi,

I'm trying to use the MultipleNumeric Limit test and I have problems with it

1) Since I use TestStand 3.1, is it recommended to uses the new type template rather than the legacy one?
2) When you let TestStand creat the test code for you it gives you the following:

// The following code shows how to access a property or variable via the TestStand ActiveX API
// To use this code you must add a parameter "struct IDispatch *seqContextDisp" to this function
// and pass a sequence context to it.
// tsErrChk(TS_PropertyGetValNumber(seqContextCVI, &errorInfo,
// "Step.Result.Measurement[0].Limits.Low", 0, &lowLimit0));


I would appriciate if anybody can show me an example using that. I just don't understand it!!
Cant't I just pass the seuence context parameter as follow: 'CAObjHandle seqContextCVI' ?
0 Kudos
Message 1 of 4
(3,193 Views)
This post has been answered here.
0 Kudos
Message 2 of 4
(3,182 Views)

I am using Testand 3.2

Most of my tests have a single result value.

However, Some require more than one result value (i.e two).

I would like to specify a "multiple result test step", and assign limits to each result.

So far I can only find silly solutions to this problem:

1. Feed in teststand  reference into my test.

2. Use active X !??

3. Create custom local variable array and then test each result in post tests..

The above solutions are dumb.

Can someone provide a proper solution to creating a test step with multiple results.

Thank you.

0 Kudos
Message 3 of 4
(3,025 Views)

I answer to my own question:

I use a multiple numeric test step. (Teststand 3.5)

I feed an array of values (doubles) up from the step as one of the output parameters.

I assign that array to the testand global step value: "step.NumericArray" using the testand specify module dialog.

I can add parameter names and specify limits in the "specify limits" dialog.

 

It was very easy.

0 Kudos
Message 4 of 4
(3,023 Views)