フィルターのクリア

why matlab hangs up when i use 2 channels from analog discovery with data aquisition toolbox

1 回表示 (過去 30 日間)
clear
s = daq.createSession('digilent')
ch = addAnalogOutputChannel(s,'AD1', 1:2, 'Voltage')
rate = 1e6;
s.Rate = rate;
outputData(:,1) = linspace(-1,1,1000);
outputData(:,2) = linspace(-2,2,1000)';
queueOutputData(s,outputData);
startForeground(s);
hi,
i whant to generate signals on two channels with analog discovery divice, with data aqisition toolbox. While using one channel there are no problems occuring. When i use two channels (with the code below) the signals gets generated, but then matlab dont stops running and i can unly quit when closing matlab.
I am very grateful for help

回答 (1 件)

Sai Deepesh Pokala
Sai Deepesh Pokala 2018 年 6 月 8 日
When you install MATLAB, there is a cap on the RAM that it is allowed to occupy. Therefore, if your code involves creating temporary high-dimensional arrays or matrices, chances are it might reach that limit. Try eliminating unwanted loops or assignments. Good luck!

カテゴリ

Help Center および File ExchangeData Acquisition Toolbox Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by