I am using an NI PCI-1426 Camera Link frame grabber to interface with a Dalsa P2-2x 8K40 digital camera. I am programming using IMAQ under C#. I have been able to grab images and start and stop acquisitions using the IMAQ AcquireImage, Start, Stop, etc. methods. I have also tried to change parameters in the camera itself using the set_CameraAttribute method. If I set a property and read it back, it appears in the code that it is successful (no error and the value read back is what it was just set to). However, the property change does not have any affect on the camera's performance (if I make the same change from MAX, the camera very clearly responds). It appears that
the change is happening only in the C# control itself and is not being communicated to the camera. Is there another command necessary to actually send the information to the camera? I am making sure that acquisition is halted before changing the properties. To check myself I have changed Getting Started example which is shipped with IMAQ but has not got any positive results. There is the code which I have added to the example:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1_Click
CWIMAQ1.set_CameraAttribute("DataMode", "8 Bit")
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_Click
CWIMAQ2.set_CameraAttribute("DataMode", "10 Bit")
End Sub
Where is the problem? What should I do in order to solve it?