‎09-21-2005 06:23 PM
‎09-22-2005
10:20 AM
- last edited on
‎06-01-2025
06:12 PM
by
Content Cleaner
ajmib,
There's an article that I want to point you to before I assume that there may be a problem with the imaq calls. See http://digital.ni.com/public.nsf/websearch/DA7FA9C467BA4CC886256E62006DEBA2?OpenDocument. This document talks about allocating memory correctly when passing arrays to\from dlls. Also check out http://zone.ni.com/devzone/conceptd.nsf/webmain/5cf9a9ffd774028586256869005ff2ed, specifically the section on Advanced Topic Array and String operations.
One last question. Does the vi from which you make the dll run correctly?
Chris C
Applications Engineering
National Instruments
‎09-22-2005 12:32 PM
‎09-23-2005
05:40 PM
- last edited on
‎06-01-2025
06:13 PM
by
Content Cleaner
Jose,
Are you trying to pass the LabVIEW Image Datatype? If so, this is unlike other LabVIEW datatypes - you could think of it like a pointer. The IMAQ Create sets up an area in your system memory to store the image data - the Image Datatype that is passed to the other IMAQ Vi's is like a pointer to that buffer - it does not actually transfer the image data. If you need to pass the image data - use the IMAQ Image to Array.vi to extract the image into an array of integer values that you can pass.
I am still very unclear exactly what is going on. Perhaps this link will have some sources for you to debug your dll problems:
http://zone.ni.com/devzone/devzone.nsf/webcategories/E2A99E7E10D5725D862567AC004F0A53
‎03-13-2010 03:34 AM
‎03-13-2010 09:58 AM