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.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…