From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with LabVIEW calling a .NET DLL. Reference problem?

Thank you Paul.

The same DLL.

 

Joel has been helpful; but can you work with me?

How do we get to the solution?

 

best regards

0 Kudos
Message 11 of 15
(713 Views)

Hi Sandeepvd,

 

So what we need to do is figure out what the difference is between the EXE instance of the application and the VI instance. One way we can do this is buy building a debugable assembly. What did you use to create the .NET assembly in the first place?

 

Take a look at the knowledgebase articles that I've linked below so that you get an idea of what I'm talking about.

 

http://digital.ni.com/public.nsf/allkb/6229347C7982CC81862576E30076A4AE

 

http://digital.ni.com/public.nsf/allkb/3087D91EEADBAF3D862571D1004AF192?OpenDocument

 

Once you set up the assembly and exe as debugable we will be able to see what's going on in both LabVIEW and the .NET assembly so that we can compare the EXE and VI instances.

 

Paul M

National Instruments | Applications Engineer | www.ni.com/support
0 Kudos
Message 12 of 15
(695 Views)

any resolution on this?  I am having the exact same problem?!

0 Kudos
Message 13 of 15
(540 Views)

Hi Ottomatic,

 

It's unlikely that you'll get a response from one of the previous posters on a 2 year old thread. It may be best to create a new thread, or we can talk about this here. Could you describe your system to make sure it's understood. Are you calling a DLL from labview, seeing errors in a VI, but not in an executable? If so, what are you expecting to see? What are you getting instead? What hardware are you working with? What data type are you pulling in to the front panel? Are you getting any LabVIEW or Windows errors?

Miles G.
National Instruments
Staff Applications Engineering Specialist
0 Kudos
Message 14 of 15
(517 Views)

Hello,

 

I was able to find a solution to a very similar problem on a different program I was working on. With My Program we had a C++ DLL that we were attempting to access with a C# wrapper.

 

I had the same problem where the base program was unable to run correctly with the C# wrapper until it was wrapped up into an application with all of the built version of the wrapper and DLL located in the same folder as the application.

 

The solution I found was to move the same files I used to get the application working into the same folder as the LabVIEW project. Additionally it was beneficial to add the files into the LabVIEW project, This way when we built the application we can we can choose to always include these files upon building the application.

 

Sincerely,

 

Jacob Steltenpohl

0 Kudos
Message 15 of 15
(402 Views)