usbtmc_clear
Reset communication state and clear input/output buffers on USBTMC instruments to recover from errors or stuck states.
Instructions
Clear the device input/output buffers and reset communication state.
Use this to recover from communication errors or stuck states.
Args: params (DeviceIdInput): Input containing: - device_id (int): The unique identifier returned by usbtmc_connect()
Returns: dict: Result containing: - success (bool): Whether the clear operation was successful - device_id (int): The target device_id - message (str): Success or error message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||