Loading data in the background?
古いコメントを表示
I have a set of code that does the following:
- Load a set of data
- Display the data
- Wait for the operator to make a judgement on the data.
- Record the user's judgement
- Repeat steps 1-4 for the next set of data (hundreds of datasets).
I have found that it takes about 5-10 seconds to load each dataset, and about 10-15 seconds for the user to make the judgement call. Unfortunately, the user is sitting idle while waiting for the data to load between sets.
Does anyone know how to load a .mat file in the background so that the next dataset can be loading while the user is in the process of making his/her judgement?
Thanks in advance.
5 件のコメント
Sean de Wolski
2012 年 8 月 6 日
We need to know a little bit more about how your code is structured. This is certainly possible though !
Walter Roberson
2012 年 8 月 6 日
This can be difficult, as there is no way to interrupt most of the load operations.
per isakson
2012 年 8 月 7 日
Until you get an answer you might be able to speed up the load by using mat-file version 6.
per isakson
2012 年 8 月 7 日
AFAIK: it's in the Parallel Toolbox
回答 (1 件)
Jan
2012 年 8 月 19 日
0 投票
TIMER objects seem to run in an own thread. Therefore you could load the data in a TIMER callback. But as usual for parallel programming, you have to be smart to avoid collisions between read and write access to the data.
2 件のコメント
Sean
2012 年 8 月 20 日
Sean de Wolski
2012 年 8 月 20 日
I had the same thing happen when using the timer.
カテゴリ
ヘルプ センター および File Exchange で Performance and Memory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!