Visa Examples; Vc++ Example - Teledyne T3DSO1000 Programming Manual

Digital oscilloscopes
Hide thumbs Also See for T3DSO1000:
Table of Contents

Advertisement

VISA Examples

VC++ Example

Environment: Win7 32-bit, Visual Studio.
Description: Use National Instruments VISA to control the device with
USBTMC or TCP/IP access. Perform a write and read operation.
Steps:
1.Open Visual Studio, create a new VC++ win32 project.
2.Set the project environment to use the NI-VISA library. There are two ways to
use NI-VISA, static or automatic:
a) Static:
Find the files visa.h, visatype.h, visa32.lib in the NI-VISA installation path,
copy them to your project, and add them into the project. In the
projectname.cpp file, add the follow two lines:
#include "visa.h"
#pragma comment(lib,"visa32.lib")
b) Automatic:
Set the .h file include directory, the NI-VISA install path, in our computer
we set the path is: C:\Program Files\IVI Foundation \VISA\WinNT\include.
Set this path to project---properties---c/c++---General---Additional Include
Directories: See the picture.
Digital Oscilloscope Series
200

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

T3dso2000

Table of Contents