Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Using MAX to configure custom camera?

I am using NI-IMAQ 3.7.0 on WinXPP. I am trying to configure a custom camera through a PCI-1426 board.

I have a .ICD file for the camera, which I have placed in the NI-IMAQ Data directory. MAX allows me to specify img0 as that type of camera,
and Snap/Grab run quite well. However, if I Save that configuration, MAX doesn't remember it; if I stop/restart MAX, img0 comes up as an
Adimec 1000C (the first alphabetically). This happens even if I Snap before and after the Save.

If I run the (HH/LL)Grab/Snap Sample programs, I get at different times:

1) Error 0xBFF600E0 (IMG_ERR_FILE_NOT_FOUND) from imgInterfaceOpen("img0")
2) Error 0xBFF60093 (serial read timeout)

Which suggests to me that the library is guessing (incorrectly) about what the camera type is. I even went so far as to hand-edit img0.iid to
tell it to use my .ICD file -- the Samples ignored it and MAX overwrote it.

Searching the Forum it appears that no one else has had trouble with this, so there must be something simple I'm doing wrong. Alternatively,
is there a way (from C) to force the use of my .ICD file when I open the interface?
0 Kudos
Message 1 of 2
(3,591 Views)
Never mind.  My .ICD file name picked up a leading blank somewhere, which I guess troubled
some components but not others (and was pretty much invisible when displayed with a variable-
pitch font). Everything appears to be fine now.
0 Kudos
Message 2 of 2
(3,587 Views)