Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3 2-63
Driver Functions
agb1500_spotCmuMeas
channel Slot number of the slot that installs the MFCMU. See Table 2-2.
channel=-1 detects the slot automatically.
mode MFCMU measurement parameters. 1 to 402. See Table 2-6.
Specify a couple of measurement parameters. The MFCMU can
measure two parameters.
range MFCMU measurement range. 0 (auto) or positive value (fixed
range). See Table 2-7.
value[ ] Measurement data. Returned data.
status[ ] Measurement status. Returned data. See “Status Code” on page
2-14. To disable the status data output, set 0 (NULL pointer)
instead of array.
monitor[ ] MFCMU output (oscillator level and DC bias) monitor data.
Returned data. To disable the AC/DC monitor data output, set 0
(NULL pointer) instead of array.
status_mon[ ] MFCMU output monitor status. Returned data. To disable the
status output, set 0 (NULL pointer) instead of array.
time Time stamp data (measurement start time). Returned data. To
disable the time stamp data output, set 0 (NULL pointer)
instead of variable.
Example
ViSession vi;
ViStatus ret;
ViInt32 ch = 9; /* MFCMU */
ViReal64 freq = 1E6; /* frequency */
ViReal64 acv = 0.05; /* oscillator level */
ViReal64 dcv = 2.5; /* DC bias */
ViInt32 mm = 100; /* measurement mode: Cp-G */
ViReal64 mr = 0; /* measurement range: auto */
ViReal64 md[2]; /* measurement data */
ViInt32 st[2]; /* status */
ViReal64 mon[2]; /* monitor data */
ViInt32 stmon[2]; /* monitor status */
ViInt32 tm; /* time stamp data */
ret = agb1500_setSwitch(vi, ch, 1);
ret = agb1500_setCmuFreq(vi, ch, freq);
ret = agb1500_forceCmuAcLevel(vi, ch, acv);
ret = agb1500_forceCmuDcBias(vi, ch, dcv);
ret = agb1500_resetTimestamp(vi);
ret = agb1500_spotCmuMeas(vi, ch, mm, mr, &md[0], &st[0], &mon[0],
&stmon[0], &tm);
For the above example, the array variables md[], st[], mon[], and stmon[] will
contain the following data.
md[0]: Primary parameter measurement data (ex: Cp).