Open AdriaanRol opened 7 years ago
When using instruments that do not have an "IDN" method the Instrument.connect_message does not work.
Instrument.connect_message
I propose resolving this by adding the following method to the Instrument base class.
def get_idn(self): return {'driver': str(self.__class__), 'name': self.name}
I think it is quite useful to have this method be part of the base class as we also want to see this message for e.g., Dummy instruments or things like meta instruments.
(nvm)
When using instruments that do not have an "IDN" method the
Instrument.connect_message
does not work.I propose resolving this by adding the following method to the Instrument base class.
I think it is quite useful to have this method be part of the base class as we also want to see this message for e.g., Dummy instruments or things like meta instruments.