So far I've been successful acquiring images and setting camera attributes (triggering, exposure time, height & width, and so on) withIMAQdx in LabView. To do this, I've been looking through the above manual and the NI-MAX XML file for the camera to get the attribute names and values, then using IMAQdx property nodes to set the attribute name and value. However, I'm struggling to set the gain. When attempting to adjust the gain, the camera gain does not change, though the code runs. (See attached screenshot for my attempt to set these IMAQdx attributes)
- As mentioned above, I'm able to set other camera attributes. This includes setting the Digital Shift attribute using CameraAttributes::AnalogControl::DigitalShift as the ActiveAttribute.
- The camera supports gain values between 0.0 dB and 36.0 dB. Passing a number outside of this range causes an error.
- Varying the gain slider in NI-MAX, and also in the manufacturer's native software (Basler Pylon Viewer) works. The above code runs without errors, but doesn't seem to actually change anything.
Probably a silly question: do you have some ideas for what I could be doing wrong?
Thanks in advance!
UPDATE: I found a bug elsewhere in the VI; fixing this bug makes it work as it should. Problem solved!