01-12-2006 02:53 PM
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
01-13-2006 12:34 PM
01-13-2006 03:05 PM
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