ok, was using pyserial, but was not using struct.pack.
thanks
sk
On Jan 29, 2008 3:16 PM, Michael Langford
<[EMAIL PROTECTED]> wrote:
> Use pyserial:
>
> http://pyserial.sourceforge.net/
>
> Use struct.pack:
>
> http://docs.python.org/lib/module-struct.html
>
> The format string will depend whethe
Use pyserial:
http://pyserial.sourceforge.net/
Use struct.pack:
http://docs.python.org/lib/module-struct.html
The format string will depend whether you need little or big endian.
--Michael
On Jan 29, 2008 4:13 PM, shawn bright <[EMAIL PROTECTED]> wrote:
> Thanks for your reply.
> i ne
Thanks for your reply.
i need to do this in python because python is what scripting language
our data I/O system is written in.
i am writing a command out over a serial port that tells an RTU to
change part of it's program. I am not sure what you mean by using it
in any other python context, this i
> Hello there all.
>
> I have a need to make a hi byte and lo byte out of a number.
>
> so, lets say i have a number 300, and need this number to be
> represented in two bytes, how do i go about that?
First question. Why would you need to do this in python? Second question. If
you could do that,
Hello there all.
I have a need to make a hi byte and lo byte out of a number.
so, lets say i have a number 300, and need this number to be
represented in two bytes, how do i go about that?
thanks for any tips,
sk
___
Tutor maillist - Tutor@python.or