View Full Version : Load settings for camera from file not possible

July 25, 2005, 09:02:26
Hello again,

following situation:

After changing the settings for the camera I save the props to file. When starting the application the settings should be loaded and the camera operate with them.

I tried both ways to save and load the settings, but neither works. I can save all settings by

.SaveDeviceStateToFile "cSettings.dat"

or using the long way

and save the string manually to file.

Checking the file after saving exposure shows different values, as expected,
i.E. when setting to 1/50 the value is 1.996999979019165e-002 (I checked several values).

Now the problem:

When loading the settings from file (.LoadDeviceStateFromFile or LoadDeviceState after reading the file manually) the exposure always sets to 1/16 while other settings are restored accurately, i.E. gain.

Please give a hint why that behaviour could happen.

Some technical information:
Camera used: DMK21BF04
OS: Win2000Pro SP4
Programming language: VB6 with IC ImagingControl 2.1

Thank you for your help,


Stefan Geissler
July 26, 2005, 08:56:08

I did following:

Private Sub Command1_Click()

ICImagingControl1.SaveDeviceStateToFile "test.xml"
End Sub

Private Sub Form_Load()

On Error GoTo loaderror
ICImagingControl1.LoadDeviceStateFromFile "test.xml", True
Exit Sub
MsgBox "Loaderror"
End Sub

This worked correctly. The exposure value has been controlled with the "ShowPropertyDialog"
method. Between the tests i changed the properties of the camera using another
program to make sure, there has been something differend written in the camera.