Is it possible to interrupt m-file execution when controlling Motorshield via Arduino

1 回表示 (過去 30 日間)
John Anderson
John Anderson 2012 年 10 月 24 日
I notice that when issuing commands to the Arduino / Motor-shield (e.g. a.stepperStep( 1, 'forward', 'interleave', nSteps ) that the execution of the m-file is not interrupted while the Arduino is executing the stepper motor command. As a result if several commands are issued in quick succession these will have a tendency to queue. Is it possible to poll the Arduino / Motor-shield from Matlab to check if the previous stepper command has finished executing before issuing any subsequent commands to avoid queuing?
Best wishes,
John

回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by