NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Create local variable from default input of a module

Hi,

 

I am calling a labview VI from TestStand which has a quite complex input cluster already filled with hundreds default values. I am wondering if there is a way to create a local variable in TS with exactly the same data structure AND data.

 

I know that I can create a variable type based on the VI input. But is there a way to somehow copy the values as well to this newly created variable?

 

thx!

0 Kudos
Message 1 of 5
(2,783 Views)

Hi 1984,

 

Correct me if I am misunderstanding, but why don't you use a LabVIEW vi with the cluster as an output, and place it in the setup part of TestStand. Then create the variable like described here:

 

How Do I Pass Data Between a TestStand Container and a Cluster in a LabVIEW VI?

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019OUCSA2

 

Then after creating the variable pass that it as the parameter for the LabVIEW VI. I tried this and it passed all my constants just fine.

 

Hope this helps!

 

0 Kudos
Message 2 of 5
(2,735 Views)

Yes, this works, its just a pain in the back, because you have to create the datatype, then create a variable, then create a VI with the just the cluster as an output, add a new step to teststand and running it.

 

Its somewhat hard to believe that there are no more straightforward way doing this 😞

0 Kudos
Message 3 of 5
(2,724 Views)

Not sure how much this helps, but you can right click and create a variable of your custom type:

CreateType.gif

In an ideal world - what would you want that is different from above?

 

Thanks,

Trent

https://www.linkedin.com/in/trentweaver
Message 4 of 5
(2,694 Views)

This helped a lot.

Kudo for you, Trent

 

Martynas

0 Kudos
Message 5 of 5
(2,339 Views)