Digital Multimeters (DMMs) and Precision DC Sources

cancel
Showing results for 
Search instead for 
Did you mean: 

Using VEE with DMM and Modular Instruments not supported by Traditional DAQ

Hello all,

 

I understand that VEE’s latest release has support for DMM’s and Modular Instruments that are supported under traditional DAQ.  I would like to also control the newer Modular Instruments that are only supported under DAQmx.  I have seen the post that talks about accessing an M-Series board and have tried to create a .h file for VEE (http://forums.ni.com/ni/board/message?board.id=250&message.id=17525&query.id=32032#M17525) but have been unsuccessful thus far. I'm using the nidmm_32.dll located in the /Program Files\IVI\Bin folder. I’ve included the .h file that I’ve created and would love any help or suggestions. The program compiles fine but I am getting a error -1074130544 from niDMM_ConfigureMeasurement. 

 

Thanks,

 

Cactus Wire drawer

0 Kudos
Message 1 of 3
(7,087 Views)
Dear Cactus Wire drawer,
 
 I have a few questions and a possible solution.  First, have you been able to successfully use the DMM using the NI-DMM Soft Front Panel?  This is actually an important step because its an easy way to make sure the DMM is working correctly.  You may be already well past this step, but I just wanted to make sure.
 
Secondly, is it possible that you have two open projects which reference the DMM?  This error has occured in the past when two projects, both using the DMM, are simultaneously open.  If this is the case, try closing one of the project to see if you still get the error.  Hope this helps!
 
Regards,
David Hall | Applications Engineering | National Instruments
0 Kudos
Message 2 of 3
(7,066 Views)

CWD,

There are a few suggestion I would make. I would consider using the same parameter names for the functions that you have modified in your nidmmtest_vee.h file as in nidmm.h. For example; the nidmm.h header file list the following prototype for Configure Measurement:

   ViStatus NIDMM_DECLSPEC _VI_FUNC niDMM_ConfigureMeasurement(
      ViSession   vi,
      ViInt32     measFunction,
      ViReal64    range,
      ViReal64    resolution);

Notice that the parameters listed in bold are not the same as what you have specified in your modified header file.

Also consider that the resolution parameter for this function is specified in absolute resolution, not digits. This function was prior to the ConfigureMeasurementAbsolute and ConfigureMeasurementDigits that exist in the latest drivers.

Have you considered using LabVIEW? LabVIEW provides many powerful features that take advantage of our modular instruments such as integrated DMM/Switch Express VIs that programs the device with easy to use configuration prompts as well as specific indicators that integrate with Modular instruments to provide tools like digital waveform graphs for our High Speed DIO boards and many more features. There are also pre-written examples to get you started quickly.

You can try LabVIEW out at the following link without any installation: http://digital.ni.com/demo.nsf/websearch/CE34B1339DE04F2086256E930074129F?OpenDocument&node=1381_US

Good Luck,

Shea C

0 Kudos
Message 3 of 3
(7,058 Views)