Operation, Remote Operation
Examples
Rev. L0
ATC-5000NG ATC/DME Test Set Operation Manual
1-2-5
February 2020
Subject to Export Control. See Cover Page for details.
Page 147
5.12.9
EXAMPLE PROGRAM
// T his ex ample p rog ram is pr ov ide d to allo w yo u to qu ick ly g et sta rted co mmun ica ting wit h th e
// u nit. It req uir es Na tion al I ns trume nts La bWin do ws/CVI. Ve rs ion 20 10 or ab ov e is rec omme nd ed .
// T his pro gra m sh ows ho w t o c ommun ica te usin g GPIB an d Eth ern e t. Th e f ollo win g t ext ca n b e
// co pie d an d p as ted into 4 files an d c omp iled .
//
== == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == == == = == =
// T itle: Main .h
// Purp os e: Main he ad er file.
//
// Crea te d o n: 9 /1 1/2 01 8 a t 1 0:5 1 AM by VIAVI T es t Solu tion s.
// Cop yrig ht: VIAVI AvComm. All Righ ts Re se rve d.
//
== == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == == == = == =
#ifn de f _ _Ma in_ H_ _
#d efin e __ Ma in_ H__
#ifd ef __ cp lusp lus
e xte rn "C" {
#e nd if
//
== == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == == == = == =
// In clu de files
#in clu de "cv ide f.h"
#ifd ef __ cp lusp lus
}
#e nd if
#e nd if // n de f _ _Ma in_ H_ _
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
//= == END MAI N HEADER FIL E == == == = == == == == = == == == == = == == == == = == == == = == == == == = ==
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
// T itle: Main .c
// Purp os e: Main fu nct ion to s ho w ho w t o c ommun ica te with th e u nit u sin g
// GPIB an d Eth ern et.
// T his ex amp le p ro gra m wa s c omp iled an d tes ted us ing
// Na tion al In str umen ts La bWin do ws /CVI Ve r 20 10 .
//
// Crea te d o n: 9 /1 1/2 01 8 a t 1 0:5 1 AM by VIAVI T es t Solu tion s.
// Cop yrig ht: VIAVI AvComm. All Righ ts Re se rve d.
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
// In clu de files
#in clu de <a ns i_c .h>
#in clu de <u se rint .h>
#in clu de <u tility .h>
#in clu de <fo rma tio.h >
#in clu de "AT C_Driv er.h "
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
vo id ma in(v oid )
{
ViSta tu s s tatu s = 0;
Summary of Contents for 138156
Page 3: ......