Thread Subject: matlab output midid control, or interfacing with USB devise

Subject: matlab output midid control, or interfacing with USB devise

From: colin hawco

Date: 7 Jan, 2008 23:27:01

Message: 1 of 6

Hello all. I have a problem wo which I would like to find
a matlab solution. I need to run an experiment in which
messages wil be sent to a devise that requires a midi
control message, send via a USB devise (Eridol UM-1 USB
midi interface). This is distinct from midi notes, which
are a different kind of signal sent using the same
hardware.

I am looking for a matlab solution in which I can have
matlab tell my USB midi device to send a specific control
signal. Do any of you know if such a toolbox exists? or
how I might go about it? I don't belive my programming
akills are up to writing mex files to interface with a USB
device, but I might be willing to give it a try if it is
not excessivly complex.

I would really appriciaite any help any of you can offer.
Thanks a lot!

Subject: matlab output midid control, or interfacing with USB devise

From: Patrice Brunelle

Date: 28 Mar, 2008 01:59:02

Message: 2 of 6

"colin hawco" <neurocognitivedissonance@yahoo.ca> wrote in
message <flucg5$r2c$1@fred.mathworks.com>...
> Hello all. I have a problem wo which I would like to find
> a matlab solution. I need to run an experiment in which
> messages wil be sent to a devise that requires a midi
> control message, send via a USB devise (Eridol UM-1 USB
> midi interface). This is distinct from midi notes, which
> are a different kind of signal sent using the same
> hardware.
>
> I am looking for a matlab solution in which I can have
> matlab tell my USB midi device to send a specific control
> signal. Do any of you know if such a toolbox exists? or
> how I might go about it? I don't belive my programming
> akills are up to writing mex files to interface with a
USB
> device, but I might be willing to give it a try if it is
> not excessivly complex.
>
> I would really appriciaite any help any of you can offer.
> Thanks a lot!

Subject: matlab output midid control, or interfacing with USB devise

From: Ian Bridwell

Date: 1 Oct, 2008 02:14:01

Message: 3 of 6

Hi,

I realise that your post is quite old, but I am trying to do something similar. I would like to output midi note messages from the Measurement Computing USB 1208FS or the RS232 serial port to a Edirol UA-25 Midi capable sound card. I am unclear on how to do this using Matlab, and further am unsure if the 1208 can output digital bytes at the required 31.25 kbps baud rate that the Midi standard specifies.

Any help would be greatly appreciated!

Thanks,
 - Ian

"Patrice Brunelle" <Patrice.nospam@gmail.com> wrote in message <fshjd6$v4$1@fred.mathworks.com>...
> "colin hawco" <neurocognitivedissonance@yahoo.ca> wrote in
> message <flucg5$r2c$1@fred.mathworks.com>...
> > Hello all. I have a problem wo which I would like to find
> > a matlab solution. I need to run an experiment in which
> > messages wil be sent to a devise that requires a midi
> > control message, send via a USB devise (Eridol UM-1 USB
> > midi interface). This is distinct from midi notes, which
> > are a different kind of signal sent using the same
> > hardware.
> >
> > I am looking for a matlab solution in which I can have
> > matlab tell my USB midi device to send a specific control
> > signal. Do any of you know if such a toolbox exists? or
> > how I might go about it? I don't belive my programming
> > akills are up to writing mex files to interface with a
> USB
> > device, but I might be willing to give it a try if it is
> > not excessivly complex.
> >
> > I would really appriciaite any help any of you can offer.
> > Thanks a lot!
>

Subject: matlab output midid control, or interfacing with USB devise

From: Sherryl Radbil

Date: 2 Oct, 2008 14:52:01

Message: 4 of 6

Hi Ian,
Have you considered using MATLAB's Data Acquisition Toolbox (DAT)?
The MCC USB-1208FS is a supported device as you can see on this list
http://www.mathworks.com/products/daq/supportedio14004.html

That device's analog output system can go up to 10 kSamples/second.

Another option would be buffered digital I/O described here:
http://www.mathworks.com/support/solutions/data/1-1BEFC.html

If you own the device but not DAT there is a link to request a trial of the software on the upper right of the supported hardware page (first link).

All the best,
Sherryl Radbil

Subject: matlab output midid control, or interfacing with USB devise

From: Ian Bridwell

Date: 4 Oct, 2008 21:03:01

Message: 5 of 6

Hi Sherryl,

Thanks very much for your reply. I asked a similar question on the Measurement Computing forum and received this response:

____________________________
The USB-1208FS is not capable of outputing data at that rate as it is only software polled. According to the published spec's for this device, it can only update the data at about 250 updates per second (it varies depending on the computer).
_____________________________

Are you suggesting that I could output an analog signal from the daq at the current (0-5mA) requirements of midi? This is interesting, however I have also purchased a usb to serial com port adapter which will tx/rx at the reqired 31.25 kbps. What will be easier do you think?

Currently I have found tmtool and have been trying to use that, but am having trouble finding what pins to use on the com port and what parameters I need to set for the interface object.

I have posted a more lengthy request for help to the newsgroup concurrently. I don't want to cross/over post, so please search my user name if you would like more information about what I'm doing and what I know/don't know right now. The post has not been published yet, otherwise I would provide a thread id here.

Thanks again for your help Sherryl (cool spelling by the way). I hope I can get this to work!


"Sherryl Radbil" <sherryl.radbil.dontspamme@mathworks.com> wrote in message <gc2n6h$9dj$1@fred.mathworks.com>...
> Hi Ian,
> Have you considered using MATLAB's Data Acquisition Toolbox (DAT)?
> The MCC USB-1208FS is a supported device as you can see on this list
> http://www.mathworks.com/products/daq/supportedio14004.html
>
> That device's analog output system can go up to 10 kSamples/second.
>
> Another option would be buffered digital I/O described here:
> http://www.mathworks.com/support/solutions/data/1-1BEFC.html
>
> If you own the device but not DAT there is a link to request a trial of the software on the upper right of the supported hardware page (first link).
>
> All the best,
> Sherryl Radbil

Subject: matlab output midid control, or interfacing with USB devise

From: Sherryl Radbil

Date: 6 Oct, 2008 13:56:01

Message: 6 of 6

Hi Ian,
So it appears that there is a limitation set by the USB-1208FS that will prevent you from using it for this purpose making the serial com port adapter your default choice.
Hopefully someone else will come through on your other post
http://www.mathworks.com/matlabcentral/newsreader/view_thread/237013
as this is not my area of expertise.
Sherryl

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
serial Ian Bridwell 4 Oct, 2008 17:05:06
com Ian Bridwell 4 Oct, 2008 17:05:06
music Ian Bridwell 4 Oct, 2008 17:05:06
rs232 Ian Bridwell 4 Oct, 2008 17:05:06
test and measurement tool Ian Bridwell 4 Oct, 2008 17:05:06
tmtool Ian Bridwell 4 Oct, 2008 17:05:06
midi Ian Bridwell 30 Sep, 2008 22:15:06
mcc Ian Bridwell 30 Sep, 2008 22:15:06
baud Ian Bridwell 30 Sep, 2008 22:15:06
1208fs Ian Bridwell 30 Sep, 2008 22:15:06
midi port Patrice Brunelle 27 Mar, 2008 22:04:16
midi control colin hawco 7 Jan, 2008 18:29:59
ubs colin hawco 7 Jan, 2008 18:29:59
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com