Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 5 out of 5     Rate this Document

Why Are There Link Errors When I Try to Compile the Switch/DMM Scanning Examples Written in C?

Primary Software: Driver Software>>NI-SWITCH
Primary Software Version: 3.8
Primary Software Fixed Version: 3.8
Secondary Software: Driver Software>>NI-DMM

Problem:
I have NI-Switch and NI-DMM installed on my computer with C support installed. All of the examples work except for the DMM Switch Synchronous Scanning and DMM Switch Handshaking examples. I get link errors as shown in the attached screenshots (NewSwitch-OldDMM-ALL, OldSwitch-NewDMM-Release, and OldSwitch-NewDMM-Debug). How can I get these examples to work?

Solution:
If a combination of the following NI-Switch and NI-DMM drivers are used, then the DMM Switch Synchronous Scanning and DMM Switch Handshaking examples in Visual Studio 6.0 and .NET will not work without modification.
  • NI-Switch 3.8 or above with DMM 2.7.2 or lower
  • NI-Switch 3.7.2 or lower with DMM 2.9 or above

NI-Switch 3.8 or above:
Upgrade to NI-DMM 2.9 or above. Otherwise, proceed with the following steps:
  1. Locate the .dsp file associated with the example which is located at C:\Program Files\IVI\Drivers\niSwitch\Examples\CVI\.
  2. Open this .dsp file in a text editor such as Notepad.
  3. Add /nodefaultlib: "libc" to the release portion of the code and /nodefaultlib: "libcd" to the debug portion of the code as seen in the attached screenshot (switchdmmdsp).

NI-Switch 3.7.2 or below:
  1. Upgrade to NI-Switch 3.8 or above. Otherwise, proceed with the following steps:
  2. Locate the .dsp file associated with the example which is located at C:\Program Files\IVI\Drivers\niSwitch\Examples\CVI\.
  3. Open this .dsp file in a text editor such as Notepad.
  4. Remove /nodefaultlib: "libc" from the release portion of the code and /nodefaultlib: "libcd" from the debug portion of the code as seen in the attached screenshot (switchdmmdsp).


Related Links:
Drivers and Updates: NI-Switch
Drivers and Updates: NI-DMM


Attachments:

NewSwitch-OldDMM_errorNewSwitch-OldDMM-ALL.JPG

OldSwitch-NewDMM-ReleaseErrorOldSwitch-NewDMM-Release.JPG

OldSwitch-NewDMM-DebugErrorOldSwitch-NewDMM-Debug.JPG

switchdmmdsp.png






Report Date: 09/03/2008
Last Updated: 06/30/2009
Document ID: 4P2BC8QA

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit