LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview ActiveX Automation from WinForms C#

Solved!
Go to solution

I want to substitue the labview From Panel vi Application with a C# WinForms Application, for that I will comunicate with labview using ActiveX Automation.

 

My WinForms Application is simple:

1) At startup I execute the Labview Runtime like this:

   this.labViewApp = new LabVIEW.Application();

 

2) Then I select a vi file from my WinForm interface and then open the vi reference like this:

   this.viApp = labViewApp.GetVIReference(this.labViewFile, "", false, 0);

 

My problem is that the vi is executed correctly but my WinForm Application is freezed, is impossible access to it, only the vi executed showed is accesible.

 

My questions are:

1) How can avoid freeze the form, because from it must pass parameters to the vi executed.

2) How can I execute the vi but not show the front panel?. I only use labview like backend and the C# WinForms Application like the scada passing and recovering data from the Vi Labview.

 

I Attached the C#Visuals Studio Code

0 Kudos
Message 1 of 3
(2,689 Views)

This is NOT a forum to help you debug C# code.

As you wrote that the VI is working properly, this is NOT a LabVIEW issue.

 

.

0 Kudos
Message 2 of 3
(2,673 Views)
Solution
Accepted by topic author masalinas

2) How can I execute the vi but not show the front panel?. I only use labview like backend and the C# WinForms Application like the scada passing and recovering data from the Vi Labview.

 

it is possible to run a .vi or LabView compiled .exe with the front panel being minimized

 

0 Kudos
Message 3 of 3
(2,642 Views)