ticclc; close all; clear all; delete(instrfindall);s = serial ( 'COM5', 'BaudRate', 115200);set(s, 'Timeout',60);s.InputBufferSize =37020;ticfopen(s);%for i=1:20
data=fread(s);----------------------------------------------------------s = daq.createSession('ni');s.addAnalogInputChannel('cDAQ2Mod1', 0, 'Voltage');s.addAnalogInputChannel('cDAQ2Mod1', 1, 'Voltage');s.Rate = 2000s.DurationInSeconds = 60;[data5,time] = s.startForeground;toc
MATLAB: How can we run two matlab codes simultaneously in a single file where these two are independent to eadh other?
Parallel Computing Toolbox
Best Answer