Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

niDMM.cs exception: "Device was not recognized. The device is not supported with this driver or version."

Solved!
Go to solution

Hello to everybody!

I've a question about using a DMM (PXI-4065) with VStudio 2008 and Measurement Studio 2009.

Because DMM are not still supported in .Net, I downloaded niDMM.cs wrapper 3.0 from NI web site.

I also downloaded C# Measure DC Volts example to compare it with my application.

 

Both, example and my application, fail trowing the exception [-1074118656] "Device was not recognized.  The device is not supported with this driver or version." when constructor class is called! 

 

dmm = new InstrumentDriverInterop.Ivi.nidmm("PXI3::12::INSTR", true, true);

 

I suppose it's depending on PXI device!

I also tried to use a VISA alias like "pippo" and then I tried to insert an unexistent device name. In any case the same exception has trown.

 

NI-DAQmx 8.9.5

NI-DMM 3.0.1

NI-VISA 4.6.1

NI-MAX 4.6.2f1

 

Roberto

 

Message Edited by robson on 04-29-2010 09:10 AM
Message Edited by robson on 04-29-2010 09:10 AM
0 Kudos
Message 1 of 3
(4,706 Views)
Solution
Accepted by topic author robson

Hello Robson,

 

Maybe you areusing a wrong itrument descriptor, please try the instructions in the following document:

 

KB 33A96PCW: Receiving Error -1074118656 when Running NI-DMM VIs

 

Let me know if it could help.

Best regards.

Matteo
Message 2 of 3
(4,688 Views)

Thank you Matteo

 

That was the solution!

 

Now I'm using the name in "NI-DAQmx Devices" MAX tree [PXI1Slot5] instead of the PXI MAX tree [PXI3::12::INSTR].

 

Best Regards

Roberto

0 Kudos
Message 3 of 3
(4,684 Views)