Agilent Technologies 93000 SOC Series Training Manual page 522

Mixed-signal training
Hide thumbs Also See for 93000 SOC Series:
Table of Contents

Advertisement

Lesson 1 – Multi-Site Test
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:
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();
The following example gets site information of the original multi-site pin
configuration.
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
}
:
522

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents