LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-IMAQ 1394 2.0.1 camera settings do not stick

I use LabVIEW 7.1 and NI-IMAQ 1394 2.0.1 and I’m trying to use the functions provided to setup a firewire camera.

When I use the property node to change “Brightness” or “Gain” of the camera these settings can be changed and read and seem OK but if I stop the program and start the program again and read the parameters they are back to what they were from the beginning. Somehow they seem not to have reached the camera but are still in a NI- IMAQ buffer somewhere.

Why is this the case and what is the minimum operation I have to do to make the settings be applied to the camera?

(I have observed similar behaviour with IMAQ and an analog camera)
0 Kudos
Message 1 of 5
(2,539 Views)

I would save these settings that, "don't stick" in an initialization file.  Every time you run the application, initialize the camera first.  As you run the application track these changes and write the file on Exit.  I would recommend a Cluser of parameters, a Shift Register to hold and modify the state as it runs, any use the flatten to XML and Save the new configuration.  Use unflatten from XML to restore the settings.

Make Sense?

Matt

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 5
(2,536 Views)
What I want to do is to setup the camera and store the settings to the camera memory and do a flat-field calibration of the camera (and maybe also store the calibration image in the camera).
I will use your method to handle the default settings. Thanks!!!

Then I will remove the camera from the calibration setup and use it in a machine performing measurements not using LabVIEW. I could make all the setup in the machine again but that would mean more work than to use LabVIEWs functionality (I'm just lazy).

I just want to be sure that all settings have reached the camera memory and that they were stored there. It does not seem that the Property Node communicates directly with the camera like the "IMAQ1394 Write Registers" command does.

Richard
0 Kudos
Message 3 of 5
(2,531 Views)

I do not have enough camera experience to say it should or should not work.  Try posting the same question in the Vision forum.

Matt

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 4 of 5
(2,526 Views)
OK, I will try to post the question there.

Richard
0 Kudos
Message 5 of 5
(2,523 Views)