usbtmc_connect
Connect to a USBTMC device and obtain a device_id for subsequent SCPI commands. Provide manufacturer, product, or serial number to uniquely identify the target device.
Instructions
Connect to a USBTMC device and receive a device_id for subsequent operations.
The device_id is used to identify the connection in all subsequent operations. If multiple devices match the criteria, the connection will fail - provide more specific criteria to uniquely identify the target device.
Args: params (ConnectInput): Connection parameters containing: - manufacturer (str, optional): Device manufacturer name to match - product (str, optional): Device product name to match - serial_number (str, optional): Unique device serial number (most specific)
Returns: dict: Result containing on success: - device_id (int): Unique identifier for this connection (use for all subsequent operations) - manufacturer (str): Device manufacturer name - product (str): Device product/model name - serial_number (str): Device serial number - message (str): Success message
On error:
- error (str): Error message describing the failureNote: Maximum 16 simultaneous connections are supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||