PDA

View Full Version : Serial Number of Camera



vzv55
August 15, 2010, 13:23:37
Please help me!
I need in my application set to each camera (up to 4) new id or serial number
or unique else.
For example 1,2,3,4.
What can I do?

Stefan Geissler
August 16, 2010, 17:27:41
Hello,

From my understanding you want to identify the cameras correctly, thus in each IC Imaging Control you can open the same camera as in the previous session. This can be done using the SaveDeviceState and LoadDeviceState functions.

In the first step the cameras are opened manually in the associated Imaging Control. After doing so, the camera is saved using e.g. SaveDeviceStateToFile.

Next time your application starts, it tries to open the cameras automatically, e.g.
IcImagingControl1.LoadDeviceStateFromFile("Device1.xml");
IcImagingControl2.LoadDeviceStateFromFile("Device2.xml");
IcImagingControl3.LoadDeviceStateFromFile("Device3.xml");
IcImagingControl4.LoadDeviceStateFromFile("Device4.xml");

Please refer to:
http://www.imagingcontrol.com/en_US/support/documentation/dotnet/meth_descICImagingControl_SaveDeviceStateToFile.ht m
http://www.imagingcontrol.com/en_US/support/documentation/dotnet/meth_descICImagingControl_LoadDeviceStateFromFile. htm

For a sample see here:
http://www.imagingcontrol.com/en_US/library/dotnet/save-and-restore-device-properties/

However, setting a new serial number for the camera, that means changing it's serial number is not possible.