To develop an NI-RFSG application with Microsoft Visual Studio 2010, follow these general steps:
  1. Open an existing or new Visual C/C++ project to manage your application code.
  2. Create source code files of type .c (C) or .cpp (C++).
  3. Add the source code files to the project.
  4. Add the following code in the source code files:
    #include "niRFSG.h"
  5. Add the NI-RFSG include and library files to the project.
    Note In the following steps, IVIROOTDIR32 and VXIPNPPATH are aliases to specific National Instruments file folder locations. Refer to the NI-RFSG Readme for more information about installed file locations.
    1. Select Project » Properties » Configuration Properties » C/C++ » General » Additional Include Directories and add the paths to the following files, separated by a semicolon:
      • IVIROOTDIR32\Include\niRFSG.h
      • VXIPNPPATH\WinNT\Visa\include\visa.h
    2. Select Linker » Input » Additional Dependencies and add niRFSG.lib.
    3. Select Linker » General » Additional Dependencies, and add the following path:
      • 32-bit systems: IVIROOTDIR32\Lib\msc\niRFSG.lib
      • 64-bit systems: IVIROOTDIR32\Lib x64\msc\niRFSG.lib
  6. Build your application using the appropriate programming flow steps.