Matlab multitasking without using Parallel Computing Toolbox?
4 ビュー (過去 30 日間)
古いコメントを表示
Hello.
I am a novice in programming in general, but I am using a arduino Due which is using a SAM3X8E 32bit mcu. SAM3 has both DMAC(Direct Memory Access Controller) and PDCs(Peripheral DMA Controller) which allows me for example to setup the ADC to continuously convert and store the results in a array without the CPU doing any of it. So I am free to preform other tasks at the same time.
A PC is far more powerful but is there any way to write a script to do many(or two) things at the same time as akin to DMA?
Maybe continuously reading a serial port for values to plot or process at the same time, using a ping-pong buffer.
Regards
0 件のコメント
回答 (1 件)
per isakson
2014 年 12 月 20 日
編集済み: per isakson
2014 年 12 月 20 日
Before the release of the Parallel Computing Toolbox there where some independent "parallel toolboxes". Examples:
2 件のコメント
per isakson
2014 年 12 月 20 日
編集済み: per isakson
2014 年 12 月 20 日
I'm not a lawyer ... . AFAIK:
- The student license lets you use Matlab for study, but not for anything commercial.
- "what student license can and can't do"   use Matlab to make money
- The student license lets you use third party code together with Matlab. The Internet hosts a lot of free Matlab m-code, some of which is very good. Read the license in each case.
On parallel computing:
- Not worth the trouble to gain speed on your computer. Why spend days and weeks with the code to save minutes and hours in execution time. YMMV.
- The MIT-toolbox looks solid, it might be good for study and experimenting.
- IMO time is better spent writing good single threaded code. Run the profiler frequently.
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!