Re: [Gambas-user] Serial port control

2013-12-23 Thread Carl Nilsson
G'day Mike: hey, that's great. I have an old fashioned model railway - H0 scale - which baseboard plus track stands lonely in my hall. Last used in the 1980's. My young son liked to see things crash a little too much for my wanting to trust my precious stock, so I bought him a Scalectrix set

Re: [Gambas-user] Serial port control

2013-12-23 Thread Mike Crean
Hi Carl, I have a BeagleBone Black up and running with wheezy, LXDE desktop and Gambas 3.5.9 I am able to use all most all of the available GPIO and read the AD's using Gambas, I have not had any uarts up. I see no problem in getting the the uarts to run using standard USB to serial converter

[Gambas-user] Possible printing bugs? (Printer.Paper; and printing multiple 1st pages)

2013-12-23 Thread MinnesotaJon
Greetings -- (I have attached a small sample Gambas3 project.) I have encountered 2 possible bugs -- OR, I just need somebody to correct me. 1. (less serious) -- When I set the property "Printer.Paper = Printer.Letter", I get an error message: " 'Printer.Paper' is not Static " This on line 51

Re: [Gambas-user] Application quit running

2013-12-23 Thread ISS Boss
Even more information, Benoit: I discovered what happened. When the attempt to arrange all those valueboxes blew up, it also made the form itself go "Enabled = False". I didn't catch that until just about twenty minutes ago. Very embarrassing. I corrected that and the project is back running

Re: [Gambas-user] Serial port control

2013-12-23 Thread Carl Nilsson
G'day Guys (Nando, Randall and Mike): Thanks for your helpful replies. It's 5 am here and I woke up an hour ago with this matter running through my head, so your replies are welcome! All good advice. I realized that, first of all, I needed to get a handle on using the stream functions, which

Re: [Gambas-user] App launch icons on Ubuntu

2013-12-23 Thread Johny Provoost
Thank you, looks nice op 23-12-13 17:39, Fabien Bodard schreef: This is a little usefull class. 2013/12/15 Johny Provoost [1]: op 15-12-13 18:18, John Rose schreef: Using Gambas 3.5.1, I'm not sure how to create an launcher icon for a Gambas app. I thought that I had to add the icon's

Re: [Gambas-user] App launch icons on Ubuntu

2013-12-23 Thread Fabien Bodard
This is a little usefull class. 2013/12/15 Johny Provoost : > > op 15-12-13 18:18, John Rose schreef: >> Using Gambas 3.5.1, I'm not sure how to create an launcher icon for a >> Gambas app. I thought that I had to add the icon's file to the Data >> entry using the New>Image menu entry. After tha

Re: [Gambas-user] Application quit running

2013-12-23 Thread ISS Boss
Hi, Benoît: Here is the project. It's a simple one to help teach me something about Gambas. There is only one form, and the valbueboxes I tried to center were the four (days,hours,minutes,seconds) boxes on the bottom (along with the three ":" labels). Bill Benoît Minisini

Re: [Gambas-user] Serial port control

2013-12-23 Thread Mike Crean
Carl, will you be using the PC end and gambas code as the master or slave, if master then just use the sport read interupt function. Remember you will have to use chr and asc if using binary data streems. The Gambas3 serial example is very good. If any data is in the input buffer it will trigger

Re: [Gambas-user] Serial port control

2013-12-23 Thread nando
My suggestion to reading 124 bytes from a serial stream I use this technique mostly because I want to empty the buffer provided by the control as much as possible. I would have one function which is the _read of the serial port. The only thing it does is accumulate bytes in an array. I have

Re: [Gambas-user] Serial port control

2013-12-23 Thread nando
I have used the serial port for 5+ years with Accelerometer and GPS without fault nor failure on the serial port control. Some use RTS/CTS, some done. My suggestion is not to think it needs to mimick what MSComm does and how you have used MSComm in the past. Learn what it does and how you can use i