[docs]classNationalInstruments_PXIe_5654(NI_RFSG):r""" Device-specific driver for the PXIe-5654 signal generator. See the NI_RFSG class for further details. Args: name: Name for this instrument resource: Identifier for this instrument in NI MAX. dll_path: path to the NI-RFSG library DLL. If not provided, use the default location, ``C:\Program Files\IVI Foundation\IVI\bin\NiRFSG_64.dll``. id_query: whether to perform an ID query on initialization reset_device: whether to reset the device on initialization """def__init__(self,name:str,resource:str,dll_path:Optional[str]=None,id_query:bool=False,reset_device:bool=False,**kwargs):super().__init__(name=name,resource=resource,dll_path=dll_path,id_query=id_query,reset_device=reset_device,**kwargs)# device-specific parameter limitsself.frequency.vals=Numbers(250e3,20e9)self.power_level.vals=Numbers(-7,15)# check for amplitude extender and update power limits accordinglymodel=self.IDN()["model"]if"PXIe-5696"inmodel:self.power_level.vals=Numbers(-110,24)