mound wrote:
> In my case I ended up creating a LIB file for the 1409, and by doing a
> DUMPBIN to see the methods the Test1409.dll provided, I did a
> conditional set of calls to it's library of functions.. Perhaps though
> from what you're saying this whole approach is dangerous.
Well, it is dangerous in the sense that this DLL is for a specific card.
Changing cards will cause problems. I think it is the DLL used by
Measurement & Automation Explorer to test the different cards. So a new
version of Measurement & Automation Explorer may install a new version
of those DLLs and although it knows how to call that DLL your
application will attempt to call it in the old way.
In general you should not need to call such functions to get the IMAQ
c
ard initialized. The NI-IMAQ Programmers Reference manual should show
you how to initialize any IMAQ card in a consistent way. I have little
experience with the C API of NI-IMAQ but from what I remember
intializing any IMAQ card should be something like this:
char interfaceName[INTERFACE_NAME_SIZE];
INTERFACE_ID intf;
uInt32 sessId;
if (err = imgInterfaceOpen(interfaceName, &intf))
return err;
if (err = imgSessionOpen(intf, &sessId))
return err;
/* Set all the attributes to initialize the hardware correctly */
err = imgSetAttribute(sessId, IMG_ATTR_Some_Attr, some_value);
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390