Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
i'm acquiring data from ni9234 and at the same time i'm collecting values from xbee i want these two codes to execute at the same time in a single matlab file
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
clc; close all; clear all;
delete(instrfindall);
s = serial ( 'COM5', 'BaudRate', 115200);
set(s, 'Timeout',0.080482);
s.InputBufferSize =20;
tic
fopen(s);
data=fread(s);
this is xbee code
s = daq.createSession('ni');
s.addAnalogInputChannel('cDAQ2Mod1', 0, 'Voltage');
s.addAnalogInputChannel('cDAQ2Mod1', 1, 'Voltage');
s.Rate = 2000
s.DurationInSeconds = 20;
[data5,time] = s.startForeground;
ni code
1 Kommentar
Walter Roberson
am 11 Mär. 2014
What is the difference between this question and your later http://www.mathworks.co.uk/matlabcentral/answers/106849-how-can-we-run-two-matlab-codes-simultaneously-in-a-single-file-where-these-two-are-independent-to-e
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!