[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to run octave from VB.net
From: |
Sergei Steshenko |
Subject: |
Re: How to run octave from VB.net |
Date: |
Fri, 4 Apr 2014 08:12:51 -0700 (PDT) |
----- Original Message -----
> From: patsoncc <address@hidden>
> To: address@hidden
> Cc:
> Sent: Friday, April 4, 2014 3:21 PM
> Subject: How to run octave from VB.net
>
> Hello
>
> Can anyone please let me know how to run octave from vb.net via a command
> line?
>
> I know for Matlab you can do something like this:
>
> ----------------------------------------------------
>
> Dim Matlab As Object
> Dim initDirectory As String
> Dim startMfile As String
> Dim MatlabCommand As String
> Dim Result As String
> Dim FYP As String
>
> FYP = My.Application.Info.DirectoryPath
>
> 'Set as mFile directory
> initDirectory = FYP & "\Test.m\"
>
> 'Set mfile ffttry "start up file" here
> startMfile = "Test.m"
>
> 'string to pass to Matlab to run mFile from mfile directory
> MatlabCommand = "run('" & initDirectory & startMfile &
> "')"
>
> Matlab = CreateObject("Matlab.Application")
>
> 'execute matlab command
> With Matlab
> Visible = False
> Result = .Execute(MatlabCommand)
> End With
>
>
> Process.Start("C:\Program
> Files\MATLAB704\bin\win32\MATLAB.EXE",
> "run('" &
> initDirectory & startMfile & "')")
> Application.DoEvents()
>
> ------------------------------------------------------------
>
>
>
> Your response will be really be appreciated.
>
> Regards
>
> Patson
>
>
I know nothing about VB (and I do not run Windows).
But since Matlab is an executable file run as a separate process with command
line arguments and since Octave is an executable file run as a separate process
with command line arguments, what is the _conceptual_ difference between the
two regardless of OS/language from which either of the two is to be invoked ?
I.e. what is your question exactly ?
Regards,
Sergei.