Writing a Instrument Driver
Your instrument driver must respond to the following argument and three driver commands from FlexOTO:
- Pass Command Line Arguments to Driver
- Send get_description Command to Driver
- Send measure Command to Driver
- Send exit Command to Driver
- Example Instrument 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.
FlexOTO sends the get_description
driver command and the driver returns the instrument's model and serial numbers along with front panel input connectors.
FlexOTO sends the measure
driver command with a list of Instrument input connectors on which to perform measurements. One or more available measurements are defined in the driver. All measurements are performed on each specified input connector. The names of the measurements are returned to FlexOTO along with the measurement results.