usbtmc_disconnect
Close an active USBTMC device session by supplying the unique device ID obtained from a prior connection, releasing the instrument for other use.
Instructions
Disconnect from a specific USBTMC device.
Args: params (DeviceIdInput): Input containing: - device_id (int): The unique identifier returned by usbtmc_connect()
Returns: dict: Result containing: - success (bool): Whether the disconnection was successful - device_id (int): The disconnected device_id - product (str): Product name of the disconnected device - message (str): Success or error message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||