[docs]classGentec_Maestro(VisaInstrument):r""" Instrument driver for the Gentec Maestro powermeter. Args: name (str): Instrument name. address (str): ASRL address baud_rate (int): Baud rate for the connection. Attributes: model (str): Model identification. firmware_version (str): Firmware version. """def__init__(self,name,address,baud_rate=115200,**kwargs):super().__init__(name,address,**kwargs)# set baud rateself.visa_handle.baud_rate=baud_rate# get instrument informationself.model,_,self.firmware_version=self._query_versions()# add parametersself.add_parameter('power',get_cmd='*CVU',get_parser=float,label='Power',unit='W')defwavelength_get_parser(ans):returnint(ans[4:])self.add_parameter('wavelength',get_cmd='*GWL',set_cmd='*PWC{0:0>5}',get_parser=wavelength_get_parser,label='Wavelength',unit='nm')defzero_offset_get_parser(ans):returnint(ans[5:])self.add_parameter('zero_offset_enabled',get_cmd='*GZO',get_parser=zero_offset_get_parser,val_mapping=create_on_off_val_mapping(on_val=1,off_val=0),label='Zero offset enabled')# print connect messageself.connect_message()# get methods