Shop OBEX P1 Docs P2 Docs Learn Events
using matlab API to send RS232 signals using a bafo usb-to-serial adapor — Parallax Forums

using matlab API to send RS232 signals using a bafo usb-to-serial adapor

ArchiverArchiver Posts: 46,084
edited 2004-03-23 23:14 in General Discussion
Hi,
I do not have a serial port on my laptop so I am using a Bafo
BF-810 serial adaptor (www.bafo.com) to send signals to a
microcontroller (2p40 from parallax). I am using matlab to send the
signals from my PC. Can anyone tell me how to write a Matlab API or
anything else in matlab to enable it communicate with the bafo
serial adaptor. My e-mail address is greenish_green@y...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-03-23 05:49
    Just follow the directions *exactly* in the Appendix of the Matlab
    instruction book for writing to a RS232. If it doesn't work, the
    problem is in the adaptor, not the Matlab code.

    Dennis

    Original Message
    From: Green One [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=E8f9zGPw8MfdsSabusncwfqDhN_QDby1gSWzBkTmNFnixqoKoVAEB2EwCH8PPhhjihlScwf6ZTZLSbaVogMIVkeY]greenish_green@y...[/url
    Sent: Monday, March 22, 2004 2:22 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] using matlab API to send RS232 signals using a
    bafo usb-to-serial adapor


    Hi,
    I do not have a serial port on my laptop so I am using a Bafo
    BF-810 serial adaptor (www.bafo.com) to send signals to a
    microcontroller (2p40 from parallax). I am using matlab to send the
    signals from my PC. Can anyone tell me how to write a Matlab API or
    anything else in matlab to enable it communicate with the bafo
    serial adaptor. My e-mail address is greenish_green@y...




    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-23 06:03
    i dont have a matlab instruction book. and whats a RS232?

    Dennis O'Leary <doleary@e...> wrote:Just follow the directions
    *exactly* in the Appendix of the Matlab
    instruction book for writing to a RS232. If it doesn't work, the
    problem is in the adaptor, not the Matlab code.

    Dennis

    Original Message
    From: Green One [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ThjRRwSP2qHQGrXnxehKbn30E63clrGgdhM0HFRonBK1E2Febx12YFcebbj65s_2438quTWoz8ptjYl7EOsb]greenish_green@y...[/url
    Sent: Monday, March 22, 2004 2:22 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] using matlab API to send RS232 signals using a
    bafo usb-to-serial adapor


    Hi,
    I do not have a serial port on my laptop so I am using a Bafo
    BF-810 serial adaptor (www.bafo.com) to send signals to a
    microcontroller (2p40 from parallax). I am using matlab to send the
    signals from my PC. Can anyone tell me how to write a Matlab API or
    anything else in matlab to enable it communicate with the bafo
    serial adaptor. My e-mail address is greenish_green@y...




    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links









    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and Body of
    the message will be ignored.

    Yahoo! Groups Links






    Do you Yahoo!?
    Yahoo! Finance Tax Center - File online. File on time.

    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-23 17:08
    Hello (again) from Gregg C Levine
    RS232, is the name of the standard behind the term "serial port".
    Further, it explains in detail what travels on the 9 to 25 different
    pins, some non assigned, others assigned. Most PCs that still wear
    serial ports these days have only the basic DB9 connector, that's the
    AT configuration. Now where did you get your MATLAB kit from? They
    should be able to provide some documentation.
    Gregg C Levine hansolofalcon@w...
    "The Force will be with you...Always." Obi-Wan Kenobi
    "Use the Force, Luke."· Obi-Wan Kenobi

    >
    Original Message
    > From: Hex Shadow [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=BIDyhBAXpfQBLhhE9qyguIhkKJ2VT1ea8Dj-akkivNV1eZvcgFG-R3sNcugRCdfUA6lY2SgheoOm89U4ey3LyX4]hexshadow666@y...[/url
    > Sent: Tuesday, March 23, 2004 1:04 AM
    > To: basicstamps@yahoogroups.com
    > Subject: RE: [noparse][[/noparse]basicstamps] using matlab API to send RS232 signals
    using a bafo
    > usb-to-serial adapor
    >
    > i dont have a matlab instruction book. and whats a RS232?
    >
    > Dennis O'Leary <doleary@e...> wrote:Just follow the
    directions
    > *exactly* in the Appendix of the Matlab
    > instruction book for writing to a RS232. If it doesn't work, the
    > problem is in the adaptor, not the Matlab code.
    >
    > Dennis
    >
    >
    Original Message
    > From: Green One [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=dtBjbHUef9ZvBZbsEzLGMeE2EF6HNq13wcRvjIGtfSK9yLYEky0-xgahf8QC92CCWXFI_SEL48PIa2yGs54QMD39]greenish_green@y...[/url
    > Sent: Monday, March 22, 2004 2:22 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] using matlab API to send RS232 signals using
    a
    > bafo usb-to-serial adapor
    >
    >
    > Hi,
    > I do not have a serial port on my laptop so I am using a Bafo
    > BF-810 serial adaptor (www.bafo.com) to send signals to a
    > microcontroller (2p40 from parallax). I am using matlab to send the
    > signals from my PC. Can anyone tell me how to write a Matlab API or
    > anything else in matlab to enable it communicate with the bafo
    > serial adaptor. My e-mail address is greenish_green@y...
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-23 18:04
    Oy, what's a RS232?

    Your BAFO unit takes a USB signal, and makes
    it into Serial. The Serial standard it then uses
    is called RS232. In fact, your BAFO adapter
    'looks' like a serial (RS232) port to your computer.

    Thus, to interface with MATLAB, use the RS2332
    interface -- which your BAFO is now pretending to
    be.

    --- In basicstamps@yahoogroups.com, Hex Shadow <hexshadow666@y...>
    wrote:
    > i dont have a matlab instruction book. and whats a RS232?
    >
    > Dennis O'Leary <doleary@e...> wrote:Just follow the directions
    *exactly* in the Appendix of the Matlab
    > instruction book for writing to a RS232. If it doesn't work, the
    > problem is in the adaptor, not the Matlab code.
    >
    > Dennis
    >
    >
    Original Message
    > From: Green One [noparse][[/noparse]mailto:greenish_green@y...]
    > Sent: Monday, March 22, 2004 2:22 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] using matlab API to send RS232 signals using
    a
    > bafo usb-to-serial adapor
    >
    >
    > Hi,
    > I do not have a serial port on my laptop so I am using a Bafo
    > BF-810 serial adaptor (www.bafo.com) to send signals to a
    > microcontroller (2p40 from parallax). I am using matlab to send the
    > signals from my PC. Can anyone tell me how to write a Matlab API or
    > anything else in matlab to enable it communicate with the bafo
    > serial adaptor. My e-mail address is greenish_green@y...
    >
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject
    > and Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    Subject and Body of the message will be ignored.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >
    > Do you Yahoo!?
    > Yahoo! Finance Tax Center - File online. File on time.
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-23 18:37
    Matlab and the usb to rs232 adaptor (Bafo bf-810) with it drivers
    work fine. However, in order for me to use matlab to SEND OUT DATA
    and RECEIVE DATA through the adaptor and driver I must use API to
    make matlab and the driver communicate. I have no clue where to
    start in this regards.

    greenish_green@y...

    --- In basicstamps@yahoogroups.com, "Gregg C Levine"
    <hansolofalcon@w...> wrote:
    > Hello (again) from Gregg C Levine
    > RS232, is the name of the standard behind the term "serial port".
    > Further, it explains in detail what travels on the 9 to 25
    different
    > pins, some non assigned, others assigned. Most PCs that still wear
    > serial ports these days have only the basic DB9 connector, that's
    the
    > AT configuration. Now where did you get your MATLAB kit from? They
    > should be able to provide some documentation.
    >
    > Gregg C Levine hansolofalcon@w...
    >
    > "The Force will be with you...Always." Obi-Wan Kenobi
    > "Use the Force, Luke."· Obi-Wan Kenobi
    >
    > >
    Original Message
    > > From: Hex Shadow [noparse][[/noparse]mailto:hexshadow666@y...]
    > > Sent: Tuesday, March 23, 2004 1:04 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: RE: [noparse][[/noparse]basicstamps] using matlab API to send RS232 signals
    > using a bafo
    > > usb-to-serial adapor
    > >
    > > i dont have a matlab instruction book. and whats a RS232?
    > >
    > > Dennis O'Leary <doleary@e...> wrote:Just follow the
    > directions
    > > *exactly* in the Appendix of the Matlab
    > > instruction book for writing to a RS232. If it doesn't work, the
    > > problem is in the adaptor, not the Matlab code.
    > >
    > > Dennis
    > >
    > >
    Original Message
    > > From: Green One [noparse][[/noparse]mailto:greenish_green@y...]
    > > Sent: Monday, March 22, 2004 2:22 PM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] using matlab API to send RS232 signals
    using
    > a
    > > bafo usb-to-serial adapor
    > >
    > >
    > > Hi,
    > > I do not have a serial port on my laptop so I am using a Bafo
    > > BF-810 serial adaptor (www.bafo.com) to send signals to a
    > > microcontroller (2p40 from parallax). I am using matlab to send
    the
    > > signals from my PC. Can anyone tell me how to write a Matlab API
    or
    > > anything else in matlab to enable it communicate with the bafo
    > > serial adaptor. My e-mail address is greenish_green@y...
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-23 23:14
    Since this list is for basicstamps, and The Mathworks has an excellent
    Matlab tech support structure, you should contact contact
    www.mathworks.com about this instead of this list.

    Dennis

    Original Message
    From: Green One [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=_YvMW9Mb703xFT0hO0cbpDdNk7sXGpNf3cgBAttLvLygLK-Exidz3GJTLByjxa3uv1mEsvBLqtadzok8KnOQ]greenish_green@y...[/url
    Sent: Tuesday, March 23, 2004 10:37 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: using matlab API to send RS232 signals using
    a bafo usb-to-serial adapor


    Matlab and the usb to rs232 adaptor (Bafo bf-810) with it drivers
    work fine. However, in order for me to use matlab to SEND OUT DATA
    and RECEIVE DATA through the adaptor and driver I must use API to
    make matlab and the driver communicate. I have no clue where to
    start in this regards.

    greenish_green@y...
Sign In or Register to comment.