171 self.add_property(fsmstate)
177 self.add_property(tv)
189 name=
'current', label=
'Exposure time (sec)', format=
'%3.1f',
193 name=
'target', label=
'Requested exposure time (sec)', format=
'%3.1f',
200 name=
'current', label=
'Gain', format=
'%d',
204 name=
'target', label=
'Requested gain', format=
'%d',
211 name=
'current', label=
'Current temperature (deg C)', format=
'%3.3f',
215 name=
'target', label=
'Requested temperature (deg C)', format=
'%3.3f',
222 name=
'remaining_sec', label=
'Time remaining (sec)', format=
'%3.3f',
223 min=0, max=1_000_000, step=1, _value=0.0
226 name=
'remaining_pct', label=
'Percentage remaining', format=
'%i',
227 min=0, max=100, step=0.1, _value=0.0
229 self.add_property(nv)
270 current = self.properties[
'current_exposure']
274 self.properties[
'fsm'][
'state'] =
'OPERATING'
275 self.update_property(self.properties[
'fsm'])
279 self.properties[
'fsm'][
'state'] =
'READY'
280 self.update_property(self.properties[
'fsm'])
281 if remaining_sec != current[
'remaining_sec']:
282 current[
'remaining_sec'] = remaining_sec
283 current[
'remaining_pct'] = remaining_pct
284 self.update_property(current)
290 self.update_property(self.properties[
'temp_ccd'])
294 self.update_property(self.properties[
'exptime'])
298 self.update_property(self.properties[
'gain'])