[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to run octave from VB.net
From: |
patsoncc |
Subject: |
How to run octave from VB.net |
Date: |
Fri, 4 Apr 2014 05:21:44 -0700 (PDT) |
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
--
View this message in context:
http://octave.1599824.n4.nabble.com/How-to-run-octave-from-VB-net-tp4663491.html
Sent from the Octave - General mailing list archive at Nabble.com.
- How to run octave from VB.net,
patsoncc <=