Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Legacy Wrapper stops working with Nationalinstruments.common reference

I was running a VS2005.net application using FGEN PXI 5401 with NI's FGEN wrapper which uses the PInvoke routines to access the legacy DLL.
 
I added a DAXmx device (Digital I/O PXI-6509 which requires that I add project references to the following two .NET Component libraries.
NationalInstruments DAQmx version 8.1.20.25
NationalInstruments Common Version 8.0.20.270
 
When I add the later (Common library) my Legacy Wrappers stop working. 
 
I get the following error "Failure loading driver module." which is a result of error code  status=-1074135030
 
Can you please help me resolve this.
 
Scot
850-251-4784
0 Kudos
Message 1 of 5
(3,987 Views)

Scot -

I noticed that this post has not received a response in a couple of weeks. Has this issue been resolved?

There should be no relationship whatsoever between NationalInstruments.Common.dll and the FGEN wrapper, so the problem as described is quite puzzling.

- David

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

David,

 

Thanks for your response (Has this issue been resolved?)

The answer is no.  I just tried updating the registry by adding a pal memory config per the following post but it did not help.

http://digital.ni.com/public.nsf/websearch/440B50D1209E33E586256C4800475730?OpenDocument

I need this to work soon as it is holding up deployment of my test stand.

Any help would be appretiated.

Scot Hudson

850-251-4784

0 Kudos
Message 3 of 5
(3,930 Views)

Scot -

I'd like to make sure I understand your problem correctly.

In your original post, you stated, "When I add the later (Common library) my Legacy Wrappers stop working.". I interpret this as meaning that you have a working project that uses the NI-FGEN .NET wrapper and when you add a reference to NationalInstruments.Common.dll, the project no longer works. If you remove the reference to NationalInstruments.Common.dll, the project starts working again. Is this correct?

Could you describe your system in more detail? Are you using C# or VB.NET? What version of the NI-FGEN driver is on your system? What version version of DAQmx is on your system? Do you have Measurement Studio installed?

My initial guess would be some kind of driver incompatibilty. Have you tried to load the NI-FGEN DLL in Dependency Walker? This will show you whether all of its dependencies can be found.

- David

 

0 Kudos
Message 4 of 5
(3,917 Views)
Hi Scot

Go under the project properties to Debug and uncheck the "Enable VS hosting process" check box. This should take care of the problem.

We are looking into fixing this problem for the next version of DAQ.

Bilal Durrani
NI
0 Kudos
Message 5 of 5
(3,721 Views)