Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>