Re: [Gambas-user] Serial port control

2013-12-23 Thread Carl Nilsson
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.

Re: [Gambas-user] Serial port control

2013-12-23 Thread Mike Crean
_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:

Re: [Gambas-user] Serial port control

2013-12-23 Thread Carl Nilsson
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

Re: [Gambas-user] Serial port control

2013-12-23 Thread Mike Crean
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

Re: [Gambas-user] Serial port control

2013-12-23 Thread nando
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

Re: [Gambas-user] Serial port control

2013-12-23 Thread nando
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

Re: [Gambas-user] Serial port control

2013-12-22 Thread Randall Morgan
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

Re: [Gambas-user] Serial port control

2013-12-22 Thread Carl Nilsson
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

Re: [Gambas-user] Serial port control

2013-12-22 Thread Randall Morgan
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

Re: [Gambas-user] Serial port control

2013-12-22 Thread Carl Nilsson
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

Re: [Gambas-user] Serial port control

2013-12-22 Thread Randall Morgan
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

[Gambas-user] Serial port control

2013-12-22 Thread Carl Nilsson
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