AMSA wrote:So with that software I can do the "code that creates the buttons and the code that processes the events when the user clicks something", thats it?
You need no code to create a button or to process an event. Your code only reacts to a user driven event. Here's the way to go:
0) Preparation
a) create a new folder for your app
1) Run Glade3 to generate the GUI
a) create a main window
b) add some widgets
c) arrange their placement in containers
d) rename all widgets you want to handle from FB source
e) save the result as GtkBuilder file (suffix .ui, here you choose the name of your app)
2) Run GTK+tobac2 to generate the FB source-frame
a) Load / analyse the .ui file
b) Sketch FB code (a new .bas file will get generated)
3) Run your IDE
a) Load the .bas file generated by GTK+tobac2
b) insert you code (for testing purposes just uncomment the '#ERROR'-lines)
c) save, compile and run the .bas-file
AMSA, if you aren't interested in doing the tons of steps needed to use/setup a GUI system in a relatively "barebones" language such as Freebasic (ie: relative to Visual Basic), another programming language (and IDE) you might be interested in is Matlab. It has a lot of fancy graphing functions and such, and is built for the scientist in mind -- specifically, its strength is its very fast matrix calculations.
The Matlab syntax is a combination/mish-mash of BASIC-isms and C++-isms. The syntax is very elegant and easy for a beginner or non-experienced programmer to learn.
It's not free, though... the cost is moderate to high, depending on what libraries you need. The beauty of Matlab is that it has all the functions a scientist would ever need coded and available from the Matlab team, the same group that makes the language itself. It's a sort of self-contained ecosystem of functions that work well together.
agamemnus wrote:AMSA, if you aren't interested in doing the tons of steps needed to use/setup a GUI system in a relatively "barebones" language such as Freebasic (ie: relative to Visual Basic), another programming language (and IDE) you might be interested in is Matlab. It has a lot of fancy graphing functions and such, and is built for the scientist in mind -- specifically, its strength is its very fast matrix calculations.
The Matlab syntax is a combination/mish-mash of BASIC-isms and C++-isms. The syntax is very elegant and easy for a beginner or non-experienced programmer to learn.
It's not free, though... the cost is moderate to high, depending on what libraries you need. The beauty of Matlab is that it has all the functions a scientist would ever need coded and available from the Matlab team, the same group that makes the language itself. It's a sort of self-contained ecosystem of functions that work well together.
An open source replacement for MatLab is named after the inventor of Sudoku and can be found here: http://euler.sourceforge.net/
@agamemnus: Do you realy think handling an RS-232 connection to a Fluke multimeter with MatLab or Euler is a good idea?
TJF wrote:An open source replacement for MatLab is named after the inventor of Sudoku and can be found here: http://euler.sourceforge.net/
Interesting. Didn't know about Euler. It might be useful for small tests. Matlab is fairly widespread imo, though, and has a decent (edit: make that "absurd") amount of full-time developers.
@agamemnus: Do you realy think handling an RS-232 connection to a Fluke multimeter with MatLab or Euler is a good idea?
I dunno; the Fluke thingamajig sounds scientific-y...
Last edited by agamemnus on Feb 02, 2011 8:41, edited 1 time in total.
There is also FreeMat Portable :
FreeMat is a free environment for rapid engineering and scientific prototyping and data processing. It is similar to commercial systems such as MATLAB from Mathworks, and IDL from Research Systems, but is Open Source.
See also http://en.wikipedia.org/wiki/Comparison ... s_software - There seems to have emerged a lot of Matlab-style software. Also probably noteworthy is GNU Octave.
(I'm not an expert in stuff like this. At Uni I used Maple frequently in Discrete Maths -which I loved - and Matlab occasionally in Numerical Analysis - which gave me a headache. I can't remember much of Maple now, and much less of Matlab.)