capture the data with matlab

Post your MATLAB discussions here
Post Reply
alex123321
Newbie
Posts: 0
Joined: Wed Jan 16, 2019 8:42 am

capture the data with matlab

Post by alex123321 »

hi,i have a big problem about getting data by matlab . when i use matlab 2010b,i input "
[numSamples, overflow, chA, chB] = invoke(blockObj, 'getBlockData', 0, 0, 1, 0);" then i get data of cha and chb.both value are matrix of 1*15000 because the num of samples i set is 15000,that is the output i want.
however, when i use matlab2017b on other computer , i did in the same way,input the "
[numSamples, overflow, chA, chB] = invoke(blockObj, 'getBlockData', 0, 0, 1, 0);" then i get cha=2000,chb=2000, i am sure this is peakToPeakVoltage of cha and chb.
here is the problem,i think the version of matlab is the only difference, there is no wrong or warning during the process,i just got different output, i can't get the true output of cha and chb!!!

NeilH
PICO STAFF
PICO STAFF
Posts: 267
Joined: Tue Jul 18, 2017 8:28 am

Re: capture the data with matlab

Post by NeilH »

Hi

Are you using the same script on both?
Are you able to post it here or email it into support@picotech.com so I can have a look through it.
Neil
Technical Support Engineer

Post Reply