I can't get any of these blocks to work for me. I'm running Matlab 2013b and using an Arduino Mega 2560. Any help? every time I try running one of the Simulink Blocks I get the following:
" The corresponding 'msfun_arduino_io_setup.tlc' file for the MATLAB S-function 'msfun_arduino_io_setup' in block 'encoder_sim/Arduino IO Setup' must be located in the current working directory,...
Hi Colm, you should probably connect a good external power source to the motor shield.
Anyway, in the version1 of the motor shield library the stepper commands are blocking, so, while you can have 2 stepper connected, you can only operate them one at a time, not both at the same time.
I think (but I am not sure) that the same is true for the version 2 of the board.
Note that instead you can run up to 4 DC motor simultaneously since DC motor commands are not blocking.
I am using the ArduinoIO package and a Adafruit Motor Shield with 2 motors. I am having a little difficulty powering the motors. Is there anyway of having two simultaneous stepper motor outputs?
Thank you in advance