02-09-2020 10:47 AM
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
Solved! Go to Solution.
02-09-2020 11:34 AM
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.
.
02-10-2020 03:34 AM
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