Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

KUSB 3100 & Matlab getdata

KUSB and KPCI DAQ Data Acquisition Products
Post Reply
barlasbarlas
Posts: 2
Joined: January 31st, 2014, 4:30 am
Country: Belgium

KUSB 3100 & Matlab getdata

Post by barlasbarlas » January 31st, 2014, 4:38 am

Hello,

I am having troubles with KUSB 3100 Daq box and matlab snyc.
I can acquire data with quickdaq 2013 with no problem

then i go to matlab (quick daq is closed) i read in my daq box to matlab. If i want to acquire only one sample everything works fine as in the below code.
ai = analoginput ('dtol', 0)
addchannel(ai, 1)
s = getsample(ai)

However if i want to to sample with a fsampling and for some time it always gives me the error

ai = analoginput ('dtol', 0)
ch = addchannel(ai,1);
ai.SampleRate = 1000;
ai.SamplesPerTrigger = 1000;
start(ai)
wait(ai,16) % i change the waiting time it does not matter
[data, time] = getdata(ai);
stop(ai)


the errors i get with the 'wait' command : ??? WAIT reached its timeout before OBJ stopped running.
the errors i get without the wait command. Error event occurred at 13:37:05 for the object: dtol0-AI.A timeout occurred during GETDATA.



cAN anyone help in this issue thanks
emre

barlasbarlas
Posts: 2
Joined: January 31st, 2014, 4:30 am
Country: Belgium

Re: KUSB 3100 & Matlab getdata

Post by barlasbarlas » February 1st, 2014, 11:45 am

so i guess the problem was due to matlab version.
it was 2011a 32 bit
i changed to 2013b 32bit
it works now.

Post Reply

Return to “Keithley DAQ Data Aquisition Products”

Who is online

Users browsing this forum: No registered users and 0 guests