Agilent 4155B/4156B VXIplug&play Driver User’s Guide, Edition 4
3-41
Programming Examples Using HP VEE
Sampling Measurements
Sampling Measurements
To make sampling measurements, use the following functions.
Table 3-25
Functions for Sampling Measurements
A program example is shown in Figure 3-37. This program measures resistance. The
example uses the User function of the HP VEE. See Figure 3-38 on page 3-43 and
Figure 3-39 on page 3-44. The measurement setup is shown in Figure 3-36.
Figure 3-36
Device Connection and Source Setup for Example Program
Description
Function
Parameters
Output Switch Setup
hp4156b_setSwitch
channel,state
Output Filter Setup
hp4156b_setFilter
channel,state
Integration Time Setup
hp4156b_setInteg
table,time,average
Forces dc bias
hp4156b_force
channel,mode,range,value,
compliance,polarity
Sampling timing setup
hp4156b_setSample
hold,interval,point
Sampling dc source setup
hp4156b_addSampleSyncIv
channel,mode,range,base,bias,
compliance
Sampling pulse source setup
hp4156b_addSampleSyncPulse
channel,base,peak,count,period,
width,delay,rise,fall
Executes measurement
hp4156b_sample
channel[ ],mode[ ],range[ ],point,
index[ ],value[ ],status[ ]
Clears sampling source setup
hp4156b_clearSampleSync
Disables output
hp4156b_zeroOutput
channel
A
channel: SMU3
mode: V output
range: 2V
value: 0V
comp: 0.1A
polarity: AUTO
channel:MeasCh1
mode: MeasMode
range: MeasRange
value: R1
A
channel:MeasCh1
mode: V output
range: AUTO
base: 0V
bias: Bias
comp: 0.1A
channel:MeasCh2
mode: MeasMode
range: MeasRange
value: R2
channel:MeasCh2
mode: V output
range: AUTO
base: 0V
bias: Bias
comp: 0.1A