Example 1 The Preparation For Programming - Rigol DS1204B Programming Manual

Digital oscilloscope, ds1000b series
Hide thumbs Also See for DS1204B:
Table of Contents

Advertisement

RIGOL

Example 1 The Preparation for Programming

#include <stdlib.h>
#include <visa.h>
/*Define the equipmant address*/
/*LAN*/
#define RESOURCE "TCPIP0::172.16.3.73::inst0::INSTR"
/*USB*/
#define RESOURCE "USB0::6833::1160::DS1BA103700043:0:INSTR"
/*Define the equipment ID*/
ViSession g_viDefault;
ViSession g_vi;
void main
{
/*Open the equipment ID*/
viOpenDefaultRM(&g_viDefault);
viOpen(g_viDefault,RESOURCE,VI_NULL,VI_NULL,&vi);
/*Clear the interface*/
viClear(g_vi);
/*Implement functions*/
.......
/*Close the equipmant ID*/
viClose(g_vi);
viClose(g_viDefault);
}
3-2
Programming Guide for DS1000B Series

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ds1104bDs1064b

Table of Contents