Not able to communicate with usb daq device.

2 ビュー (過去 30 日間)
Kulbir
Kulbir 2023 年 3 月 28 日
コメント済み: Walter Roberson 2023 年 4 月 24 日
hi all, i am not able to communicate with my usb daq device. i am using the windows' COM port in my coding. please help me out. thx
ERROR MESSAGE
Error using serialport
Unable to connect to the serialport device at port 'COM4'. Verify that a device is connected to the port, the port is not in use, and all serialport input
arguments and parameter values are supported by the device.
See related documentation for troubleshooting steps.
Error in testcode2 (line 2)
serialPort = serialport("COM4", 115200); % Replace "COM1" with the appropriate port name
>>

回答 (1 件)

Sarthak
Sarthak 2023 年 4 月 21 日
Hi Kulbir,
As per my understanding it is difficult to pinpoint the exact reason for the error you are facing however there can be multiple reasons
  • Make sure the specified COM port matches the port of your USB.
  • Ensure that the specified port is not already in use.
If you have made sure that you have the required drivers and inputs, you may need to refer to the documentation provided by the manufacturer of your DAQ device or raise a support request for the same.
Here is the link for your reference
  8 件のコメント
Kulbir
Kulbir 2023 年 4 月 24 日
it is not an Arduino device. yes DAQ(digital to analog convert is provided in the device). a button is also provided to plot the readings.
Walter Roberson
Walter Roberson 2023 年 4 月 24 日
Have you created a circuit diagram for your device that you could post?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSerial and USB Communication についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by