ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass a buffer as pointer to a .NET method

Native .Net assemblies indeed should not use pointer datatypes. So your guess that it is just an (automatically generated) .Net wrapper for an ActiveX/COM object is most likely right. Accessing the underlaying COM object directly will however only be possible if you can locate it AND it is a full ActiveX server. LabVIEW can not access pure COM interfaces directly as they lack the possibility to uniformly discover the interface definition and require C(++) programming with according.header files to do that.

without having the exact assembly available, it’s difficult to assert for sure. I don’t know how LabVIEW translates this uint8* pointer. If it is a pointer refnum the snippet should work but it could be a number of other things.

 

It’s basically a point for point translation of according C# marshaling code when dealing with function calls using unmanaged datatypes.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 11 of 11
(660 Views)