RichLamb
2008-08-08 03:10:05 UTC
Hi,
I'm using a camera under IMAQdx (I've assumed IMAQ is largely obsolete - at least for new development), and I'm having trouble with programatically modifying the camera file.
I've dug up some examples on how this is done here: <a href="http://sine.ni.com/devzone/cda/epd/p/id/1212" target="_blank">http://sine.ni.com/devzone/cda/epd/p/id/1212</a>
but they seem to be a bit obsolete, and certainly full of errors in pathnames and file formats.
I know my camera and interface files exist at ..\Documents and Settings\All Users\Documents\National Instruments\NI-IMAQdx\data
I have this specific question:
How do you locate the camera files using registry keys?
The keys for IMAQdx reference an NIIMAQPATH which is somewhere in Program Files - not correct. The keys for "IMAQ for Windows 95/NT" (used in the old examples) reference an NIIMAQPATH which points to the IMAQ data, rather than the IMAQdx data. So none of the registry keys is completely useful for IMAQdx camera data.
How does MAX get to the config files?
I'm really hoping nobody's going to ask me to use a hardcoded path, as that is a recipe for disaster on installed systems - which leads me to another question:
How does all this get set up when you package the application? I've been assuming the packaging will include the same registry keys, and the same camera file locations. Pretty hard to develop applications if this is not the case.
Does anybody have any more up-to-date help on this stuff? I'm finding it quite frustrating that something so necessary is so hard to find here :-(
regards,
RichLamb
I'm using a camera under IMAQdx (I've assumed IMAQ is largely obsolete - at least for new development), and I'm having trouble with programatically modifying the camera file.
I've dug up some examples on how this is done here: <a href="http://sine.ni.com/devzone/cda/epd/p/id/1212" target="_blank">http://sine.ni.com/devzone/cda/epd/p/id/1212</a>
but they seem to be a bit obsolete, and certainly full of errors in pathnames and file formats.
I know my camera and interface files exist at ..\Documents and Settings\All Users\Documents\National Instruments\NI-IMAQdx\data
I have this specific question:
How do you locate the camera files using registry keys?
The keys for IMAQdx reference an NIIMAQPATH which is somewhere in Program Files - not correct. The keys for "IMAQ for Windows 95/NT" (used in the old examples) reference an NIIMAQPATH which points to the IMAQ data, rather than the IMAQdx data. So none of the registry keys is completely useful for IMAQdx camera data.
How does MAX get to the config files?
I'm really hoping nobody's going to ask me to use a hardcoded path, as that is a recipe for disaster on installed systems - which leads me to another question:
How does all this get set up when you package the application? I've been assuming the packaging will include the same registry keys, and the same camera file locations. Pretty hard to develop applications if this is not the case.
Does anybody have any more up-to-date help on this stuff? I'm finding it quite frustrating that something so necessary is so hard to find here :-(
regards,
RichLamb