Analogoutput Keithley KUSB 3116 via Matlab

2 views (last 30 days)
Hello,
I've been trying to send a sine wave to Keithley KUSB 3116 via MatlabR2015b_win32 using analogoutput.
At first, i managed to register my board using Daqregister('dtol.dll') but when i checked the board info with Daqhwinfo('dtol') Matlab return with BoardNames blank.
Then i installed datatranslation DT9834's driver which it identical to KUSB 3116. Matlab managed to dectect the board
ans =
AdaptorDllVersion: '1, 0, 0, 52'
AdaptorName: 'dtol'
BoardNames: {'DT9834(00)'}
InstalledBoardIds: {'0'}
ObjectConstructorName: {'analoginput('dtol', 0)' 'analogoutput('dtol', 0)' 'digitalio('dtol', 0)'}
I can create device object(analogoutput), add channel to analog output(addchannel) and configure analog output just fine but when i tried to send the data to my board
frequency = 100; % required frequency
period = 1/frequency; % required period
amplitude = 127 ; % required amplitude
phase = 0; % required phase angle
offset = 0; % required DC offset
t = 0:0.00001:2*period;
data = amplitude*sin(2*pi*frequency*t + phase) + offset;
% QUEUE UP DATA
putdata(ao, data);
%START OUTPUT DATA
start(ao);
this error message was displayed :
Error using daq.analogoutput_dtol_1_1/putdata
The analog output subsystem of this device does not support clocked generation.
With this hardware you must output individual samples using PUTSAMPLE and can not
use a combination of PUTDATA and START.
Error in analogoutput/putdata (line 110)
putdata(uddobj,data);
Error in matlabtokusb31116 (line 46)
putdata(ao, data);
So my question is, does Matlab R2015b still support KUSB 3116 driver?
What exactly when wrong with putdata when i tried using DT9834's driver?
Many thanks in advance,
Hung

Answers (0)

Community Treasure Hunt

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

Start Hunting!