I am familiar with writing DLLs that can be called from LabVIEW, but I'm curious about the correct way to transfer IMAQ images to DLLs. Here is one of the ways I found for this - I also use a similar mechanism to publish IMAQ Image instances from my DLL to the event structure.

Note that the nodes that convert image instances to / from clusters are located in ${LABVIEW_INSTALL_DIR}/vi.lib/vision/DatatypeConversion.llband are called IMAQ Image Datatype to Image Cluster.viand IMAQ Image Cluster to Image Datatype.virespectively. The created cluster consists of an image name and an integer value that represents the address of a type pointer Image*in C / C ++.
Is this the best way to do this, or is there a better way?
source
share