04-08-2015 03:31 PM
Hi,
Is there any chance to pass an instance of custom defined type in TS ti the labview without re-defining the TS type definition in LV?
For example I have a cluster of three strings and I'd like to pass it to the LV module (as a LV cluster).
Cheers,
K
04-10-2015 07:11 AM
Hi MimiKLM,
Can you clarify what you mean by this? You should be able to pass data from TestStand to LabVIEW, but you have to tell LabVIEW what kind of data to expect, so you'd need to create a LV module that has an input with a cluster of three strings.
Does that make sense?
Kind regards
VSenior
04-10-2015 07:19 AM
MimiKLM wrote:
Is there any chance to pass an instance of custom defined type in TS ti the labview without re-defining the TS type definition in LV?
For example I have a cluster of three strings and I'd like to pass it to the LV module (as a LV cluster).
Actually, I think you want to go the other way around. You should create the type def in LabVIEW and then create the TS type definition by importing the ctl file. This was new the TestStand 2014 and I have not been able to try it, but it looked simple to do.
04-10-2015 12:27 PM - edited 04-10-2015 12:37 PM
@crossrulz wrote:
Actually, I think you want to go the other way around. You should create the type def in LabVIEW and then create the TS type definition by importing the ctl file. This was new the TestStand 2014 and I have not been able to try it, but it looked simple to do.
No, I was thinking to create Type Definition (TD) in TS and then send it to LV. I have my reasons to do this that way. I'm using TS2010. I was thinking that maybe I can achieve it by modifying the options in the form below:
Or what if I pass the reference of the instance on my custom TD to LV? Will LV be able to pick ot up and dissasebme the cluster dynamically internally?
04-14-2015 08:29 AM
Hi MimiKLM,
I had a go at this for you but I'm afraid it doens't look like the custom data type can be imported into LabVIEW from TestStand.
The problem is that when you try to communicate between TS and LV, you need to tell both programs what kind of data is being passed around between them, and it doesn't look like you can import the custom data into LV, so you have to explicitely tell LabVIEW what to expect.
The options in the properties page tell TestStand that is can allow the container to be given to LabVIEW as a cluster, but doesn't tell LabVIEW that it should expect a cluster. Only the connections on the connector pane can tell LabVIEW what it should expect as inputs.
Kind Regards
Vsenior