Agilent Technologies B1500A Uživatelská příručka Strana 168

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 208
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 167
4-12 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Programming Examples for C++ Users
Pulsed Spot Measurement
Measurement
Result Example
Id = 14.255000 mA (at 1.5 V)
Vg = 1.5 V
vd = 1.5; /* 30 */
idcomp = 0.05;
vg = 1.5;
igcomp = 0.01;
base = 0;
width = 0.001;
period = 0.01;
hold = 0.1; /* 37 */
ret = agb1500_force(vi, bulk, agb1500_VF_MODE, 0, 0, 0.1, 0);
ret = agb1500_force(vi, source, agb1500_VF_MODE, 0, 0, 0.1, 0);
ret = agb1500_setPbias(vi, gate, agb1500_VF_MODE, 2, base, vg,
width, period, hold, igcomp);
ret = agb1500_force(vi, drain, agb1500_VF_MODE, 2, vd, idcomp, 0);
check_err (vi, ret); /* 43 */
ret = agb1500_measureP(vi, drain, agb1500_IM_MODE, 0, &meas, &status, 0);
check_err (vi, ret); /* 46 */
ret = agb1500_zeroOutput(vi, agb1500_CH_ALL);
check_err (vi, ret); /* 49 */
printf("Id = %9.6f mA (at %3.1f V)\n", meas * 1000, vd);
printf("Vg = %3.1f V\n", vg); /* 52 */
ret = agb1500_setSwitch(vi, agb1500_CH_ALL, 0);
check_err (vi, ret); /* 55 */
}
Line Description
30 to 37 Defines the variable values for the source channels.
39 to 42 Applies voltage to device, and sets the pulsed bias source.
45 Performs pulsed spot measurement.
48 Sets the specified port to the zero output state.
51 to 52 Displays the measurement result data.
54 Disables all ports.
43, 46, 49 and 55 Calls the check_err subprogram (shown in Table 4-1) to check if an error status is
returned for the previous line.
56 End of the perform_meas subprogram.
Zobrazit stránku 167
1 2 ... 163 164 165 166 167 168 169 170 171 172 173 ... 207 208

Komentáře k této Příručce

Žádné komentáře