Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 2-47
Driver Function Reference
hp4156b_sweepPiv
md[n]: Measurement data (current).
st[n]: Status for the md[n] data.
where, n = 0 to 10 (integer).
hp4156b_sweepPiv
This function executes a pulsed sweep measurement by the specified channel, and
returns the number of measurement steps, sweep source data, measurement value
and the measurement status.
Before executing this function, execute the hp4156b_setPiv function to set the
pulsed sweep source. Also, execute the hp4156b_setSweepSync function to set the
synchronous sweep source.
Syntax ViStatus_VI_FUNC hp4156b_sweepPiv(ViSession vi, ViInt32 channel,
ViInt32 mode, ViReal64 range, ViPInt32 point, ViReal64 source[ ],
ViReal64 value[ ], ViInt32 status[ ]);
Parameters vi Instrument handle returned from hp4156b_init( ).
channel Channel number of the measurement unit. 1 to 6 (SMU1 to
SMU6), 23 (VMU1), or 24 (VMU2).
mode Measurement mode. 1 (current, only for SMU) or 2 (voltage).
range Measurement ranging mode. 0 (auto), positive value (limited
auto), or negative value (fixed range). For the available values,
see Table 2-2 and Table 2-5 or Table 2-7.
point Number of measurement steps. Returned data.
source[ ] Sweep source setup data. Returned data.
value[ ] Measurement data. Returned data.
status[ ] Measurement status. Returned data. For the status value, see
“Status Code” on page 2-12.
Example
ViSession vi;
ViStatus ret;
ViInt32 pch = 1; /* SMU1 for pulse sweep source */
ret = hp4156b_setSwitch(vi, pch, 1);
ret = hp4156b_setFilter(vi, pch, 0);
ViInt32 sm = 1; /* sweep mode: voltage-single-linear mode */
ViReal64 or = 0; /* output range: auto */
ViReal64 v0 = 0; /* pulse base voltage */
ViReal64 v1 = 0; /* pulse sweep start voltage */