Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to programmatically modify camera description files?

Hi all,

Basically I'm trying to figure out how to store to file the changes a user made to the .iid and/or .icd values during an app run.

For instance... I have utilities built up that help the user vary the Black and White reference voltages (using an IMAQ 1408) interactively (they can see the results of each new value nearly instantly). The problem is that these changes only last for that program run... meaning that once the app is restarted the values found in the .icd file (I presume) are re-loaded.

I had thought that the .icd file was similar enough in format to the standard configuration file format to make using the read/write config file VIs applicable. However th
ere are subtle differences that cause problems when re-writing the file.

I am also not sure that the values stored in the .icd file are exact matches with those presented under MAX. For instance the key names that seem to be related to the black and white reference voltages don't always reference numerical values that are matches with those displayed in MAX.

Does anyone know of a way to store programmatic changes to IMAQ properties, without having to store all the modified values into a seperate file?
0 Kudos
Message 1 of 2
(3,248 Views)
The only way I know to record changes in an ICD file is to use MAX, other than directly editing it as a text file. Any changes you make during the execution of a program will, as you said, revert to the default values the next time you run the program.

To store the changes, the easiest way would probably to have the user use MAX for permanent changes. The MAX interface is relatively easy to use (after a short learning curve). You can get immediate updates after changing values by using the grab button to continuously update the image.

If you don't like the MAX interface, I think you are going to need to store the values in a separate file. You could try to change the contents of the ICD file by using string manipulation, but I don't think it would be worth t
he amount of time it would take to develop the tools.

Bruce
Bruce Ammons
Ammons Engineering
Message 2 of 2
(3,248 Views)