Programming Examples; Programming Preparations - Rigol DS4000E Series Programming Manual

Digital oscilloscope
Hide thumbs Also See for DS4000E Series:
Table of Contents

Advertisement

Chapter 3 Programming Examples
Chapter 3 Programming Examples
This chapter illustrates how to program the DS4000E series digital oscilloscope with SCPI commands based
on NI-VISA in Excel, LabVIEW, MATLAB, Visual Basic 6.0, and Visual C++ 6.0.
NI-VISA (National Instrument-Virtual Instrument Software Architecture), developed by NI (National
Instrument), provides an advanced programming interface to communicate with various instruments
through their bus lines. NI-VISA enables you to communicate with the instrument in the same way, without
considering the interface type of the instrument (such as GPIB, USB, LAN/Ethernet, or RS232). The
instruments that communicate with NI-VISA through various interfaces are called "Resources". The VISA
descriptor (i.g. resource name) describes the accurate name and location of the VISA resource. For
example, when you use the LAN interface to communicate with the instrument, the VISA descriptor is
displayed as "TCPIP::172.16.3.4::INSTR". Before programming, please obtain the correct VISA descriptor.
Contents in this chapter:

Programming Preparations

Excel Programming Example
LabVIEW Programming Example
MATLAB Programming Example
Visual Basic 6.0 Programming Example
Visual C++ 6.0 Programming Example
Programming Preparations
Before programming, you need to prepare the following tasks:
Install Ultra Sigma (PC) software. You can log in to the RIGOL official website (www.rigol.com) to
1.
download the software. Then install the software according to the installation wizard. After Ultra Sigma
is installed successfully, NI-VISA library will be completely installed automatically. In this manual, the
default installation path is C:\Program Files\IVI Foundation\VISA.
2.
Use the USB cable to connect the computer with the USB DEVICE interface on the rear panel of the
digital oscilloscope. DS4000E can communicate with a PC through the USB, LAN, or GPIB (works with
the specified USB-GPIB interface module provided by RIGOL). This chapter takes the USB interface as
an example.
3.
After the oscilloscope is correctly connected to the PC, power it on to start the oscilloscope.
4.
In this case, "Found New Hardware Wizard" dialog box appears on the PC. Please install "USB Test and
Measurement Device (IVI)" according to the instructions (For detailed installation procedures, refer to
DS4000E User's Guide
5.
Obtain the USB VISA descriptor of the oscilloscope. Open Ultra Sigma and the searched instrument
DS4000E Programming Guide
).
RIGOL
3-1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ds4024eDs4014e

Table of Contents