Example: Gpib Parallel Poll With Get; Idn? - Identify - Hittite HMC-T2220 Programmer's Manual

Synthesized signal generator family
Table of Contents

Advertisement

v02.1110
an example for the National Instruments™ "ib" functions follows.
There is no query form of PPE.
See Also: *PRE, *IST, *STB

3.3.15.1.1 Example: GPIB Parallel Poll with GET

char ppr = 0;
// Set up a triggered sweep
const char ccc[] =
"trig:sour bus;"
":freq:star 10e6;stop 1.01e9;step 1e6;mode swe;"
"*PRE #h200;" // Parallel Poll ist - Waiting for Trigger
":init"
;
// Will stay in "waiting for trigger" state until send *TRG or TRIG
// Send SCPI command to T2240
ibwrt(Device, ccc, sizeof(ccc)-1/*strip NULL*/);
// set up parallel poll on lsb (bit 1 for "1 oriented" GPIB)
// 0x60 --> PPE + configure
// 0x08 --> positive logic
// 0x00 --> lsb
ibppc(Device, 0x60 | 0x08 | 0x00);
// Run parallel poll
ibrpp(Device, &ppr);
if (0x01 != ppr) {
printf(
"Parallel poll for Waiting for Trigger failed: Got 0x%02x; expected 0x01; ibsta = 0x%02x\n",
ppr, ibsta);
}
// Send Trigger: GET – Group Execute Trigger
ibsta_val = ibtrg(Device);
// Should no longer be waiting for trigger.
// Parallel poll to verify
ibrpp(Device, &ppr);
if (0x00 != ppr) {
printf(
"Parallel poll for NOT Waiting for Trigger failed: Got 0x%02x; expected 0x00; ibsta = 0x%02x\n",
ppr, ibsta);
}
3.3.16
*IDN? – Identify
*IDN? produces an identification string including the manufacturer's name (Hittite), the model (HMC-
T2240), the serial number, and revision information.
Order On-Line: www.hittite.com. For technical application questions: Phone: 978-250-3343 or TE@hittite.com
HMC-T2200 Synthesized Signal Generator Family User Manual
// Parallel Poll Response
21

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HMC-T2220 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Related Products for Hittite HMC-T2220

This manual is also suitable for:

Hmc-t2240

Table of Contents

Save PDF