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

How do I pass an array of clusters as a parameter from LabView to a TestStand sequence?

$
0
0

Hello everyone,

I've put together a VI that remotely executes a TestStand sequence by looking at the API examples that TestStand comes bundled with. That works without issue and I can run a simple sequence from top to bottom.

 

Now, I've begun modifying the VI to pass an array of cluster data to TestStand's IEngine.NewExecution function.

To do this I:
Create a new array of clusters using IEngine.NewProperty.
Set the size of the array using PropertyObject.SetNumElements

 

And for every index I:
Index the array using PropertyObject.SetSubPropertyIndex

Write values to the index using PropertyObject.SetValWhatever (where "Whatever" is the appropriate datatype I'm writing to).

 

However, I get an error whenever I index the array:

 

Error -17301 occurred at Specified property index '-1' is not valid. Index must be between 0 and 18446744073709551615 in RunTestSequenceWithParams.vi->RunTestSequence.vi

 

I'm hoping someone could review my block diagram and TestStand parameter configuration and tell me if I'm doing something wrong. I have tried many different things and the most useful information I've been able to find has been here:

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P9KLSA0&l=en-US


Viewing all articles
Browse latest Browse all 6529

Trending Articles