MATLAB: Plot acquired data fron data card ni-6255 ni-6255 DAQ CARD USED :NI-6255 Needed a code to plot the acquired data , Problem faced : when the signal from function generator is given to the card and the data was tried to access matlab, any one plz provide me the code Manjunath D M Best Answer Refer below link:http://www.mathworks.in/products/daq/examples.html?file=/products/demos/shipping/daq/demoai_continuous.htmlHope it helps!!! Related SolutionsMATLAB: How to buffer the acquired data from DAQ card and display at the end Onboard memory for that device is 4095 samples.http://sine.ni.com/nips/cds/view/p/lang/en/nid/209157 MATLAB: Fron Python to Matlab I can't run your code right now in python so I can't compare the results but most of these lines should be the correct conversion.See help normrnd to pull numbers from a given gaussian distribution. npts = 1000; % number of points in uncorrelated data setEmax = 10; % energy goes from zero to EmaxEc = 0.1; % correlation energykT = 0.25;% create discrete values of EnergyE = linspace(0, Emax, npts);E_extra = linspace(0, Emax, 2*npts-1); %sometimes we need this size to convolve%PLOT 1: Tbar correlatedTbar = normrnd(0, 1, 1, 2*npts-1)y = exp(- ((E-Emax/2.)/Ec).*2);%convolution between Tbar and correlation energyTbar_c = conv(y, Tbar, 'same'); %valid = no edge effects% normalize the data (maximum=1, minimum=0)Tbar_c = Tbar_c - min(Tbar_c);Tbar_c = Tbar_c/max(Tbar_c);% plot the correlated data setplot(E, Tbar_c) Related QuestionHow to use the Meilhaus measuring device Redlab 1208LS with MATLABGenerate Continuous Analog Output Using NI CardAcquiring data from NI Daq and serial port simultaneously
Best Answer