The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: serial communication with hex strings
Replies: 6   Last Post: Dec 28, 2012 11:31 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1
Registered: 12/28/12
Re: serial communication with hex strings
Posted: Dec 28, 2012 11:31 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"" <> wrote in message <>...
> Hi all:
> I solved the problem by converting the hex to decimal using the hex2dec command in matlab. For example, something like
> E9 00 1F .. was fed in as
> [233 0 215] (these are not the exact values but you get the idea)
> so for example
> start=[233 0 215]
> fprintf(s1,start)
> start is fed in the vector format not as a string.
> Hope this helps.

Hi mr Abdur
I think I'm using the same pump as yours (from LongerPump company is it ?)
I'm also struggle to make the pump work using MATLAB but so far it still not working :(

So I would like to understand your method, is it mean you're feed in the protocol command in decimal value instead of Hex ?

Thank you so much for your reply.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.