i am using the below code
if matlabpool('size') == 0
matlabpool open local 2data1=zeros([122880,2]);data2=zeros([37000,1]);
spmd
switch labindex case 1 s = daq.createSession('ni');s.addAnalogInputChannel('cDAQ2Mod1', 0, 'Voltage');s.addAnalogInputChannel('cDAQ2Mod1', 1, 'Voltage');s.Rate = 2048s.DurationInSeconds = 60;labBarrier[data1,time] = s.startForeground; case 2 delete(instrfindall);s = serial ( 'COM5', 'BaudRate', 115200);set(s, 'Timeout',60);s.InputBufferSize =37000;labBarrierfopen(s);data2=fread(s); end
end
end
matlabpool close
my workspace is containing data in composite form
is there any way to solve this problem???
Best Answer