LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can i connect a bundle to a .net struct

I would like to know, if it is possible to connect a bundle  to a .NET struct.

I have a method that receives a struct with two strings.

On the attachment is an image with a small example, in reality i would like to connect a bundle with (string, int, boolean)  to the method ST


0 Kudos
Message 1 of 3
(2,544 Views)

Have a look on the following link which explain communication between Labview and .NET:

http://zone.ni.com/devzone/conceptd.nsf/webmain/307935CAE96229EC86256D3600716325

Regards.

Omar S. NI

0 Kudos
Message 2 of 3
(2,523 Views)
There is no automatic mapping between a LV cluster and a .NET structure. You'll need to unbundle the cluster and set each property/field of the structure one at a time. Of course, in the example you posted, there isn't a need to create the cluster in the first place, but if you do accept the cluster as an input parameter to a VI, you'll need to unbundle it.
 
Basically, if your invoke node or property node show a LV data type, then you can wire a LV native type in. If it's that thin, green refnum wire, that means you'll need to use the property or invoke nodes on it to set or get any data.
0 Kudos
Message 3 of 3
(2,517 Views)