Shop OBEX P1 Docs P2 Docs Learn Events
Anyone using REALbasic ? — Parallax Forums

Anyone using REALbasic ?

BeanBean Posts: 8,129
edited 2008-12-13 22:55 in General Discussion
I was looking for an easy to use cross-platform language for Win/Mac/Linux and I decided to give REALbasic a try.

I use Windows and I don't have a Mac or a Linux box. So I was wondering if anyone with a Mac or Linux is using REALbasic that we might exchange programs so I can make the work correctly on the other OS'es.

Within a couple hours I was able to create a little (well 3.5M as an .EXE) app that gives you a list of your available serial ports, then lets you open one and display the data received. So I went ahead and registered for the "personal" version ($100).

So if anyone is using REALbasic I'd like to hear from you.

Bean.


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

"The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
www.iElectronicDesigns.com

·
«1

Comments

  • T ChapT Chap Posts: 4,223
    edited 2008-11-27 23:36
    I love RB, I have the PC and Mac standalone versions, I have not ran across any cases yet in my programs required any specific changes for a certain platform, although I am sure some exist. Their forum is excellent btw if you have not already found it. Very similar to the Parallax environment. Unfortunately I don't have enough time to devote to really getting RB down tight, I did find a great guy off their forum (he designs PCB's as a rea job) who does freelance at a fair rate to either create apps from scratch or help with getting your own app up and running. If you have specific things you need to test on Mac, let me know, if you are not in a big rush I can open it up and see how it looks for you.

    I suggest everyone get the RB demo.

    Post Edited (TChapman) : 11/27/2008 11:41:29 PM GMT
  • danieldaniel Posts: 231
    edited 2008-11-27 23:46
    Hmm, first reply vanished...

    I use it (at the company I work with) for machine automation projects. We have projects going back to v5.5. I like the 'embedded' SQL database.

    Two primary reasons we adopted it was its cross-platform capability and that it provided a non-.NET migration from VisualBasic.

    Daniel
    (using the Pro version targeting Linux & Windows)
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-11-28 01:29
    I've got REALbasic running on Linux over here..

    I not an expert with the language, but don't mind testing.

    One of the advantages of running Linux... It was free for the personal edition.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with a Propeller Protoboard?
    Check out: Introduction to the Proboard & Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
  • BeanBean Posts: 8,129
    edited 2008-11-28 02:15
    Thanks everyone.

    I'm looking to do alot of Serial/Bluetooth stuff, so I figure that might require some different code between the platforms.

    Here is my first program. I have the PDB with an SX reading a pot and sending a single byte to the serial port (MAX232) on the PDB at 9600 baud (T9600 if you want to try it) every second.

    Then I run this REALbasic program on the PC, that reads that byte and displays it's value and a bar-graph.

    I would be interested in knowing if this works on the Mac and/or Linux.

    My first "real" program might be to re-write the VB code for Jon's "Wading the BS1 DEBUG stream" article so Mac/Linux users can use it. But I'm open to suggestions too.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com



    Post Edited (Bean (Hitt Consulting)) : 11/28/2008 2:25:29 AM GMT
  • T ChapT Chap Posts: 4,223
    edited 2008-11-28 02:40
    I opened the file but don't have anything connected on the Mac, but it seems like it is fine.
  • T ChapT Chap Posts: 4,223
    edited 2008-11-28 02:40
    I opened the file but don't have anything connected on the Mac, but it seems like it is fine.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-11-28 02:59
    Same here in Linux

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with a Propeller Protoboard?
    Check out: Introduction to the Proboard & Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
  • BeanBean Posts: 8,129
    edited 2008-11-28 03:08
    So it shows the available serial ports on both Mac and Linux ?
    It you guys get a chance to test it with anything that sends 9600 serial data that would be great.

    I'll faint if it works on all three platforms with no changes ! If so, I think I found a winner.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com

    ·
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2008-11-28 04:04
    How about screen shots of what the program looks like on the different platforms? I am curious how they vary in rendering. I know very little about Real Basic as it was something I looked into a long time ago.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
    www.tdswieter.com
  • BeanBean Posts: 8,129
    edited 2008-11-28 04:08
    Here is how it looks on Windows Vista

    attachment.php?attachmentid=56989

    Bean.




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com
    333 x 205 - 11K
  • T ChapT Chap Posts: 4,223
    edited 2008-11-28 04:41
    I show 2 available ports on OS X, one will open but I don't know what to send it.
  • danieldaniel Posts: 231
    edited 2008-11-28 05:11
    Bean (Hitt Consulting) said...
    I'll faint if it works on all three platforms with no changes...

    I'd recommend keeping near floor level. [noparse];)[/noparse]
    Timothy D. Swieter said...
    How about screen shots of what the program looks like on the different platforms? I am curious how they vary in rendering.

    RB attempts to make applications look 'native' to each target. This link, while not Bean's application, shows a demo project's window in each of the three target platforms.

    Daniel
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-11-28 06:09
    Here's a screenshot in Linux.. Sorry I don't have anything hooked to those ports, but it works.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with a Propeller Protoboard?
    Check out: Introduction to the Proboard & Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
    319 x 194 - 12K
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2008-11-28 06:40
    Cool. Thanks for the link Daniel and the post of pictures Bean and OBC.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
    www.tdswieter.com
  • BeanBean Posts: 8,129
    edited 2008-11-28 12:55
    OBC,

    Thanks. It looks like I need to give a little more space for the controls. They are a little chopped off on your screen shot.

    I have attached an updated version that gives more room around the controls. If you get a chance, I'd love to see what it looks like on your Linux box.

    Here is the new version on Windows Vista:

    attachment.php?attachmentid=56993

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com



    Post Edited (Bean (Hitt Consulting)) : 11/28/2008 1:43:47 PM GMT
    352 x 260 - 12K
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-11-28 14:53
    Looks good now..

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with a Propeller Protoboard?
    Check out: Introduction to the Proboard & Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
    344 x 255 - 13K
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2008-11-28 15:37
    Hi, Real Basic looks interesting, is a rbp file the source. Does the final build generate a single file executable.

    Jeff T.
  • BeanBean Posts: 8,129
    edited 2008-11-28 15:42
    Thanks again OBC. This is SOOO cool.

    Here is my first "real" (ha ha ha) application in REALbasic.

    It uses the SX28 to read a Nunchuk controller and send the data via serial port to the PC. You need to cut the connector off the end and solder the 4 wires to header pins.

    The REALbasic program reads the serial data and displays it.
    If anyone tries this PLEASE let me know how it works/looks on other platforms.

    Thanks.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com



    Post Edited (Bean (Hitt Consulting)) : 11/28/2008 3:47:45 PM GMT
  • Brian CarpenterBrian Carpenter Posts: 728
    edited 2008-11-28 16:38
    bean,

    have you tried the TCPsocket stuff with RB yet?



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    It's Only A Stupid Question If You Have Not Googled It First!!
  • BeanBean Posts: 8,129
    edited 2008-11-28 18:42
    Unsoundcode said...

    Hi, Real Basic looks interesting, is a rbp file the source. Does the final build generate a single file executable.

    Jeff T.

    @Jeff, Yes the rbp file is the source code. And Yes it does generate a single .EXE file. But with the "Personal" version, you can only generate an executable for the platform you licensed. So I can only make Windows executables.

    @Brian, I haven't tried to use TCPsocket·yet. I've only been working with it for a couple days and I'm waiting for the printed documentation to arrive.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com

    ·
  • T ChapT Chap Posts: 4,223
    edited 2008-11-28 19:07
    "But with the "Personal" version, you can only generate an executable for the platform you licensed. So I can only make Windows executables."


    Bean, you can create executables for all versions, but the versions outside of your license are limited to 5 minute demos. See build settings, choose 1, or any version to build.
  • BeanBean Posts: 8,129
    edited 2008-11-28 19:24
    TChapman,
    Cool, that is good to know.

    It also says that they "expire after 10 days". Is that 10 days from the time I compile them, or 10 days from when they are first run ?

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com

    ·
  • T ChapT Chap Posts: 4,223
    edited 2008-11-28 20:56
    Bean it is 10 days from build I think.

    If you had a Mac, even an old junker G4 400mgh, you could buy the Mac version for $100, and use the same rb file to build your Mac platform.

    There are subtle (sometimes not so subtle) cosmetic differences. On the Mac I like to use pushbutton, as they are nicer looking and turn blue when on, the PC version of pushbutton is not as nice, and I tend to use Bevel Buttons on the PC instead if it is a predominantly used PC app, you can really get the same results from either button.

    The use of group boxes are nice to create a set of interface features you can copy, move, delete, etc, all at once, plus they add a nice frame to the section, you have to send the groupbox to the back for normal use though.

    There is an extensive set of examples, you have probably already found those. I have an app that uses an xml class for storing presets, or whatever you want to write to a file, these features come in real handy for saving prefs, etc. If you want I will email the rb file so you can dissect it and pull the xml file parts out you want.
  • BeanBean Posts: 8,129
    edited 2008-11-28 21:42
    I tried the group, but I couldn't figure out how to move the controls in/under the group.
    How do you "send the groupbox to the back" ?

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com

    ·
  • T ChapT Chap Posts: 4,223
    edited 2008-11-28 21:59
    Touch the corner of the gbox, then find edit>arrange> send to back.
  • stamptrolstamptrol Posts: 1,731
    edited 2008-11-30 20:43
    Thanks for sharing this Bean! RealBasic seems like a great alternative for anyone needing that cross-platform capability.

    I whipped up a PDB with a BS2 to run through 0 - 255 (out the programming connector and with a serial/USB converter). Your test program worked like a charm on XP.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • FireHopperFireHopper Posts: 180
    edited 2008-12-01 14:35
    I used real basic to make a program on my PPC mac to controll the PSC, since there was only a pc program. I have the code someplace.. I have to see if I can still find it, I dont have the cash to pay for a personal edition as of yet.. so I can't run real basic atm. since my trial key expired.

    ·edit: found the code.. attaching if I can


    Bean (Hitt Consulting) said...
    I was looking for an easy to use cross-platform language for Win/Mac/Linux and I decided to give REALbasic a try.

    I use Windows and I don't have a Mac or a Linux box. So I was wondering if anyone with a Mac or Linux is using REALbasic that we might exchange programs so I can make the work correctly on the other OS'es.

    Within a couple hours I was able to create a little (well 3.5M as an .EXE) app that gives you a list of your available serial ports, then lets you open one and display the data received. So I went ahead and registered for the "personal" version ($100).

    So if anyone is using REALbasic I'd like to hear from you.

    Bean.
    ·
    Post Edited (FireHopper) : 12/1/2008 2:44:59 PM GMT
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2008-12-07 22:08
    How's progress Bean, I'v been fooling around with RB on and off for a week now and beginning to like it. It took me a while to figure out what was goin on , find the right documentation etc. The key for me was yours and Firehopper's examples they really got me going (thank you both).

    I have been converting small VB projects that I have for use with a Stamp, gradually increasing in difficulty. I like the way that you can add an index to a control to form a control array it seems to be easier than with VB Express, setting up 8 buttons to toggle each bit of a byte was a cinch. There are plenty of string functions so parsing and storing files has been relatively easy. I think next I will test some apps with simple graphics.

    I am running a trial version on XP that has something like 20 days left, I may make it a personal Christmas gift.

    Jeff T.
  • BeanBean Posts: 8,129
    edited 2008-12-07 23:30
    Jeff,
    I have been working on it quite a bit. But I haven't seen how to make an array of controls. I'll have to try that...

    One quirk I've been having is that sometimes (25% or so of the time) when I try to RUN my program, RealBasic just quits... No error no nothing... Just quits. It's really a pain.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com



    Post Edited (Bean (Hitt Consulting)) : 12/7/2008 11:52:13 PM GMT
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2008-12-08 01:32
    Hi Bean, today the program shut down on me 3 times while building an app, when I re-opened it it did restore my program where I left off, this is the first time this has happened.

    The index of a control is what I am calling the array, if I enter a zero into the index property of a button· then copy and paste that same button (as many times as you wish) then in the code window Button1 becomes an array you can address by its index

    eg: in the action of the button

    · if index=1 then
    ··· msgbox "hello world"
    · end if

    The way I used it was to create·8 buttons·then in the action I·would·BitWise.ShiftLeft a value of 1·into a variable moving it the value of the index, this sets the respective bit of a byte. Simple but fun.

    Jeff T.

    EDIT had time to play with graphics today, 90%·close to·creating a gauge type oblect
Sign In or Register to comment.