[Gambas-user] Is there a simple example of component written i C or C++
Something simple like a component with 2 Properties like BACKGROUNDCOLOR, FOREGROUNDCOLOR 2 Methods like DRAWACIRCLEINTHEMIDLE, DRAWASQUAREINTHEMIDLE 2 Events like ClickedonLeftHalfofComponent and ClickedonRightHalfofComponent and then Gambas project that demonstrate using of component Regards -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Is there a simple example of component written i C or C++
I have a polyline (oil pipeline) with 10 line segments, and about 20 points (Latitude longitude) and I have to calculate distance to to polyline for each point, and most of the problem I am dealing with is something like that. Another problem is to calculate point in poligons for huge number of points, and polygons And Gambas would be a good choice if I can link it to external procedures writen i C, or C++ when speed is critical to calculate --- On Mon, 2/14/11, Benoît Minisini gam...@users.sourceforge.net wrote: From: Benoît Minisini gam...@users.sourceforge.net Subject: Re: [Gambas-user] Is there a simple example of component written i C or C++ To: mailing list for gambas users gambas-user@lists.sourceforge.net Received: Monday, February 14, 2011, 9:55 AM Something simple like a component with 2 Properties like BACKGROUNDCOLOR, FOREGROUNDCOLOR 2 Methods like DRAWACIRCLEINTHEMIDLE, DRAWASQUAREINTHEMIDLE 2 Events like ClickedonLeftHalfofComponent and ClickedonRightHalfofComponent and then Gambas project that demonstrate using of component Regards Why doing that in C/C++? It it far simpler to do that in Gambas. -- Benoît Minisini -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] About help and arrays and variables
I am following discussion on Gambas more than 3 months. Last 10 years I worked in VB6 (70%) and C(30%) on Windows. I am about to switch to Linux, and I have to decide: Gambas3, FreePascal (fpGUI or Lazarus) or C, C++ and FLTK I am just wondering is there any discussion on this topic, and where. How do you compare Gambas against those tools Regards -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Please help
http://code.google.com/p/domotiga-livecd/downloads/list When I download Live CD there is 8 files, what is next to do -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Compiling Gambas3 on Fedora 12
Is it possible to make LiveCD Linux+Gambas for windows programmers to try, play with it and decide? Regards --- On Tue, 4/20/10, Benoît Minisini gam...@users.sourceforge.net wrote: From: Benoît Minisini gam...@users.sourceforge.net Subject: Re: [Gambas-user] Compiling Gambas3 on Fedora 12 To: mailing list for gambas users gambas-user@lists.sourceforge.net Received: Tuesday, April 20, 2010, 6:12 PM Il 21/04/2010 02:08, Benoît Minisini ha scritto: Il 21/04/2010 01:38, Benoît Minisini ha scritto: If pkg-config does not give the GTK+ paths, then something need to be install, but I can't tell you what as I don't know Fedora at all. Maybe a Fedora user can help you? Thanks Benoît, finally I've discovered the package missing: gettext-devel. When I've two minutes I'll try to write down a list of the packages for fedora, considering that there's no docs about it and fedora has strange packaging conventions. Regards Indeed: gettext-devel and pkg-config for gtk+ should not have any relation at all! I still don't know in the details the relations between the fedora packages and the gb components, I was reading [1] and [2] and my last command was yum install librsvg2-devel gettext-devel Reading the documentation on the site [1], I've concluded that gtk doesn't depends from librsvg2 and viceversa, maybe incorrectly? It's for this reason that I wrote only gettext-devel in the previous mail. Before the last command specified above, ./configure doesn't enable gb.gtk. After that it does. Benoît, I'm sorry, I rarely compile from sources. If You need more details let me know. [1] http://gambasdoc.org/help/install?viewen [2] http://gambasdoc.org/help/install/mandriva?view Ha, I see now: librsvg2 is now a dependency of the GTK+ command, with cairo. gb.gtk now has native support for SVG files! The wiki is not up to date. If you want to create a Fedora page at http://gambasdoc.org/help/install, do not hesitate! Regards, -- Benoît Minisini -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Did anybody try to run stepper motors through paralel port
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 machine depends on it I have to wait let say between 100 and 1 microsec. If I wait 100microsec machine will move at 10 inch per sec which is maximum I need Here is how I do it in VB6 on win2000 (On winXP it is not smooth I feel machine will fall apart, and there is not help for this I try everything, only solution is WinXPembedded): == Public Sub WAIT1(w As Long) Dim kf As Long For kf = 1 To w Next kf End Sub == Public Sub WAIT2(s As Double) Dim c1 As Currency Dim c2 As Currency QueryPerformanceCounter c1 Do QueryPerformanceCounter c2 Loop Until ((c2 - c1 - overhead) / freq) s End Sub == 'run this at begining of the program to measure freq Public Sub OVER() Dim CT1 As Currency Dim CT2 As Currency QueryPerformanceFrequency freq QueryPerformanceCounter CT1 QueryPerformanceCounter CT2 overhead = (CT2 - CT1) / freq End Sub Public freq As Currency Public overhead As Currency == --- 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 users gambas-user@lists.sourceforge.net Received: Sunday, April 18, 2010, 11:27 AM 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 Linux and Gambas? Daes it depent on version of Linux ... What is resolution for Gambas Timer? Can I wait 10 microsec do something wait 10 microsec and so on ... Regards Uhm... under linux, no matter what version, you can use the parallel port and high resolution timers, but... 10 us? What is the speed of your motor(s)? Anyway, I see it difficult to do it in gambas, mainly because of tight GUI integration and impossibility to use interrupts; the best way would be to separate hi-level logic from lo-level timing, perhaps through a library written in C. -- Doriano Blengino Listen twice before you speak. This is why we have two ears, but only one mouth. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Did anybody try to run stepper motors through paralel port
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 JVM. So that means it depends on underlynig OS version ... Simply installing an RTS extension and renaming java.lang.Thread instances to javax.realtime.RealtimeThread will not turn the application into a real-time app. I just wanted to know what is Gamas reaction to real world compared under different underlyng OS. FreeBSD, OpenBSD and Linux are not he same. --- On Sun, 4/18/10, Les Hardy l...@webmayo.com wrote: From: Les Hardy l...@webmayo.com Subject: Re: [Gambas-user] Did anybody try to run stepper motors through paralel port To: mailing list for gambas users gambas-user@lists.sourceforge.net Received: Sunday, April 18, 2010, 12:27 PM 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 Linux and Gambas? Daes it depent on version of Linux ... What is resolution for Gambas Timer? Can I wait 10 microsec do something wait 10 microsec and so on ... Regards Uhm... under linux, no matter what version, you can use the parallel port and high resolution timers, but... 10 us? What is the speed of your motor(s)? Anyway, I see it difficult to do it in gambas, mainly because of tight GUI integration and impossibility to use interrupts; the best way would be to separate hi-level logic from lo-level timing, perhaps through a library written in C. Yes, I agree. I did a lot of work with parallel ports in the past, but I would not attempt a serious application for that job in Gambas. Since I retired, I have been building my own hobby CNC machines, but I just use EMC2. It is GPL, and very efficient, so I figured I had no need to write my own app. Les Hardy -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Did anybody try to run stepper motors through paralel port
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 users gambas-user@lists.sourceforge.net Received: Sunday, April 18, 2010, 2:07 PM 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 appropriate for implementing the JVM. So that means it depends on underlynig OS version ... Simply installing an RTS extension and renaming java.lang.Thread instances to javax.realtime.RealtimeThread will not turn the application into a real-time app. I just wanted to know what is Gamas reaction to real world compared under different underlyng OS. FreeBSD, OpenBSD and Linux are not he same. I understand but, let me say, your sample code had nothing to do with realtime... it was simply fast as much as possible, without any mechanism to ensure some kind of real-time response to some event. To only read a counter is not enough. I can run 4 stepper motors directly (no step+direction, but driving the phases directly instead) with a CPU more than 100 times slower than a x86 CPU. But this is possible using interrupts. Practically every OS can, in some way, use interrupts - gambas can not. So, the only way in gambas to do precise timing is to let it run alone, with maximum priority and privileges. Or, to delegate high timing precision to some external piece of software (a libray or a driver) which can take advantage of interrupts, or callbacks, or signals. On the other hand I think that gambas can, with tight loops, do delays like you did in the original source. Surely it is predictable enough to let you calculate in some way the correct amount of cycling to obtain the needed delay - the fact is that gambas will never be the only thing running on the system, and you have little control about that. The same problem of windows xp - if you want precise timing, you must obtain privileges, either for the program or using a driver. I must also add that, without particular precautions, linux is more predictable about sleep() than win2000 or xp. Regards, -- Doriano Blengino Listen twice before you speak. This is why we have two ears, but only one mouth. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Some links I have found on The Net:
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 http://toko.baliwae.com/product_info.php?products_id=369 http://www.linux-magazine.com/w3/issue/26/Gambas.pdf http://www.linuxexpres.cz/software/gambas-visual-basic-pro-linux http://www.linux-magazine.it/Siamo-tutti-programmatori.htm -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Those pic with donkey on gambas website are great.
Those pic with donkey on gambas website are great. Probably you should rename gambas to KickAssBasic, Ass is for donkey in english. KickAss means something that really kick ass :) Ass is not a rude word. In Bible: ... And Jesus, when he had found a young ass ... Regards, Ike -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Did anybody try to run stepper motors through paralel port
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 is resolution for Gambas Timer? Can I wait 10 microsec do something wait 10 microsec and so on ... Regards -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user