EasyManua.ls Logo

Agilent Technologies 93000 SOC Series - Page 522

Agilent Technologies 93000 SOC Series
632 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Lesson 1 Multi-Site Test
522
The CURRENT_SITE_NUMBER API is designed for executing on a single
active site. Hence, use this API in the each site loop block or outside the first
invocation block, as follows:
The following example gets site information of the original multi-site pin
configuration.
DOUBLE voff[2];
voff[0] = 0.25 V;// DC offset for site#1
voff[1] = 0.28 V;// DC offset for site#2
:
ON_FIRST_INVOCATION_BEGIN();
:
FOR_EACH_SITE_BEGIN();
AWG("Ain").vOffset(voff[CURRENT_SITE_NUMBER()-1]);
FOR_EACH_SITE_END();
:
ON_FIRST_INVOCATION_END();
INT i;
ARRAY_I sites;
:
GET_CONFIGURED_SITES(sites);//Get info of all sites
for (i=0; i<sites.size(); ++i){
cout << sites[i] << "is configured¥n"; //Print
}
:

Table of Contents

Related product manuals