Executing MATLAB Program In .NET?

Dec 24, 2009

I am working on a project, in which I have to run a MATLAB program in VB.NET In the project there is a VB.NET GUI, which contains a browse button. The user has to click on the browse button and select an image for processing. The user then has to click on the Process button for processing the image. After clicking the process button the image selected by the user has to go as input to the MATLAB program.

Q1) I want to know how to give the image selected by the browse button of VB.NET, as input to the MATLAB program for processing?Also while the image is being processed in MATLAB, a message such as "The image is being processed" must be displayed on the VB.NET GUI.

Q2) how to display the message "The image is being processed" on the VB.NET GUI, while the image is being processed in MATLAB?After the image has been processed in MATLAB, the image must be displayed on the VB.NET GUI.

Q3)how to display the image from MATLAB program in VB.NET GUI?

View 1 Replies


ADVERTISEMENT

Connecting A Matlab Neural Network With Program

Dec 1, 2011

I developed a neural network to train for face detection of the extracted images. However my program is built on VB.NET and I need to know the techniques by which I could load this neural network (Exported using NNTOOL) into memory and call it from VB.NET [code]I do not quite understand how this works, any suggestions on whether I could conenct the Neural network to VB.NET using this code and if so could you please explain to me about the Matlab.Execute and Matlab.GetFullMatrix functions.

View 1 Replies

Shell Not Executing Program

Dec 3, 2011

I am trying to execute the shell script in vb.net.[code]...

The script doesn't create the outfile mentioned in -out switch. The path mentioned is correct and also the command with switches is correct. It runs well in command prompt but not in the program. [code]...

View 1 Replies

VS 2008 Program Executing In Second Plane?

May 4, 2012

I wanna know how could I do to:Assemble a finished program, install it, and leave it executing in second plane to just push a key to work. Execute it once at the windows start and execute just a single key to make it work.I'd like to know what should I put before the assembly

View 5 Replies

VS 2010 How Similar Is The .NET To JVM In Executing A Program

Nov 14, 2009

1. How similar is the .NET to JVM in executing a program ?

2. How different is it ?

3. Is the .NET Framework available for Linux ?

4. Can I run a VB.NET application written for XP on a Linux machine ?

View 5 Replies

Delete Syntax In Program Not Executing In MySQL

Jun 6, 2011

I have a datagridview on my form which displays records from Mysql table on form load.i want to delete the selected row in datagrid from table on 'row header mouse click' event.

The 2 different codes that i tried --- deletes the record from the datagrid for a moment but does not delete from mysql table & re-appears when closed & debugged again.[code]...

View 6 Replies

Executing A Piece Of Code Before The Program Closes?

May 18, 2009

Having read the rules I don't have much code to show apart from these lines I want to have executed just before the program or a form closes.

If My.Computer.FileSystem.FileExists("File.file") then
My.Computer.FileSystem.DeleteFile("File.file")
End if

View 2 Replies

Executing A SQL Server View From .NET Program Speed?

Mar 1, 2012

I am using VB.NET 2008 and SQL Server 2005.The program runs on a different machine than SQL Server machine.If I read a SQL Server view from my VB.NET program (instead of executing a stored procedure)for ex: Select a,b,c from MyView where account = '1' and symbol = 'abc'will the speed of executing the view depends on the resource (CPU and RAM) of the machine where the program is running or the machine where SQL Server is running ?

Dim m_cmdSQL As SqlClient.SqlCommand
Dim m_daSQL As SqlClient.SqlDataAdapter
Dim m_dsSQL As DataSet

[code]....

View 9 Replies

IDE :: Installation When Executing A VS 2008 Developing Program?

Jul 15, 2011

Why am I getting a request to configure DAO when I start a program I am developing in VS 2008? After I execute several cancels, the program runs fine.

View 1 Replies

Block User Written Text In Combobox While Executing The Program?

Oct 16, 2010

'i have written the following code:

