
Agilent B1500A/B1505A Programming Guide, Edition 11 3-53
Programming Examples
Multi Channel Pulsed Sweep Measurements
NOTE By a trigger such as the XE command, the source channels set by the WNX
commands start output in the order specified by the N value, and then the source
channels set by the MCPNX and MCPWNX commands start output simultaneously.
If you use multiple measurement channels, all measurement channels start
measurement simultaneously.
A program example of a multi channel pulsed sweep measurement is shown below.
This measures the bipolar transistor Ib-Vb and Ic-Vb characteristics simultaneously.
Table 3-15 Multi Channel Pulsed Sweep Measurement Example
Sub perform_meas(ByVal session As IMessage, ByVal t() As Integer) ’1
Dim i As Integer = 0 ’t(0): Emitter
Dim j As Integer = 0 ’t(1): Base
Dim nop1 As Integer = 11 ’t(2): Collector
Dim nop2 As Integer = 1 ’t(3): not use
Dim data(nop2 - 1, nop1 - 1) As String
Dim value As String = "Vb (V), Ib (mA), Tb (sec), Stat_b, Ic (mA), Tc (sec),
Stat_c"
Dim fname As String = "C:\Agilent\prog_ex\data31.txt"
Dim title As String = "Measurement Result"
Dim msg As String = "No error."
Dim err As Integer = 0
Dim vc As Double = 3 ’13
Dim vb1 As Double = 0.1
Dim vb2 As Double = 0.9
Dim ibcomp As Double = 0.1
Dim iccomp As Double = 0.5
Dim rep As Integer = nop1
Dim mret As String ’19
Dim sc(nop1) As Double
Dim md1(nop1) As Double
Dim st1(nop1) As String
Dim tm1(nop1) As Double
Dim md2(nop1) As Double
Dim st2(nop1) As String
Dim tm2(nop1) As Double ’26
Dim mtm As Double = 0.001 ’measurement time in sec
Dim pcom As String = "0,0.01,0.001" ’hold,period,Mdelay in sec
Dim b_pt As String = ",0,0.005" ’base delay,width in sec
Dim c_pt As String = ",0,0.005" ’collector delay,width in sec
Line Description
2 to 11 Declares variables used through the project. And sets the proper values.
13 to 18 Declares variables used to set the source output, and sets the value.
19 to 26 Declares variables used to read the measurement data.
27 to 30 Declares variables used to set the pulse and measurement timing, and sets the value.
Komentarze do niniejszej Instrukcji