User`s guide
2-34 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Driver Functions
agb1500_msweepIv
agb1500_msweepIv
This function performs sweep measurement, and returns the number of 
measurement steps, sweep source data, measurement data, measurement status, and 
time stamp data. 
Before this function, execute the agb1500_setIv function to set the primary sweep 
source and execute the agb1500_setNthSweep function to set an synchronous sweep 
source. Up to nine synchronous sweep sources can be set by using the 
agb1500_setNthSweep function for each channel.
Syntax ViStatus _VI_FUNC agb1500_msweepIv(ViSession vi, ViInt32 channel, 
ViInt32 mode, ViReal64 range, ViPInt32 point, ViReal64 source[ ], 
ViReal64 value[ ], ViInt32 status[ ], ViPReal64 time[ ] );
Parameters vi  Instrument handle returned from agb1500_init( ).
channel  Slot number of the slot that installs the SMU to be used. See 
Table 2-2.
mode  Measurement mode. 1 (current) 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-3.
point  Number of measurement steps. Returned data.
source[ ]  Sweep source setup data. Returned data. To disable the source 
setup data output, set 0 (NULL pointer) instead of array.
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.
time[ ]  Time stamp data (measurement start time). Returned data. To 
disable the time stamp data output, set 0 (NULL pointer) 
instead of array.
Example
ViSession vi;
ViStatus ret;
ViInt32 emitter = 1; /* SMU1 */
ViInt32 base = 2; /* SMU2 */
ViInt32 collector = 4; /* SMU4 */
ViReal64 vb1 = 0.25;
ViReal64 vb2 = 0.75;
ViReal64 vc = 3;