Private
Sub Combo_Mth_KeyPress(ByVal
sender As
Object,

[code]....

'even thogh it seems to clear the text and select default text yet user written 'keyword appears in the text area of combobox?

View 3 Replies

Executing An External Program In Powerpoint And Waiting For It To Finish Before Moving On To More Code?

Nov 23, 2011

I would like to execute an external program within powerpoint after the presentation has loaded so i can see if its working. In short my overall objective is to execute the external program which will open up the command prompt and use the sendkeys method to sendkeys to command prompt which help it to run a script at the correct time (which is after presentation is loaded).

View 9 Replies

How To Force Program To Wait Until ThreadX Has Finished Executing, Before It Executes Line 4

Feb 24, 2009

I have some difficulties concerning threading [code]

Code:
1- Dim str As String
2- Dim x As New myClass
3- str = x.doSomething()
4- x.closeSomething()

I've included line numbers so I can just refer the lines by their numbers. My problem is, when the program executes, line 4 seems to be executed earlier than I want it to. It gets executed while ThreadX is still running in line 3. How can I force the program to wait until ThreadX has finished executing, before it executes line 4?

View 3 Replies

How To Execute Some MATLAB Functions?

Nov 14, 2006

I need to know how to execute some MATLAB functions in a VB.NET code. Please guide me in details to the steps should go inorder to do this.

View 3 Replies

Read Matlab File (.mat)

Oct 28, 2010

i want to read MATLAB file using VB .net, the extension of the matlab file is .mat. how to handle this data? i need some reference...

View 2 Replies

Implement Voice Recognition By Matlab And Net?

Oct 28, 2009

Implementing voice recognition by matlab and VB.net

View 1 Replies

Send Messages Between Matlab VB6 And .NET Programs?

May 16, 2009

We are upgrading a suite of data acquisition and analysis routines from VB6 programs to a mixture of VB.NET, VB6, and Matlab programs. We want to keep the system modular (separate EXEs) so we can easily create specialized stand-alone analysis programs without having to constantly upgrade one massive application. We have used MBInterProcess to send messages between EXEs when all the programs were written in VB6 and this worked perfectly for us (e.g., to have the data acquisition EXE send the latest file name to a stand-alone data display program). Unfortunately, this ActiveX cannot be used within Matlab or VB.NET to receive messages. We are wondering what is the simplest string message passing system (pipes, registered messages, etc) that we could adopt. Right now we are just polling to see if new file was written in a specific folder, which can't be the best solution. Our ideal solution would not require a huge investment in time learning nuances of Windows (we are biologists, not full-time programmers) and would work in both WinXP and 64-bit versions of Windows.

In response to the queries, we have wrapped the entire Matlab session within a VB6 program that has the MBInterProcess ActiveX control. That works but is not a great solution for us since it will probably lock us into WinXP forever (and certainly will prevent us from using the 64-bit version of Matlab). The latest version of Matlab (2009a) can access .NET functions directly, so we assume one solution might be to use the .NET library to implement pipes (or something similar) across programs. We would like to recreate the elegantly simple syntax of the MBInterProcess ActiveX and have a piece of code that listens for a message with that program's top-level Windows name, and then call a specific Matlab m-file, or VB.NET function, with the string data (e.g., file name) as an argument.

View 2 Replies

XYZ Plot 3-D Series Plotting Like Matlab?

May 3, 2012

i need to plot a 3D series of x,y,z coordinate in VB. I have search for hours on this matter but I can't seemed to find the answer.

The image above shows an example the kind of plot i am interested in.

View 5 Replies

Transferring A Matlab Function To Visual Basic?

May 10, 2012

I am trying to transfer a very complicated Matlab function into visual basic. It takes a matrix input and gives 4 outputs.

From my own research I found something called Matlab CODER, which can transfer matlab code into C/C++ code, however, this function is too complex for that. So I guess now my question is, it is possible to call my matlab function somehow within VB and store the outputs for use within my VB program?

The matlab function looks something like this:

function [f,x,s,c,l] = mytest(Y,varargin)
%Code here...
end % function

View 2 Replies

Plugin Using Matlab COM Automation Server...Error: 'Could Not Load Interop.MLApp'

Apr 26, 2010

My Problem: I am using Matlab COM Automation Server to call and execute matlab .m files from a VB.Net plugin for a CAD program called Rhino 3D. The code works flawlessly when set up as a simple Windows Application in Visual Studio, but when I insert it (and make the requisite reference) into my .Net plugin and test it in the CAD program I get the following error: "Could not load file or assembly 'Interop.MLApp, Version 1.0.0.0, culture=neutral, PublicKeyToken=null' or one of its dependencies. the system cannot find the file specified."

What I've Tried: I am baffled as to why this occurs, but I was able to contact the CAD program's technical support staff and they suggested that it has something to do with their DotNet SDK having trouble with references that are located far outside the CAD program directory. They didn't have any solutions so I tried playing around with copylocal and this made no difference. I tried using other COM libraries and the Open Office automation server works fine, although uses url's instead of requiring a reference. I also tested Excel, which does require a reference, and it returned the error: "retrieving the COM class factory for component with CLSID {...} failed due to the following error: 80040154." This may or may not be related to the issue with the Matlab COM reference, but I thought was worthwhile to share. Perhaps is there another way to reference Interop.MLApp?

View 1 Replies

Executing Script In Program - Type MsgBox("hello") Into The Textbox, Click The Button

Aug 24, 2011

I was once using a program that was under beta, so the creator added a nifty feature. You could enter any vb.net code into a textbox, and when you pressed the button next to it, that code was executed. For example, you could type MsgBox("hello") into the textbox, click the button, and it would run that code as if you actually put it in the source code and ran it. I've googled so many different phrases trying to find out how to do this, but I can't find anything. Anyone have any ideas or resources I can look at?

View 1 Replies

VBA Arrays Calculate In A "Matlab Like" Way?

Jun 10, 2009

I'm new to my VBA programing but have been finding this recourse excellent allowing me to improve my skills greatly but was wondering. Is there any way to have VBA arrays calculate in a "Matlab like" way?(eg.array1 .* array2 have each element of the two array multiply by the corresponding element in 2 arrays of the same size) (I'm currently working in excel if that's not apparent)

View 2 Replies

Do Until Loop Not Executing?

Nov 16, 2010

y question is I have a program that is used to add inputs to an array when the OK button is clicked. My problem is that the after the first click of the OK button the Do while loop does not execute again for a 2nd click.lling out my hair. Here is the code.

Public Class InputValue
Public Shared InputArray(0 To 9) As Integer

[code].....

View 8 Replies

Executing A DLL From SQL Server?

Feb 3, 2010

we want to write a DLL using VB.NET 2008 using .Net 3.5 that performs an HTTP request we then want to call the DLL From SQL Server 2005 (in a trigger) and pass the DLL some variables and get a return value.Where im at in the process.I have created the DLL 'HTTPDLL.dll'

Source:

Imports System
Imports System.Configuration
Imports System.Collections.Generic
Imports System.Text

[code].....

Perhaps i am calling it incorrectly but i havent been able to get it to work (always return 'invalid class string')

View 3 Replies

Executing A FOR Loop?

Feb 1, 2011

Just trying to run a basic program where the user is prompted to enter five names, one at a time. I'm prompted one time. After entering one name I get the following error "Unhandled exception: System.NullReferenceException:Object reference not set to an instance of an object"

Here's the

Module Module1
Sub Main()
Dim SortedList
For SortedList = 1 To 5

[code]....

View 2 Replies

Executing An External App?

Oct 1, 2010

im working in a windows app that execute another apps.. writing the name of the app in a text box (i.e firefox.exe) and click enter to run it im using >> (System.Diagnostics.Process.Start(app_name.Text)) to run apps it works fine with me .. but it didnt with some apps like when I write for example ares.exe it says:Win32Exciption was unhandled :The system cannot find the file specified

View 1 Replies

Executing SQL From Code ?

Jun 22, 2010

I am running SQL 2005 Standard Server. I am using Visual Studio 2010 for development.

Let me just say that what I have below works, I would just like to have some constructive critisism.

CODE:

View 2 Replies

Name Of Currently Executing Method?

Dec 28, 2009

how to get the name of the currently executing method? I was thinking it was somewhere under My.Application, but I can't find it...

View 4 Replies

Sql - ExecuteNonQuery Not Executing - .net?

Oct 8, 2009

I'm trying to execute a SQL command, but I just can't find out why this is not working.This is how I defined the "execute" function in my class named "clsSQL":

[Code]...

View 6 Replies

Sub Routine Not Executing?

Feb 4, 2011

I have the following code:

Code:
Imports System.Data.SqlClient
Imports System.Data
Public Class Main[code]...

and the sub Exceptionquery is not working. I can verify this because it is supposed to create a new table called scratchpad3. what I may be missing in that sub routine that isn't allowing it to work?

View 8 Replies

Two If Statements - Why One Not Executing

Jun 27, 2012

I have two if statements and my project sees one and not the other. Here is the code:
If (IsPostBack) Then
HandleUploadedFile()
End If
Dim savePath As String = "Images "
If (fileUpload.HasFile) Then
[Code] .....
When I trace my code I find it goes to the second if and then go to end if without running the code inside the conditional.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved