LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Pass by reference in .NET Interop Assembly DLL

Hello,

I am trying to build a Labview code that takes Cluster Comm in -- (modify it) -- Cluster Comm out.

 

However the Define parameters in ".NET Interop Assembly" only gave me Pass by Input / Output and no Ref. As such, the function parameters would be 

void Configure(CommIn commIn, out CommOut commout)

 

what's strange is that even though CommIn and CommOut are the same cluster "type" (one being control, one indicator), labview created 2 separate classes in .NET. Hence, I am unable to use commOut as an input to functions like Read(CommIn, out value) because class mismatch.

 

Can you help ?

 

0 Kudos
Message 1 of 2
(2,403 Views)

Hello, can you give a full descripition of what you're trying to accomplish?  Also, it may be useful if you attach a basic version of the VI that you are having issues with.  Furthermore, please check this resource to see if this helps you out with your cluster in question:

 

http://zone.ni.com/reference/en-XX/help/371361L-01/lvhowto/charac_net_interop/

 

Thanks,

Jonathan R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,363 Views)