170 self.add_property(fsmstate)
176 self.add_property(tv)
188 name=
'current', label=
'Exposure time (sec)', format=
'%3.1f',
192 name=
'target', label=
'Requested exposure time (sec)', format=
'%3.1f',
199 name=
'current', label=
'Gain', format=
'%d',
203 name=
'target', label=
'Requested gain', format=
'%d',
210 name=
'current', label=
'Current temperature (deg C)', format=
'%3.3f',
214 name=
'target', label=
'Requested temperature (deg C)', format=
'%3.3f',
221 name=
'remaining_sec', label=
'Time remaining (sec)', format=
'%3.3f',
222 min=0, max=1_000_000, step=1, _value=0.0
225 name=
'remaining_pct', label=
'Percentage remaining', format=
'%i',
226 min=0, max=100, step=0.1, _value=0.0
228 self.add_property(nv)
269 current = self.properties[
'current_exposure']
273 self.properties[
'fsm'][
'state'] =
'OPERATING'
274 self.update_property(self.properties[
'fsm'])
278 self.properties[
'fsm'][
'state'] =
'READY'
279 self.update_property(self.properties[
'fsm'])
280 if remaining_sec != current[
'remaining_sec']:
281 current[
'remaining_sec'] = remaining_sec
282 current[
'remaining_pct'] = remaining_pct
283 self.update_property(current)
289 self.update_property(self.properties[
'temp_ccd'])
293 self.update_property(self.properties[
'exptime'])
297 self.update_property(self.properties[
'gain'])