NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing custom type definition from TS to Labview

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,

 

0 Kudos
Message 1 of 5
(5,799 Views)

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

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

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(5,764 Views)

@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:

 

Capture00.PNG

 

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?

0 Kudos
Message 4 of 5
(5,754 Views)

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

0 Kudos
Message 5 of 5
(5,706 Views)