Anyone using REALbasic ?
![Bean](https://forums.parallax.com/uploads/userpics/855/n505WZVEIPHT1.jpg)
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
·
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
·
Comments
I suggest everyone get the RB demo.
Post Edited (TChapman) : 11/27/2008 11:41:29 PM GMT
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)
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
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
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
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. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
www.tdswieter.com
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
www.iElectronicDesigns.com
I'd recommend keeping near floor level. [noparse];)[/noparse]
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
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
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
www.tdswieter.com
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:
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
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
Jeff T.
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
have you tried the TCPsocket stuff with RB yet?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
@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
·
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.
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
·
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.
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
·
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
·
·edit: found the code.. attaching if I can
Post Edited (FireHopper) : 12/1/2008 2:44:59 PM GMT
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.
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
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