NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Access sequence file requirements through TestStand API (C#/.NET)

Solved!
Go to solution

How can I access the requirements in a sequence file's properties through the TestStand API?

 

In C#, I can get the version and comment fields easily:

seqFile.AsPropertyObjectFile().Version;

seqFile.AsPropertyObjectFile().Comment;

 

But I can't figure out how to get the requirements. I think this gives an array of strings with the requirements:

seqFile.AsPropertyObjectFile().Requirements.GetNthSubProperty("", 0, 0).GetPropertyObjectElements("", 0)

 

But then I run into problems using it as it is an array of PropertyObjects instead of strings so I get exceptions about expecting an array of containers and finding an array of strings.

0 Kudos
Message 1 of 2
(1,745 Views)
Solution
Accepted by topic author cjohnson963

I feel silly with how quickly I figured this out after posting the question. I only recently figured out how to navigate the help on TestStand in order to understand and follow the API. 

https://zone.ni.com/reference/en-XX/help/370052W-01/tsapiref/reftopics/propertyobjectfile_requiremen...

 

This page shows how to access the requirements. I was close.

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