Matlab multitasking without using Parallel Computing Toolbox?
조회 수: 6 (최근 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!