can anyone help me with real time data plot using ni 9234
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
s = daq.createSession('ni');
s.addAnalogInputChannel('cDAQ2Mod1', 0, 'Voltage');
s.addAnalogInputChannel('cDAQ2Mod1', 1, 'Voltage');
s.Rate = 2000
s.DurationInSeconds = 20;
s
[data5,time] = s.startForeground;
plot(time,data5);
xlabel('Time (secs)');
ylabel('Voltage')
7 Kommentare
Walter Roberson
am 3 Nov. 2013
What difficulty are you observing?
avinash pabbireddy
am 4 Nov. 2013
Walter Roberson
am 4 Nov. 2013
Where is your callback for when data is ready?
avinash pabbireddy
am 11 Nov. 2013
Bearbeitet: Walter Roberson
am 17 Nov. 2013
avinash pabbireddy
am 11 Nov. 2013
Walter Roberson
am 17 Nov. 2013
Is your plotData callback being called? If you put a disp() statement in it does the string get displayed ?
Walter Roberson
am 11 Mär. 2014
@avinash pabbireddy
Antworten (0)
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!