Re: [Gambas-user] Did anybody try to run stepper motors through paralel port

2010-04-18 Thread Les Hardy
Zelimir Ikovic wrote: I have VB6 program that run CNC plasma machine. It work very well and smooth under win200, but in WinXP machine motion is not good. It doesnot help if I set REALTIME prority for the process ... How about Linux and Gambas? Daes it depent on version of Linux ... What

Re: [Gambas-user] form_resize issue

2010-04-18 Thread Benoît Minisini
Hello List, When the user resizes the main form of my application I try to follow the form size with the controls on the form. I use the Form_resize event and I modify the controls' position accordingly. My hierarchy is something like that: Form TabStrip1 TabStrip11

Re: [Gambas-user] form_resize issue

2010-04-18 Thread Robert JUHASZ
For the moment I just have a big one. I try to build a small example which shows the problem. Robi 2010/4/18 Benoît Minisini gam...@users.sourceforge.net Hello List, When the user resizes the main form of my application I try to follow the form size with the controls on the form. I use

Re: [Gambas-user] EOF problem

2010-04-18 Thread Les Hardy
Hi Ed, After many tries, I managed to recreate your problem. It happens with your code and the code supplied by Dimitris. I am using Ubuntu 9.04, Kernel 2.6.28-18, Gambas 2.20.2, QT I have not managed to figure out the cause yet. I will do more tests and get back to you. Regards Les Hardy Ed

Re: [Gambas-user] EOF problem

2010-04-18 Thread Les Hardy
Hi Ed, I figured it out. First of all, depending how the text file was emptied/created, the contents may not be truely empty. Gedit for example leaves the 0A (end-of-line) character in the 'empty' file. This is recognised by eof() as a character, so, end-of-file is not found. I am not sure if

Re: [Gambas-user] form_resize issue

2010-04-18 Thread Robert JUHASZ
Hi Benoit, I put together the small project with 2 level of TabStrip controls and with tableview controls on some of them. First it seemed to work perfectly... but finally I could reproduce the effect on my computer. When the app starts up then (normally) the controls resize correctly. Just

Re: [Gambas-user] form_resize issue

2010-04-18 Thread Robert JUHASZ
OK, I play a little tonight! But there is a risk that I ask questions tomorrow :D Thx a lot, Robi 2010/4/18 Fabien Bodard gambas...@gmail.com just do that to try : make a form and add 3 panel in it then in each panel add 3 other panels give an unique color for each panels and then try

Re: [Gambas-user] EOF problem

2010-04-18 Thread Doriano Blengino
Les Hardy ha scritto: Hi Ed, I figured it out. First of all, depending how the text file was emptied/created, the contents may not be truely empty. Gedit for example leaves the 0A (end-of-line) character in the 'empty' file. This is recognised by eof() as a character, so, end-of-file is

Re: [Gambas-user] EOF problem

2010-04-18 Thread Ed Clare Kelm
Dimitris Les: First Dimitris: OK, I pasted in your code. I had to change temp to tmp, because Temp seems to be a Keyword. With that out of the way, the problem persists. When it fails, I get EOF both in label1 and the debug window. When it works OK, I get a blank label1 and the text

Re: [Gambas-user] Did anybody try to run stepper motors through paralel port

2010-04-18 Thread Zelimir Ikovic
To run a stepper we need 2 pins: one for direction: 0 is clckwise, 5V is CounterClockWise. Second pin is for stepping. I have to bring 5V and keep it for 200 nanosec or more with WAIT1 SUB then bring 0V, and then I need precise amount of time to wait. It has to be precise because speed of

Re: [Gambas-user] Did anybody try to run stepper motors through paralel port

2010-04-18 Thread Les Hardy
Doriano Blengino wrote: Les Hardy ha scritto: Zelimir Ikovic wrote: I have VB6 program that run CNC plasma machine. It work very well and smooth under win200, but in WinXP machine motion is not good. It doesnot help if I set REALTIME prority for the process ... How about

Re: [Gambas-user] EOF problem

