tcp/ip fast input-output on kHz frequencies - is it possible?

1 view (last 30 days)
Hi! Ive got a task to read data from virtual tcp/ip server with matlab, and ive got some problems - with simple code matlab is too slow. Here is it:
obj1 = instrfind('Type', 'tcpip', 'RemoteHost', '127.0.0.1', 'RemotePort', 2541, 'Tag', '');
fopen(obj1);
tic
for i=1:1:10
output_data = query(obj1,'11');
toc
end
fclose(obj1);
matlab is too slow with every operation of input-output - it takes about 0.25 sec, that is only 4 Hz. Is it possible to do the same thing, but much faster - on frequencies about kHz or more?

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!