Public Member Functions | |
def | setup_fifo_names (self) |
def | open_fifoch (self) |
def | write_fifoch (self, com) |
def | close_fifoch (self) |
def | connect (self) |
def | take_control |
def | giveup_control (self) |
Public Attributes | |
base_path | |
fifo_out_name | |
fifo_in_name | |
pollobj | |
fifo_out | |
fifo_in | |
connected | |
control | |
A basic VisAO FIFO device. Establishes basic fifo bichannel communications with a VisAO process. Derived classes should provide self.base_name in their __init__ method, and should set connected = 0 and control = 0.
Definition at line 22 of file visaofifos.py.
def visaofifos.VisAOFifoDev.setup_fifo_names | ( | self | ) |
Construct the script fifo paths based on the base_name variable.
Definition at line 28 of file visaofifos.py.
References visaodevices.FocusCtrl.base_name, visaodevices.CCD47Ctrl.base_name, visaodevices.FilterWheel2.base_name, visaodevices.FilterWheel3.base_name, visaodevices.Shutter.base_name, visaodevices.Gimbal.base_name, visaodevices.framegrabber39.base_name, visaodevices.framewriter39.base_name, visaofifos.VisAOFifoDev.base_path, VisAO::profiler.base_path, visaofifos.VisAOFifoDev.fifo_in_name, and visaofifos.VisAOFifoDev.fifo_out_name.
def visaofifos.VisAOFifoDev.open_fifoch | ( | self | ) |
Open the script fifo channel to this device.
Definition at line 39 of file visaofifos.py.
References visaofifos.VisAOFifoDev.fifo_in, visaofifos.VisAOFifoDev.fifo_in_name, visaofifos.VisAOFifoDev.fifo_out, visaofifos.VisAOFifoDev.fifo_out_name, and visaofifos.VisAOFifoDev.pollobj.
Referenced by visaofifos.VisAOFifoDev.connect().
def visaofifos.VisAOFifoDev.write_fifoch | ( | self, | |
com | |||
) |
Write com to the script fifo for this device, read and return the response.
Definition at line 59 of file visaofifos.py.
Referenced by visaodevices.FocusCtrl.abort(), visaodevices.CCD47Ctrl.exptime(), visaodevices.FilterWheel.get_filter(), visaodevices.CCD47Ctrl.get_framerate(), visaodevices.FocusCtrl.get_pos(), visaodevices.CCD47Ctrl.get_reps(), visaodevices.CCD47Ctrl.get_state(), visaodevices.Shutter.get_state(), visaodevices.CCD47Ctrl.get_subdir(), visaofifos.VisAOFifoDev.giveup_control(), visaodevices.FilterWheel.home(), visaodevices.CCD47Ctrl.imtype(), visaodevices.Shutter.open(), visaodevices.FocusCtrl.pos(), visaodevices.FocusCtrl.preset(), visaodevices.CCD47Ctrl.reps(), visaodevices.CCD47Ctrl.save(), visaodevices.framegrabber39.save(), visaodevices.CCD47Ctrl.savedark(), visaodevices.FilterWheel.set_filter(), visaodevices.CCD47Ctrl.set_program(), visaodevices.Shutter.shut(), visaodevices.CCD47Ctrl.subdir(), visaodevices.framegrabber39.subdir(), visaodevices.framewriter39.subdir(), visaofifos.VisAOFifoDev.take_control(), visaodevices.FilterWheel.wait_home(), visaodevices.FocusCtrl.wait_move(), visaodevices.FilterWheel.wait_move(), visaodevices.Gimbal.wait_move(), visaodevices.CCD47Ctrl.wait_save(), and visaodevices.framegrabber39.wait_save().
def visaofifos.VisAOFifoDev.close_fifoch | ( | self | ) |
Close the fifo channel.
Definition at line 78 of file visaofifos.py.
References visaodevices.FocusCtrl.connected, visaofifos.VisAOFifoDev.connected, visaodevices.CCD47Ctrl.connected, visaodevices.FilterWheel2.connected, visaodevices.FilterWheel3.connected, visaodevices.Shutter.connected, visaodevices.Gimbal.connected, visaodevices.framegrabber39.connected, and visaodevices.framewriter39.connected.
Referenced by visaofifos.VisAOFifoDev.connect().
def visaofifos.VisAOFifoDev.connect | ( | self | ) |
Connect to the script fifos of this device.
Definition at line 86 of file visaofifos.py.
References visaofifos.VisAOFifoDev.close_fifoch(), visaodevices.FocusCtrl.connected, visaofifos.VisAOFifoDev.connected, visaodevices.CCD47Ctrl.connected, visaodevices.FilterWheel2.connected, visaodevices.FilterWheel3.connected, visaodevices.Shutter.connected, visaodevices.Gimbal.connected, visaodevices.framegrabber39.connected, visaodevices.framewriter39.connected, and visaofifos.VisAOFifoDev.open_fifoch().
Referenced by visaodevices.FocusCtrl.abort(), visaodevices.FilterWheel.get_filter(), visaodevices.CCD47Ctrl.get_framerate(), visaodevices.FocusCtrl.get_pos(), visaodevices.CCD47Ctrl.get_reps(), visaodevices.CCD47Ctrl.get_state(), visaodevices.Shutter.get_state(), visaodevices.CCD47Ctrl.get_subdir(), visaofifos.VisAOFifoDev.giveup_control(), visaodevices.FilterWheel.home(), visaodevices.Shutter.open(), visaodevices.FilterWheel.set_filter(), visaodevices.CCD47Ctrl.set_program(), visaodevices.Shutter.shut(), visaofifos.VisAOFifoDev.take_control(), visaodevices.FilterWheel.wait_home(), visaodevices.FocusCtrl.wait_move(), visaodevices.FilterWheel.wait_move(), visaodevices.Gimbal.wait_move(), visaodevices.CCD47Ctrl.wait_save(), and visaodevices.framegrabber39.wait_save().
def visaofifos.VisAOFifoDev.take_control | ( | self, | |
override = 0 |
|||
) |
Take SCRIPT control of this device. Input: override Default is 0, no override. If 1, override.
Definition at line 96 of file visaofifos.py.
References visaodevices.FocusCtrl.base_name, visaodevices.CCD47Ctrl.base_name, visaodevices.FilterWheel2.base_name, visaodevices.FilterWheel3.base_name, visaodevices.Shutter.base_name, visaodevices.Gimbal.base_name, visaodevices.framegrabber39.base_name, visaodevices.framewriter39.base_name, visao.VisAO.connect(), visaofifos.VisAOFifoDev.connect(), visaodevices.FocusCtrl.connected, visaofifos.VisAOFifoDev.connected, visaodevices.CCD47Ctrl.connected, visaodevices.FilterWheel2.connected, visaodevices.FilterWheel3.connected, visaodevices.Shutter.connected, visaodevices.Gimbal.connected, visaodevices.framegrabber39.connected, visaodevices.framewriter39.connected, visaodevices.FocusCtrl.control, visaodevices.CCD47Ctrl.control, visaofifos.VisAOFifoDev.control, visaodevices.FilterWheel2.control, visaodevices.FilterWheel3.control, visaodevices.Shutter.control, visaodevices.Gimbal.control, visaodevices.framegrabber39.control, visaodevices.framewriter39.control, and visaofifos.VisAOFifoDev.write_fifoch().
def visaofifos.VisAOFifoDev.giveup_control | ( | self | ) |
Give up SCRIPT control of this process, returning to its default.
Definition at line 121 of file visaofifos.py.
References visaodevices.FocusCtrl.base_name, visaodevices.CCD47Ctrl.base_name, visaodevices.FilterWheel2.base_name, visaodevices.FilterWheel3.base_name, visaodevices.Shutter.base_name, visaodevices.Gimbal.base_name, visaodevices.framegrabber39.base_name, visaodevices.framewriter39.base_name, visao.VisAO.connect(), visaofifos.VisAOFifoDev.connect(), visaodevices.FocusCtrl.connected, visaofifos.VisAOFifoDev.connected, visaodevices.CCD47Ctrl.connected, visaodevices.FilterWheel2.connected, visaodevices.FilterWheel3.connected, visaodevices.Shutter.connected, visaodevices.Gimbal.connected, visaodevices.framegrabber39.connected, visaodevices.framewriter39.connected, visaodevices.FocusCtrl.control, visaodevices.CCD47Ctrl.control, visaofifos.VisAOFifoDev.control, visaodevices.FilterWheel2.control, visaodevices.FilterWheel3.control, visaodevices.Shutter.control, visaodevices.Gimbal.control, visaodevices.framegrabber39.control, visaodevices.framewriter39.control, and visaofifos.VisAOFifoDev.write_fifoch().