LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined symbol '_niDMM_ConfigureMeasurementDigits' referenced in

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

0 Kudos
Message 1 of 8
(4,451 Views)
Have you included the library (in your project) where the function _niDMM_ConfigureMeasurementDigits is contained?
0 Kudos
Message 2 of 8
(4,431 Views)

Thank you Ray,

I mess up the setting from the library option or other because I am getting new error message:

build errors.JPG

please advice:

Regards

jaime

0 Kudos
Message 3 of 8
(4,406 Views)

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

0 Kudos
Message 4 of 8
(4,401 Views)

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.

 

Message 5 of 8
(4,374 Views)

I got the project compiled, but now I got an error window message

entry point.JPG

 

this file is in the window/system32 folder.

Please advice

Thank you all

0 Kudos
Message 6 of 8
(4,369 Views)

What version of NI-DAQ do you have installed?  (Go to Start >> Programs >> National Instruments >> NI_DAQ)

You may need to reinstall it.

0 Kudos
Message 7 of 8
(4,361 Views)
version 9.0.2
0 Kudos
Message 8 of 8
(4,359 Views)