Simulink serial connection


by Henkjaap
Tags: connection, serial, simulink
Henkjaap
Henkjaap is offline
#1
Apr3-12, 05:29 AM
P: 4
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:

$HCHDG,hhh.h,,,,*ssss<CR><LF>

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( ).
Phys.Org News Partner Science news on Phys.org
Internet co-creator Cerf debunks 'myth' that US runs it
Astronomical forensics uncover planetary disks in Hubble archive
Solar-powered two-seat Sunseeker airplane has progress report

Register to reply

Related Discussions
serial pump connection Mechanical Engineering 0
Why does battery serial pole connection plays a role? Electrical Engineering 12
serial connection: two transformers Engineering, Comp Sci, & Technology Homework 11
Spin connection vs. Christoffel connection High Energy, Nuclear, Particle Physics 3
Serial to USB Electrical Engineering 5