Writing a Switch Driver
FlexOTO Instance:
Hardware Diagram
Your switch driver must respond to the following argument and four commands from FlexOTO:
- Pass Command Line Arguments to Driver
- Send get_description Command to Driver
- Send set_routes Command to Driver
- Send set_wavelength Command to Driver
- Send exit Command to Driver
- Example Switch Driver
All messages are read by the driver using stdin
. For example, in Python you would use the input()
statement. All messages are sent by the driver to FlexOTO using stdout
. For example, in Python you would use the print()
statement.