For Programmers: Free Programming Magazines  


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.
cY

2005-04-08, 9:00 pm

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
cY

2005-04-11, 4:00 am

Still waiting..........................thanks
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com