NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to read AddtionalResult.requirments

Hi,

am using the followwing code

 

voidaxApplicationMgr_UIMessageEvent(objectsender,NationalInstruments.TestStand.Interop.UI.Ax._ApplicationMgrEvents_UIMessageEventEvente)

{

if (e.uiMsg.Event ==UIMessageCodes.UIMsg_Trace)

{

try

{

intframeid;

 

SequenceContext seqctx = e.uiMsg.Thread.GetSequenceContext(0, outframeid);

 

if(seqctx.PreviousStepIndex >= 0)

{

Stepprvstp = seqctx.PreviousStep;

 

StepTypeprvstptyp = prvstp.StepType;

 

PropertyObjectstepPropertyObject = prvstp.AsPropertyObject();

 

String testid=String.Empty;

if (string.Equals(prvstptyp.Name, "NumericLimitTest"))

{

 

testid = stepPropertyObject.GetValString("Result.AdditionalResults[\"Requirements\"]", 0);

 

double lwlimt = stepPropertyObject.GetValNumber("Limits.Low", 0);

 

double measValue = stepPropertyObject.GetValNumber("Result.Numeric", 0);

 

String unit = stepPropertyObject.GetValString("Result.Units", 0);

 

am not able to read the Requirments by "testid = stepPropertyObject.GetValString("Result.AdditionalResults[\"Requirements\"]", 0);"

but am sucessful in reading all others.

 

can you please help me in this regards.

 

Thanks

IVI

0 Kudos
Message 1 of 2
(2,726 Views)

IVI,

 

please do not open new threads for the same topic......thanks

The discussion is kept there.

 

thanks,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(2,723 Views)