Hi everyone, this is my problem:
I'm using Matlab to control my arduino mega 2560 through the MathWorks' Support Package. Everything works just fine, except that i need to send via USB three bytes, and then the arduino should send them via Serial1 (pin 18 on the Mega) to my MIDI keyboard. The problem is that this Serial1 command doesn't seem to be supported by the package! I read that there's a Simulink block that can do this very task somehow, but I need to use a script, not a simulink model.
I thought I could modify the .m file and the .pde file of the package to implement this Serial1.write function, but this is my first programming attempt and I got lost pretty soon.
Please help, how do I say matlab to "Serial1.write"? Any help is important.
Thank you, and sorry for my English.