NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement Name Access for Multiple Numeric Limits Test in TestStand 2.0

Dear colleagues! I ask the help in way to determine in LabWindows/CVI names of measurements for Multiple Numeric Limits Test (TestStand 2.0).
Thank!
0 Kudos
Message 1 of 2
(2,824 Views)
Hello April,

You can indeed access the name property programatically. To this, you must get a Property Object reference to the Step.Result.Measurements[x] property (where x is the measurement index). You can then use the "Name" property of the Property Object class to determine or set the name of the measurement. Alternatively, you can get the Step.Result.Measurement array as a Property Object then use the GetPropertyObjectByOffset method to access an individual element of the array. Once you have a reference to this individual element, you can the use the PropertyObject "Name" property to set or get this value. The code looks someting like this:

// Line 1
errChk(TS_PropertyGetPropertyObject (testData->seqContextCVI, &errorInfo,"Step.Result.Measurem
ent", 0, &MeasObj));

// Line 2
errChk(TS_PropertyGetPropertyObjectByOffset (MeasObj, &errorInfo, 2, 0, &SpecifcMeas));

// Line 3
erChk(TS_PropertySetProperty (SpecifcMeas, &errorInfo, TS_PropertyName, CAVT_CSTRING, "NewValue"));

Hope this helps!
Message 2 of 2
(2,824 Views)