LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

accessing global of labview dll

hi i had created one global variable in labview, which would be accessable by no of vi, now i had converted them all in to Dll.

Also i had created two methods to set and get the value of global through vi which falls in same Dll. 

I had one simple application in VB to get and set the value of global variable using methods of dll only.

But problem is when i try to set any value it gives me error:

 

"System.Runtime.InteropServices.MarshalDirectiveException: PInvoke restriction: cannot return variants." 

 

can any one pls tell, is it possible to read write globals of Vi created DLL, and if so wat can be the possible reason of above error and how to solve it

 

Thanks in advance,

Achal Saraiya 

Achal Saraiya
0 Kudos
Message 1 of 1
(2,742 Views)