Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

MAX Device Drivers

Solved!
Go to solution

Geoff V,

 

The error code -1074135040 means that the IVI engine failed to load.  This typically is an issue that is related to a bad installation of the IVI Compliance Package, but may be a result of the ifiFgen_32.dll/iviFgen_64.dll issue. 

Could you possibly provide a screenshot of your MAX window showing all of the software versions you have installed?

 

If you do not have version 4.4 of the IVI Compliance Package installed, I would recommend that you upgrade the driver.  The download page is below:

IVI Compliance Package 4.4

http://joule.ni.com/nidu/cds/view/p/id/2589/lang/en

 

Are you using the Measurement Studio .NET Instrument Driver Wizard to generate your .NET wrapper?  The process is explained at the link below:

How Can I Create a .NET Wrapper for My Instrument Driver?

http://digital.ni.com/public.nsf/allkb/27177DA13C6ED0AE86257362006A68B0?OpenDocument

Regards,

Jared R.
Precision DC Product Support Engineer
National Instruments
0 Kudos
Message 11 of 15
(2,317 Views)

Attached is a screen shot of the Measurement & Autiomation Explroer with the software tree expanded. I don't see the Compliance package listed under the tree, however I did download, run, and install the 4.4 package. I confirmed this by attempting to re-run C:\National Instruments Downloads\NI Device Drivers\Feb12\Products\IVI_Compliance_Package\x64\ICPCore64 and it brought up the modify/remove menu meaning it's already installed. If there's something else you see missing from the tree let me know.

And yes I am using the Measurement Studio to wrap the drivers into .NET classes. I see that during initialization (and most/all of the other calls)  it PInvokes a method from the wrapped DLL. It isn't giving any errors about not finding the DLL just erroring somewhere in there which forces that return error value.

0 Kudos
Message 12 of 15
(2,313 Views)
Solution
Accepted by topic author Geoff V

Hi Geoff V,

 

One thing that immediately stands out is that there is no entry for Data Neighborhood or Scales underneath the My System tree in MAX.  This along with the fact that the IVI Compliance Package isn’t in your Software list implies that there is something wrong with your install of MAX.  Resolving this issue may resolve the other issues you’re having.

 

I see that you’re running MAX 5.0.  I would recommend that you upgrade or install a driver that includes a more recent version of MAX.  NI-DAQmx 9.5.5 includes the newest version of MAX.  The download link is below:

NI-DAQmx 9.5.5

http://joule.ni.com/nidu/cds/view/p/id/3135/lang/en

 

Let me know how it goes. 

Regards,

Jared R.
Precision DC Product Support Engineer
National Instruments
Message 13 of 15
(2,305 Views)

Downloaded the NI-DAQmx package, then re-installed the IVI Compliance package and it shows up correctly in the list. This allowed me to correctly instantiate and use the specific drivers.

 

If the old MAX program doesn't have the ability to correctly handle starting the IVI-Compliance engine, maybe a note should be put somewhere on the MAX download page if this isn't the intended behavior?

 

Thanks for all your help in getting this working!

 

-Geoff

0 Kudos
Message 14 of 15
(2,293 Views)

Geoff V,

 

MAX 5.0 is able to handle starting the IVI-Compliance engine.  I believe something related to your installation of MAX had corrupted, causing the IVI engine to fail to initialize.  I'm glad that it's working now.  Good luck with the rest of your application!

Regards,

Jared R.
Precision DC Product Support Engineer
National Instruments
0 Kudos
Message 15 of 15
(2,289 Views)