How to Run a VI in my C# Application Using LabVIEW Runtime

Updated Nov 21, 2023

Reported In


  • LabVIEW
  • LabVIEW Runtime

Programming Language

  • C# .NET

Issue Details

I have a C# application that runs a VI using the Call2 function. I have created an exe from my application and when I run it, LabVIEW always opens to execute my VI. But, as it is an executable, I don't want to see this window, I want to run my VI with the runtime. 
How can I do that?


As you use C#, you can build a .NET assembly containing your VI and then call it in your code instead of using LabVIEW functions.
As the .NET assembly is a DLL, so a compiled object, it will be executed using runtime.

Additional Information

Please follow that link to learn how to build a .NET assembly using LabVIEW: .NET Interop Assembly Properties Dialog Box