45 User Manual
EAR99 technology subject to restrictions on copyrights page.
USBTMC and TCP/IP, send commands to read the return value.
Follow these steps to complete the example:
1. Open Visual Studio and create a new vc ++ win32 project.
Setting up the project environment to use the NI-VISA library, you
have two options for using ni-visa, static mode and automatic mode:
•
static mode:
Find the files on the NI-VISA installation path: visa.h, visatype.h,
visa32.lib. Copy them to your project and add them to the project. In the
project .cpp file, add the following two lines
#include "visa.h"
#pragma comment(lib,"visa32.lib")
•
automatic mode
Set .h files include directory, NI-VISA installation path. In our
computer,
we
set
the
path
to:
C:
\Program
Files\IVI
Foundation\VISA\WINNT\include. Set this path to the project - Properties -
C / C ++ - General - Additional include path, as shown:
Set the library path to set the library file:
For example your NI-VISA installation path could be C: \Program Files\IVI
Foundation\VISA\WINNT\LIB