11-13-2009 04:03 PM
I am getting the message below when I compile an old written code.
Undefined symbol '_niDMM_ConfigureMeasurementDigits' referenced in
"hardware.c"
Here si the part of the code in hardware.c
// set DMM to requested configuration
if((error=niDMM_ConfigureMeasurementDigits(dmm, mode, range, digits))
!= VI_SUCCESS) {
niDMM_error_message(dmm, error, errorMsg);
MessagePopup("Equipment Error", errorMsg);
return 1;
please help
Thank you
11-16-2009 07:48 AM
11-17-2009 09:20 AM
Thank you Ray,
I mess up the setting from the library option or other because I am getting new error message:
please advice:
Regards
jaime
11-17-2009 10:58 AM
That should be easy to fix.
You have declared a macro 'MAKEINTRESOURCEA' & 'MAKEINTRESOURCEW' somewhere in the code already (or in one of the libraries?).
In any case. If they are the same macro, simply comment out where they are redefined in lines 37 & 38 of winver.h.
It's better to comment out at this time, in case they are not the same macro and functionality becomes erratic.
Hope this helps,
R
11-19-2009 08:52 AM
Jaime:
Redefinition errors are often due to problems with your #include statements.
Sometimes #include statements are position sensitive. Try changing the order of the statements, like moving windows.h up in the order.
Make sure that you're including the CVI version of the SDK (WinAPI) .h files, not a Visual Studio version.
The file windows.h includes winver.h. In your .c files #include only windows.h. Don't also #include winver.h.
Regarding your original error, did you verify that you have the .lib file for nidmm as part of your project?
You may need to install the driver. See the link here: http://joule.ni.com/nidu/cds/view/p/id/442/lang/en.
11-19-2009 10:09 AM
I got the project compiled, but now I got an error window message
this file is in the window/system32 folder.
Please advice
Thank you all
11-19-2009 11:35 AM
What version of NI-DAQ do you have installed? (Go to Start >> Programs >> National Instruments >> NI_DAQ)
You may need to reinstall it.
11-19-2009 12:13 PM