DAQ though MATLAB, writing data to other device issue

1 回表示 (過去 30 日間)
Rajesh Raveendran
Rajesh Raveendran 2020 年 2 月 14 日
回答済み: Aghamarsh Varanasi 2020 年 12 月 29 日
I have a simulink file where I run a simulation with DAQ NI-USB6002 device.
In that device I use AO0, AO1 and AI1 channel for data acquisition process. When I try to run the simulink file, I get the following error.
"Hardware associated with this session is reserved by another session or external process. Release the session to unreserve the hardware or exit the external program and retry the operation."
I opened NI DAQmx and Reseted the session and started the simulation again. Facing the same issue again. What exactly is happening and any workarounds for this issue?
Thanks in advance.

回答 (1 件)

Aghamarsh Varanasi
Aghamarsh Varanasi 2020 年 12 月 29 日
Hi,
Ensure that you are using the device in the same interface that it is configured to work with. The two interfaces being Traditional NI-DAQ and NI-DAQmx. Once the device is configured or used in one of these configurations, the device cannot be used in the other configuration.
Refer to this answer for the workaround for this problem.
Also you can refer to this bug report for further details.

カテゴリ

Help Center および File ExchangeDigital Input and Output についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by