pyrolab.drivers.sample.SampleAutoconnectInstrument#
- class SampleAutoconnectInstrument[source]#
Bases:
InstrumentA service that mocks a hardware instrument with connection parameters.
This service will only be accessible if your configuration file lists the autoconnect parameters correctly.
Methods
Autoconnect to an instrument using internally stored parameters.
close()Close the hosting computer's connection with the hardware instrument.
connect([address, port])Connect to the hardware instrument.
Returns a list of connection parameters for available devices.
A method that does nothing and passes silently.
ping()Returns a bool (True) to indicate that the Daemon is alive and can be communicated with.
Return the version of PyroLab running the device.
set_behavior([instance_mode, instance_creator])Sets the Pyro5 behavior for the class (modified in place).
whoami()Returns the object id of the instance that handled the request.