Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQdx DLL

Dear programmers,

 

I am trying to build a simple .dll, using IMAQdx, but having problems at defining function prototypes. How can I properl< export "Session In/Out" and how can I handle the type def (TD) structure?

 

I am attaching the project and would be thankful for any explanation about this. This is just out of my curiosity.

 

Best regards,

K

 

 


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 1 of 3
(4,255 Views)

Hi Klemen!

 

 Library Calls from LabVIEW have to use standard C or stdcall conventions, even if they call a DLL compiled in LabVIEW, so if you have special datatypes and structures, you have to pass them as generic data fit this constraint. In your case, I would advise ot use the Flatten to String and Unflatten from String VIs, or the Type Cast VI and pass the data as a String Handle.

 

Here you can find more information about passing data to DLLs:

https://decibel.ni.com/content/docs/DOC-9079

 

Kind regards:

 

Andrew Valko

National Instruments

Andrew Valko
National Instruments Hungary
Message 2 of 3
(4,247 Views)

Thank you very much for the explanation! I will check out the attached link.

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 3 of 3
(4,210 Views)