Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Matlab loading file - hex2dec conversion

Status
Not open for further replies.

daqamseh

Newbie level 4
Joined
Jun 22, 2009
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Netherlands
Activity points
1,339
Matlab loading file

Hi all,
I am trying to load Hex files to MATLAB. I have measurements from 8 sensors each 1 m second. Each sensor measurement is giving me 8 bytes (Example 3EF1)....How can i used matlab to import the file (continuously..i mean live measurement from the serial port) and then convert it to decimal version... example of the file is atatched....

Thanks alot for answering me
 

Re: Matlab loading file

To get data from serial port, you need to use the serial port object in MATLAB. Look at the local docs. Everything is written under the topic MATLAB->External Interfaces->Serial Port I/O

You can convert the values to decimal using the hex2dec() function.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top