n comp.lang.python:
>
> > jrlen balane wrote:
> > > hi! could anyone give their input on my previous post about timer and
> > > threading...]
> > > pleaseee...
> >
>
> >
> > 1. It's most annoying that you are not taking even a bit
&
s not executed while the thread is running
On Thu, 31 Mar 2005 05:39:11 +0800, jrlen balane <[EMAIL PROTECTED]> wrote:
> a simple question regarding threading and timer:
>
> if i put my timer control inside the thread, will the thread be exited
> every time there is a timer ev
07:38:09 GMT, Dennis Lee Bieber
<[EMAIL PROTECTED]> wrote:
> On Wed, 16 Mar 2005 09:47:01 +0800, jrlen balane <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
> > please post your suggestions? please ...
> >
>Since we don't h
how should i modify this data reader:
(assumes that there is only one entry per line followed by '\n')
data_file = open(os.path.normpath(self.TextFile.GetValue()), 'r')
data = data_file.readlines()
self.irradianceStrings = map(str, data)
self.irradianceIntegers = map(int, data)
self.Irrad
if i am going to do this, how should i continue:
how would i know the end of file?
table_data = open(filename, 'r')
table_data.readlines()
On Tue, 15 Mar 2005 23:37:50 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote:
> jrlen balane wrote:
> > how would i read a tab de
how would i read a tab delimited file? at the same time put what i
read in an array, say for example that i know that the file is an
array with column= 5 and row=unknown.
--
http://mail.python.org/mailman/listinfo/python-list
please post your suggestions? please ...
On Wed, 16 Mar 2005 08:33:23 +0800, jrlen balane <[EMAIL PROTECTED]> wrote:
> ok heres the code, i'm trying on IDLE:
>
> import sys
> import serial
> import sys, os
> import serial
> import string
> import time
&g
1, 25]
[70, 3, 6, 54, 197, 253, 230, 231, 210, 26]
[70, 3, 6, 54, 197, 253, 230, 231, 211, 25]
...
...
On Wed, 16 Mar 2005 07:34:44 +0800, jrlen balane <[EMAIL PROTECTED]> wrote:
> will this be correct???
> what i want to happen is saved every received data (6 data bytes) to
> an
3:40 -0800, John Machin <[EMAIL PROTECTED]> wrote:
>
> jrlen balane wrote:
> > did some editing:
> >
>
> The error means that you received less than 19 bytes of data.
>
> > rx_data = ser.read(19)
> !rx_len = len(rx_data)
> !print 'rx_len', rx
did some editing:
rx_data = ser.read(19)
byte[0:18] = unpack('19B', rx_data)
for k in range(9):
if byte[k] == 70:
if byte[k+2] == 6:
if byte[k+9] ==
-(byte[k]+byte[k+1]+byte[k+2]+byte[k+3]+byte[k+4]+byte[k+5]+byte[k+6]+byte[k+7]+byte[k+8])
& 0xff:
from that point. then if the succeding tests are confirmed, i can
get my data.
please help(again) :(
On Tue, 15 Mar 2005 08:05:04 GMT, Dennis Lee Bieber
<[EMAIL PROTECTED]> wrote:
> On 14 Mar 2005 17:04:13 -0800, "John Machin" <[EMAIL PROTECTED]>
> declaimed the fol
@sir John
could you please show me how to do this exactly? it's in the "tip of
my toungue" but i just can get it, please...
On 14 Mar 2005 14:06:15 -0800, John Machin <[EMAIL PROTECTED]> wrote:
>
> jrlen balane wrote:
> > why is it that here:
> >
> >
why is it that here:
1)rx_data = ser.read(10)
(rx_command, rx_msg_no, rx_no_databyte, temp1, temp2, pyra1,
pyra2, voltage, current, rx_checksum) = unpack('10B', rx_data)
print rx_command, rx_msg_no, rx_no_databyte, temp1, temp2, pyra1,
pyra2, voltage, current, rx_checksum
>>> type (rx_co
I am using BOA Constructor in building a GUI
On 13 Mar 2005 21:19:07 -0800, Harlin Seritt <[EMAIL PROTECTED]> wrote:
> What GUI toolkit are you using? I think this is the point Jeremy is
> making.
>
> Harlin Seritt
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.p
i am working on an MDIParentFrame and MDIChildFrame. Now, what i want
to do is make the ChildFrame not that easy to close by removing the
close button (the X on the right most corner of the window) if this is
possible...
how am i going to do this?
--
http://mail.python.org/mailman/listinfo/python
ohn Machin <[EMAIL PROTECTED]> wrote:
>
> jrlen balane wrote:
> > the hardware is a school project that uses a microcontroller for
> "light dimming"
> > the message command "67" will tell the microcontroller (PIC16F877) to
> > do a command (to contr
this is not working, what is wrong with this code?? what it "should"
do is find first the command "70" then read the remaining 9 bytes once
the command was found:
rx_data1=0
while (rx_data1 != 0x46):
rx_data1 = ser.read(1)
(rx_command) = unpack('1B', rx_data1)
rc_data2=ser.read(9)
(rx_ms
the hardware is a school project that uses a microcontroller for "light dimming"
the message command "67" will tell the microcontroller (PIC16F877) to
do a command (to control the intensity of a lamp)
the message command "70" should tell the GUI that the microcontroller
has started transmitting.
th
@sir harlin
so you are saying that there is nothing wrong in this simple program.
On 12 Mar 2005 07:39:31 -0800, Harlin Seritt <[EMAIL PROTECTED]> wrote:
> hah, this code is anything but simple...
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/l
basically what the code does is transmit data to a hardware and then
receive data that the hardware will transmit.
import serial
import string
import time
from struct import *
ser = serial.Serial()
ser.baudrate = 9600
ser.port = 0
ser
ser.close()
ser.open()
command = 67
message_no = 1
total_da
On Wed, 02 Feb 2005 17:36:04 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote:
> jrlen balane wrote:
> > i have a 4 digit hex number (2 bytes) and i want to separate it into 2
> > digit hex (1 byte each) meaning i want to get the upper byte and the
> > lower byte since
i have a 4 digit hex number (2 bytes) and i want to separate it into 2
digit hex (1 byte each) meaning i want to get the upper byte and the
lower byte since i am going to add this two.
how am i going to do this?
should i treat it just like a normal string?
please help, thanks.
ex. hexa = '0x87BE"
i'm going to use now the matplotlib in plotting a graph.
i'm currently using python 2.3(enthought edition) on win 2000/xp.
i'm using boa constructor on the GUI part.
i am using an MDIParentFrame. one of the child frame will be used for
the table part. then another child frame will be used to show
23 matches
Mail list logo