internal void WriteProfile()
{
using (Profile driverProfile = new Profile())
{
driverProfile.DeviceType = "Camera";
driverProfile.WriteValue(driverID, traceStateProfileName, traceState.ToString());
driverProfile.WriteValue(driverID, gainStateProfileName, gainState.ToString());
driverProfile.WriteValue(driverID, offsetStateProfileName, offsetState.ToString());
driverProfile.WriteValue(driverID, onTopStateProfileName, onTopState.ToString());
driverProfile.WriteValue(driverID, coolerEnabledStateProfileName, coolerEnabledState.ToString());
driverProfile.WriteValue(driverID, coolerComPortStateProfileName, coolerComPortState.ToString());
}
}