help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R: Best way to create interactive GUI apps with octave?


From: Riccardo Corradini
Subject: Re: R: Best way to create interactive GUI apps with octave?
Date: Thu, 22 Apr 2010 12:00:21 +0000 (GMT)

Sure,
but the example is not mine
'cause is taken from
http://forum.ubuntu-it.org/index.php?topic=111537.msg756738

PUBLIC processo AS Process

PUBLIC SUB Form_Open()

  StartOctave()

END

PUBLIC SUB Process_Read()

  DIM sLine AS String
 
  READ #processo, sLine, - Lof(processo)
 
  Terminale.Text = Terminale.Text & sLine

END

PUBLIC SUB StartOctave()
 
  Processo = SHELL "octave" FOR INPUT OUTPUT
 
END


PUBLIC SUB Button1_Click()

  PRINT #Processo, Comando.Text

END


The  function StartOctave  runs the process and links pipes (Processo = SHELL "octave" FOR INPUT OUTPUT)
In this way I can read and write over a process like if it were a file
With the function Button1_Click() I print the commands that the users writes  over the process (it is a just a sort of terminal)
While Process_Read is the function that controls if there is something to read over the stream process and adds it to text-box "terminale" in order to visualize it.

Hope my rough translation will be useful to the community.
Bests
Riccardo Corradini

--- Gio 22/4/10, Carlo de Falco <address@hidden> ha scritto:

Da: Carlo de Falco <address@hidden>
Oggetto: Re: R: Best way to create interactive GUI apps with octave?
A: "Riccardo Corradini" <address@hidden>
Cc: "Miguel Bazdresch" <address@hidden>, address@hidden
Data: Giovedì 22 Aprile 2010, 12:44


On 22 Apr 2010, at 09:59, Riccardo Corradini wrote:

> Hi,
> may I suggest you to use Gambas (http://gambas.sourceforge.net/en/main.html)?
> You don't need to use C++ and more over Basic is easier.
> It has also a nice visual debugger for your students.
> I think you may build a straightforward example and then post it to octave-forge if you want.
> Best regards
> Riccardo Corradini

Gambas looks cool indeed, but how do you interface it with Octave? Have you ever done that yourself?
I would be very interested in seeing an example if you have one.
c.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]