Shop OBEX P1 Docs P2 Docs Learn Events
the bs2 to matlab connection issues — Parallax Forums

the bs2 to matlab connection issues

st860740st860740 Posts: 2
edited 2012-09-22 12:45 in BASIC Stamp
We do pressure sensors
Now use bs2px
We used to do transfer with USB
Not Rs232 a
The data do BS2 calculus after
Want to send to MATLAB
So I would like to ask that in BS2 write what the program so that it can send me the calculated values
What should write in MATLAB to let him do receive and store it?

Comments

  • Mike GMike G Posts: 2,702
    edited 2012-09-22 12:45
    Use SERIN and SEROUT on the BS2px to send and receive serial data.

    MatLab also has serial port methods.
    s=serial('COM3', 'BaudRate', 2400, 'Parity', 'none', 'DataBits', 8, 'StopBits', 1);
    

    Details and syntax can be found in the the PBasic and MatLab help files.
Sign In or Register to comment.