From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify camera attributes with an .ini file

Solved!
Go to solution

Hello.

 

I would like to change some camera attributes thanks to an INI file, before running the User Interface.

The problem is that when I display the values of the modified attributes, they are not modified : it is still the same values as in the NIMAX camera file .

In fact I opened an IMAQdx session with IMAQdxOpenCamera, then I loaded the value from Camera.ini to the Camera Attributes, and finally I closed the session with IMAQdxCloseCamera.

 

I look forward to seeing your ideas!

 

Thomas1330

0 Kudos
Message 1 of 3
(4,219 Views)

Hello,

 


Check if this ini file is not in "read only" mode.

 

Thanks

Paolo_P
Certified TestStand Architect
Certified LabVIEW Architect
National Instruments France

0 Kudos
Message 2 of 3
(4,158 Views)
Solution
Accepted by topic author thomas1330

Hello,

 

 

in fact I resolved the problem.

I used the following function :  IMAQdxReadAttribute (id session, ini_pathname)  --> only the attributes written in the .ini are changed in the camera file, until I close my program Smiley Wink

 

 

Thomas1330

0 Kudos
Message 3 of 3
(4,148 Views)