function CameraOFF(deviceName)

javaMethod('setProperty', 'java.lang.System', 'cmw.names', 'abcmw.cern.ch:5020');
rda = cern.cmw.rda.client.RDAService.init();
cycle = 'SCT:USER:SETUP';
device = rda.getDeviceHandle(deviceName);

ExpertSettingProp='ExpertSetting';
ExpertSettingFields=device.get(ExpertSettingProp,cycle);

ExpertSettingFields.insert('alwaysAcquire',logical(0));
ExpertSettingFields.insert('startAcquisition',logical(0));

device.set(ExpertSettingProp,cycle,ExpertSettingFields);


ExpertSettingFields=device.get(ExpertSettingProp,cycle);

aa = ExpertSettingFields.extractBoolean('alwaysAcquire');
sa = ExpertSettingFields.extractBoolean('startAcquisition');

fprintf(1,'Camera %s: alwaysAcquire=%d  startAcquisition=%d\n',deviceName,aa,sa)


