devctrl.utility.visa.enumerate_devices#

enumerate_devices(device_name, query='(GPIB)|(USB)?*:INSTR', cmd='*IDN?', visa_backend='', open_args={}, max_lines=1)[source]#

Enumerate available VISA resources matching device criteria

Returns all VISA resources that match the query pattern and respond to the identification command with the expected device name.

Parameters:
  • device_name – Part of the device name expected in the ‘*IDN?’ response

  • query – VISA resource query pattern to filter resources

  • cmd – Command to send to devices for identification

  • visa_backend – VISA backend to use (empty for default)

  • open_args – Keyword arguments to pass to open_resource

  • max_lines – Maximum number of response lines to check for device name

Returns:

List of VISA resource names that match the criteria