LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Has anyone loaded a LabVIEW generated .NET interop into a .NET 4.0 CLR application?

I am working with some C# developers to integrate a data acquisition piece into their software. They are using .NET 4.0 and we have found that attempting to load a LabVIEW generated assembly will always return an error unless the CLR is downgraded to 3.5. I am not a C# developer, so forgive me if what I just said doesn't make a lot of sense. I guess a related question is, can we use LabVIEW to generate a 4.0 runtime compatible .NET interop? I'm using LabVIEW 2011 32bit.

 

Thanks,

Chris

0 Kudos
Message 1 of 5
(2,704 Views)

I think .Net 4.0 is simply not supported. 

For Teststand I have found a document pointing exacty this out: http://digital.ni.com/public.nsf/allkb/997B0CA4E590E8F38625771B0073235E

0 Kudos
Message 2 of 5
(2,697 Views)

I've read through that article. I may have misunderstood, but it seems like it specifcally addresses the reverse case from what I am trying to do. I fear the answer is the same, but I didn't see it explicitly said. I want to create a .NET interop in LabVIEW, and then allow my C# developers to utilize it in their 4.0 CLR application. I saw something indicating that a program can only load one CLR at a time; if that is the case, it means that 4.0 CLR app will not be able to execute a LabVIEW generated assembly that only runs in CLR 2.0. I'm a little surprised that CLR 4.0 isn't backward compatible with CLR 2.0 code, but I don't really understand how that works..

 

If that is the answer, I need to look at alternatives.

 

Thanks,

Chris

0 Kudos
Message 3 of 5
(2,680 Views)

Is there any update to this?  Is this now possible in any of the newer versions of LabView?  Thanks.

0 Kudos
Message 4 of 5
(2,567 Views)

I can barely remember this question. I ended up doing everything with a LabVIEW generated dll. The C# guys got it to work and that was the end of the story. I never went back and looked at the .net interop again. No idea if any of this has changed with LV2015.

0 Kudos
Message 5 of 5
(2,562 Views)