2010-04-18 Thread Les Hardy
Doriano Blengino wrote: Les Hardy ha scritto: Hi Ed, I figured it out. First of all, depending how the text file was emptied/created, the contents may not be truely empty. Gedit for example leaves the 0A (end-of-line) character in the 'empty' file. This is recognised by eof() as a

Re: [Gambas-user] Did anybody try to run stepper motors through paralel port

2010-04-18 Thread Zelimir Ikovic
I wanted to know how predictable and reliable GAMBAS is when a reaction to real-world events is required. Let say that Java RealTimeSystem is intended only for suitable operating systems, which means that only a real-time operating system, such as QNX, is appropriate for implementing the

Re: [Gambas-user] EOF problem

2010-04-18 Thread Doriano Blengino
Les Hardy ha scritto: Doriano Blengino wrote: Les Hardy ha scritto: Hi Ed, I figured it out. First of all, depending how the text file was emptied/created, the contents may not be truely empty. Gedit for example leaves the 0A (end-of-line) character in the 'empty' file.

Re: [Gambas-user] Did anybody try to run stepper motors through paralel port

2010-04-18 Thread Werner
On 19/04/10 04:17, Zelimir Ikovic wrote: I wanted to know how predictable and reliable GAMBAS is when a reaction to real-world events is required. Let say that Java RealTimeSystem is intended only for suitable operating systems, which means that only a real-time operating system, such

Re: [Gambas-user] Did anybody try to run stepper motors through paralel port

2010-04-18 Thread Doriano Blengino
Zelimir Ikovic ha scritto: I wanted to know how predictable and reliable GAMBAS is when a reaction to real-world events is required. Let say that Java RealTimeSystem is intended only for suitable operating systems, which means that only a real-time operating system, such as QNX, is

Re: [Gambas-user] EOF problem

2010-04-18 Thread Ed Clare Kelm
Hi all: A couple of comments about the discussions below: 1. The test program was written with EOF at the start, because the actual program I am working on has this structure, for reading in multiple lines of text: WHILE NOT EOF(tfile) (bunch of code for reading the lines in and putting

Re: [Gambas-user] EOF problem

2010-04-18 Thread Dimitris Anogiatis
Ed, if reading a text file and extracting information from it is what you're trying to do, why not just use tmp = File.Load(Fname) File.Load is documented over here http://www.gambasdoc.org/help/comp/gb/file/load after loading the contents of Fname in tmp you can do your magic, without using an

Re: [Gambas-user] Did anybody try to run stepper motors through paralel port

2010-04-18 Thread nando
I use Gambas for nearly real-time work and it performs remarkably well, actually quite impressed. Far better than VB I have a data stream at 13.5 Kbps coming in from a remote modem requiring immediate work and turn around output. It might not seem like a fast stream, but the remote end requires a

Re: [Gambas-user] EOF problem

2010-04-18 Thread Ed Clare Kelm
Dimitris: Oooh! That works! Weird. I'll have to write a little code to parse out my data from the single string variable, but that's a great work-around if I can't get EOF to work. Thanks! Ed K. Dimitris Anogiatis wrote: Ed, if reading a text file and extracting information from it is

Re: [Gambas-user] Did anybody try to run stepper motors through paralel port

2010-04-18 Thread Zelimir Ikovic
Thank you all, in last few emails is answer! --- On Sun, 4/18/10, Doriano Blengino doriano.bleng...@fastwebnet.it wrote: From: Doriano Blengino doriano.bleng...@fastwebnet.it Subject: Re: [Gambas-user] Did anybody try to run stepper motors through paralel port To: mailing list for gambas

[Gambas-user] Some links I have found on The Net:

2010-04-18 Thread Zelimir Ikovic
http://www.linux.com/archive/articles/40666 http://linuxfocus.org/English/March2004/article329.shtml http://www.linuxjournal.com/node/8481/print http://www.learnlinux.co.cc/gambas/ http://www.awce.com/gp3-gambas.html http://toko.baliwae.com/product_info.php?products_id=759