02-09-2018 08:29 AM - edited 02-09-2018 08:49 AM
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!
02-12-2018 06:01 PM
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!
02-13-2018 03:27 PM
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 😞
02-16-2018 05:06 PM
Not sure how much this helps, but you can right click and create a variable of your custom type:
In an ideal world - what would you want that is different from above?
Thanks,
Trent
10-04-2018 01:12 AM
This helped a lot.
Kudo for you, Trent
Martynas