Home > Archive > Matlab > April 2005 > Need help re Multi Threading please.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Need help re Multi Threading please.
|
|
|
| I use the below code to read stock market live tick data into ML,
itis pretty fast and does not miss ticks but, while ML runs the
script the loop does not allow it to do anything else. Is there a way
around this so I could read the data just as fast into ML and
continue using ML for other things also? Would this be multi
threading? If so how can it be done?
Many thanks
cY
fid = fopen('C:\mydata.txt'), 'r';
a = fread(fid);
i=2
while i < 3
b = fread(fid);
if b>0
a=[a ; b];
char(b)'
end
pause(.25)
end
| |
|
| Still waiting..........................thanks
|
|
|
|
|