NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set a value of a property for a Step in C#

 

I am looking in the sample of
C:\Users\Public\Documents\National Instruments\TestStand 2014 (32-bit)\Examples\TestStand API\Building a Sequence Using API\DotNet\SequenceFileXMLParser\SequenceFileXMLParser.sln

 

From the above sample, I can see that it is setting the value of Use Current File via:

 

mainSequence.stepGroups[(int)StepGroupName.main].steps.Last().stepProps.Add(new PropData("Module.UseCurFile", "true"));

 

How do we know that this property exists for "Module.UseCurFile".

 

The reason is I wish to set other properties for a particular step via C# but cannot do so without knowing the exact name of the property i.e. I wish to set Comments for a particular step - how do I know the exact name for it?

Thanks in advance for your help.

0 Kudos
Message 1 of 2
(3,737 Views)

Hi, 

 

Are you sure that the property exists? I mean to me it seems like the property is actually created by using the .add() method on the step and specifying a new PropData as the parameter. 

 

Have you looked at the example for accesing objects using API?

http://zone.ni.com/reference/en-XX/help/370052N-01/tsexamples/infotopics/accesspropertiesapi_express...

 

/Anton

0 Kudos
Message 2 of 2
(3,671 Views)