Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Camera settings when NI-MAX is closed

Solved!
Go to solution

I am currently building an application with a Manta G504B which is NI_IMAQdx compatible. I am having problems with the UserSetDefaultSelector attribute. This attribute is supposed to define the power up default settings. Here is my step sequence:

Open NI-MAX, select the Manta camera and change some attributes such as ExposureTimeAbs to 68000, UserSetDefaultSelector to UserSet1 and UserSetSelector to UserSet1.

Next I select the UserSetSave and press the Execute button that appears.

Then I close NI-MAX. At this point a Confirm Save popup window appears asking me if I want to save my settings. Thinking I already did (see previous step) I click the No button.

When I reopen NI-MAX, my default selections are not there.

If I chose the Yes to the Confirm Save popup window, then the UserSetDefaultSelector settings are saved.

What are the additional steps NI-MAX is doing when I click the Yes button to the Confirm Save popup window? Why isn't the UserSetSave attribute sufficient to change the camera attributes?

0 Kudos
Message 1 of 5
(4,880 Views)

NI saves the cameras settings separately in the background into a *.icd format file. So you don't need to use the UserSet functionality with that software. The camera settings are even overwritten by the software. The camera feature for saving settings is only useful in software packages, which are not loading/saving settings.

Oliver Guennel

www.alliedvisiontec.com
0 Kudos
Message 2 of 5
(4,877 Views)

Thanks Oliver, just a few simmple questions: Where does this .icd file reside? (I can't seem to find it.) Is there a way to overwrite this .icd file from LabView? Are there any examples?

0 Kudos
Message 3 of 5
(4,872 Views)
Solution
Accepted by j.masse

Hello,

For icd, see here

C:\Users\Public\Documents\National Instruments\NI-IMAQdx\Data.

 

You have to know that when you use your camera in labview, this icd allows labview to set camera defaults settings. But you can access icd with IMAQdx Read Attributes and IMAQdx Write Attributes

icd.png

Regards

NTA_LabView_certified_Developper.jpg
Message 4 of 5
(4,861 Views)

Also, they are not on the palette currently, but there are equivalent versions of those functions inside the IMAQdx library's LLB file that save to and from a string rather than a file. This might be useful for certain applications where you want to control where the settings are saved (you could save the settings as a string constant in your VI, for instance, and not have to copy around the ICD file when replicating setups).


Eric

0 Kudos
Message 5 of 5
(4,855 Views)