Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Simulink serial connection

  1. Apr 3, 2012 #1
    I'm trying to receive data from a electronic compass in simulink. The compass sends data using the NMEA protocol through USB using a serial connection.

    The serial output format is: 4800 baud, 8 data bits, 1 stop bit, no parity

    and uses the following sentences:


    The only info I need is the heading (so the hhh.h number in the sentence above).

    I try using the serial block (serial configuration and serial read) but this only gives me zeroes when trying to read. Any suggestions how to get this into simulink?

    In matlab it goes perfectly, with fopen( ) and then fscanf( ).
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted

Similar Discussions: Simulink serial connection
  1. Matlab and simulink (Replies: 3)

  2. Simulink Pendulum (Replies: 0)