uld mean not enough came in.
> >In this case you could also do a small time delay (ie. WAIT 0.1)
> >just to prevent the CPU from running 100% testing for 124 bytes.
> >
> >
> >Both of these can be a Gambas Class and the second function is the
> >public function.
_new to instantiate the serial port control.
>You don't need to create it at design time.
>
>I used techniques like this and it works like a charm.
>-Nando
>
>
>------ Original Message ---
>From: Randall Morgan
>To: mailing list for gambas users
>Sent:
ndo
>
>
>------ Original Message -------
>From: Randall Morgan
>To: mailing list for gambas users
>Sent: Sun, 22 Dec 2013 23:35:33 -0800
>Subject: Re: [Gambas-user] Serial port control
>
> > I think the RTheshold of VB simply sets the byte count that must accu
riginal Message ---
From: Randall Morgan
To: mailing list for gambas users
Sent: Sun, 22 Dec 2013 23:35:33 -0800
Subject: Re: [Gambas-user] Serial port control
> I think the RTheshold of VB simply sets the byte count that must accumulate
> in the receive buffer before a comm even
ssage ---
From: Randall Morgan
To: mailing list for gambas users
Sent: Sun, 22 Dec 2013 23:35:33 -0800
Subject: Re: [Gambas-user] Serial port control
> I think the RTheshold of VB simply sets the byte count that must accumulate
> in the receive buffer before a comm event is triggered. It
it for your devices.
I assure you it can certainly do it without fail.
-Nando
-- Original Message ---
From: Randall Morgan
To: mailing list for gambas users
Sent: Sun, 22 Dec 2013 23:35:33 -0800
Subject: Re: [Gambas-user] Serial port control
> I think the RTheshold of VB sim
I think the RTheshold of VB simply sets the byte count that must accumulate
in the receive buffer before a comm event is triggered. It doesn't do
anything else. In the background VB is still polling the buffer and looking
at the byte count. You can do this in GB but you will have to write it
yourse
Thanks Randall. I guess it's time to try it and play around a
little, which I can't do for a few days. At the moment I'm trying to
look ahead and see where problems might lie. When push comes to
shove, I don't know how these things really work! I follow
recipes! Don't really want to close
It has been a long while since I have used the serial component of GB but I
have a project starting in which I will need to re-acquaint myself with it.
The stream can be setup as blocking or non-blocking. The PC uses either
polling or interrupt when the port is opened. So trying to manage the
seria
Randall: Thanks for responding. OK, I have looked at the stream
functions: My question was, basically, how do I specify how many
bytes I want to take in from a given serial port at each
instance? For example, on one input I expect a continuous stream of
31 byte packets and I want to take the
As I recall gb serial is steam based and so you would handle buffers via
the stream not the serial object.
On Sun, Dec 22, 2013 at 3:01 PM, Carl Nilsson wrote:
> G'day all:
> Now with Gambas 3 installed, I want to get on with porting my running
> software from VB6/Windows. It requires processi
G'day all:
Now with Gambas 3 installed, I want to get on with porting my running
software from VB6/Windows. It requires processing multiple streams
of binary serial data from attached devices. The serial control in
gambas 3 does not seem up to the job, in so far as the available
properties la
12 matches
Mail list logo