DAQ MCC and matlab64
Show older comments
hello, i am new to matlab, I'm trying to connect a USB MCC DAQ 1608GX-2AO to MatLab. The driver is installed and working I try to run this example http://kb.mccdaq.com/KnowledgebaseArticle50496.aspx
count = 1000;
angle = 2 * pi / count;
x = (0: count-1) * angle;
y = 0.8 * sin (x) + 1.5 * sin (x * 2) + 0.8 * sin (x * 3);
ao = analogoutput ( 'mcc', 0);
chan = addchannel (ao, 0);
set (ao, 'SampleRate', 4000);
set (ao, 'RepeatOutput', 50);
ai = AnalogInput ( 'mcc', 0);
ch = addchannel (ai, 0);
PutData (ao, transpose (y));
start (o);
start (ai);
y = GetData (ai);
plot (yy);
And when I do, I get this error
Error using analogoutput (line 46) The DAQ Legacy Interface is not supported on This platform. For more information on choosing Between Legacy DAQ Interface and Session-Based Interface, see the documentation on choosing the right interface.
To Learn About using data acquisition devices on the win64 platform, see the documentation on the session-based interface.
Error in OutputData (line 5) ao = analogoutput ( 'mcc', 0);
Excuse my English, I am using translator
Answers (0)
Categories
Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!