Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Open NI-FGEN Examples with MS Visual Studio .NET 7 or 7.1 (2002 and 2003)?

Hardware: Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PXI-5401, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PXI-5411, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PXI-5431, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PCI-5421, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PXI-5404, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PCI-5431, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PXI-5421, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PCI-5411, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PCI-5401, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PCI-5412, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PXI-5422, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PXI-5441, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PXI-5412

Problem:
MS Visual Studio C++ 6.0 can import the NI-FGEN C examples (the .mak file). You can then compile, link and run.

Newer versions of Visual Studio cannot, however, import the .mak files anymore.
Double clicking on the .mak files opens MS Visual Studio which prompts you to convert it to the current Visual C++ project format. If you hit yes, you get an error stating:

"Cannot load the project due to a corrupt project file."

How do I open NI-FGEN examples with MS Visual Studio .NET 7 or 7.1 (2002 and 2003)?

Solution:
To use the NIFGEN C++ examples in MS Visual Studio 7.0 or newer, create a new C++ Console Project (empty), and then add the C file to it.

Open the project properties and set the following

Configuration Properties » C/C++ » Additional Include Directories: $(VXIPNPPATH)\winnt\include
Configuration Properties » Linker » General » Additional Library Directories: "$(VXIPNPPTH)\winnt\lib\msc"
Configuration Properties » Linker » Input: niFgen.lib

You should be able to compile, link, and run the examples now.

Related Links:

Attachments:





Report Date: 01/04/2005
Last Updated: 05/13/2006
Document ID: 3H394AOL

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