Running timers in batch processes

2 ビュー (過去 30 日間)
MatlabUser
MatlabUser 2016 年 6 月 5 日
Hi All,
I have a few questions regarding the use of 'batch' function in the Parallel Computing Toolbox (Matlab 2015aSP1). Any help on these would be very much appreciated.
1. I understand that using batch invokes a new 'Headless' matlab process. Is there any way to re-name this new process (so for example it appears as 'DataIO.exe' as opposed to the standard 'Matlab.exe' in Windows Task manager).
2. My new batch-invoked process is required to read data from an external source with a sampling interval of x-seconds. I have tried to use a timer within this new process (to enable the process to do other calculations in between these sample readings) but it does not work. Is the use of dedicated Timers disabled within the batch-invoked process (much in the same way as updating GUI objects). If so, then is there any other way of interleaving other computations between each data read (without invoking a new process).
3. In order to reduce the loading on the processor, is there any way to make the batch-invoked process sleep between data sampling (perhaps something similar to Thread.sleep() in Java). I am currently using the function 'pause(x)' - is this the best way to reduce the processor load.
Many thanks for reading!

回答 (1 件)

Mohamed Abdelkader Zahana
Mohamed Abdelkader Zahana 2016 年 8 月 3 日
I am also interested to know the answer, as I am trying to do parallel processing to avoid delays caused by serial execution of complex tasks. I am using timers to do asynchronous execution, but I know that it is not parallel. Have you found any answer?

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by