LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 2026 and .NET 8.0

Solved!
Go to solution

Since I can’t reply directly to the pinned post Eric started on the first page of the forum, I wanted to ask a question about using .NET packages from GitHub

 

Let’s say someone has created a .NET package that looks like it would be really useful. Is there a way to bring something like that into LabVIEW and use it? If not, is this something that could be considered down the road?

 

I realize we’d be responsible for using and supporting these packages ourselves, and I’m not expecting Emerson to build or maintain any custom VIs for them. It would just be nice to have the option to leverage these.NET packages when it makes sense.

 

If anyone has already done this, or if it’s already possible today, I’d love to hear how you went about it.

0 Kudos
Message 1 of 6
(131 Views)

I'm not sure what you are asking here.

 

If you have a .Net assembly, you can in most cases interface to them with the LabVIEW .Net functions and use a constructor to create the objects it exposes.

 

What is your exact problem? Downloading the .Net assemblies from such a project? Creating the .Net assembly from the project source code? Or something else?

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 6
(118 Views)

@rolfk wrote:

I'm not sure what you are asking here.

 

If you have a .Net assembly, you can in most cases interface to them with the LabVIEW .Net functions and use a constructor to create the objects it exposes.

 

What is your exact problem? Downloading the .Net assemblies from such a project? Creating the .Net assembly from the project source code? Or something else?



I am basing my question purely on my Visual Studio experience. I believe in VS there is a place where I could download external packages to use in my project/solution. I don't have VS installed on my work PC, so I am relying on memory.

 

I am sure it's possible in LabVIEW, but I wonder if it is somewhat streamlined to do that...

 

 

0 Kudos
Message 3 of 6
(86 Views)
Solution
Accepted by Eric1977

@Eric1977 wrote:

I am basing my question purely on my Visual Studio experience. I believe in VS there is a place where I could download external packages to use in my project/solution. I don't have VS installed on my work PC, so I am relying on memory.

 

I am sure it's possible in LabVIEW, but I wonder if it is somewhat streamlined to do that...


You are conflating things. You still need Visual Studio to turn your github source code into a .Net assembly, aka DLL. Once you have that DLL assembly created you can copy it into your LabVIEW project sources and then start writing VIs to call it. It's that simple.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 6
(57 Views)

Yeah, it depends on if you're pulling in compiled code or not. If you have a .NET dll, you're good to go. It's a little obnoxious due to translating syntax between "text based" and "shape based" programming but it works fine.

 

If you have a bunch of .c/.cpp files and that sort of thing, then no, you can't pull those into LabVIEW. You'd need to make them into a dll on the .NET side.

0 Kudos
Message 5 of 6
(47 Views)

Understand. Thanks guys.

0 Kudos
Message 6 of 6
(39 Views)