Agilent Technologies E1418A User Manual page 151

8/16-channel d/a converter module scpi programming guide
Table of Contents

Advertisement

697
Reg_offset(18) = 36
698
Reg_offset(19) = 38
699
Reg_offset(20) = 40
700
Reg_offset(21) = 42
701
Reg_offset(22) = 44
702
Reg_offset(23) = 46
703
Reg_offset(24) = 48
704
Reg_offset(25) = 50
705
Reg_offset(26) = 52
706
Reg_offset(27) = 54
707
Reg_offset(28) = 56
708
Reg_offset(29) = 58
709
Reg_offset(30) = 60
710
Reg_offset(31) = 62
999
! Output a calibrated voltage on channel 3.
1000
!
1001
Write_a16(Reg_offset(15),8)
1002
Off_con=FNRead_a16(Reg_offset(18))
1003
Write_a16(Reg_offset(15),4)
1004
Write_a16(Reg_offset(18),Off_con)
1005
Write_a16(Reg_offset(15),9)
1006
Gain_con=FNRead_a16(Reg_offset(18)) ! Get the channel 3 voltage gain cal.
1007
Write_a16(Reg_offset(15),5)
1008
Write_a16(Reg_offset(18),Gain_con)
1009
Write_a16(Reg_offset(15),2)
1010
Write_a16(Reg_offset(18),Out_val)
1011
Write_a16(Reg_offset(14),0)
2200
Write_a16:SUB Write_a16(INTEGER Register,INTEGER Value).
2201
!
2202
!
2203
Laddr$="09"
2204
OUTPUT 70900;"VXI:WRITE "&Laddr$&","&VAL$(Register)&","&VAL$(Value)
2205
SUBEND
3200
Read_a16:DEF FNRead_a16(INTEGER Register)
3201
!
3202
!
3203
Laddr$="09"
3204
OUTPUT 70900;"VXI:READ? "&Laddr$&","&VAL$(Register)
3205
ENTER 70900; Reading
3206
RETURN Reading
3207
Read_a16_end:FNEND
Appendix B
! A_24 Window Register (Channel 3 DAC and CAL).
! A_24 Window Register (Channel 4 DAC and CAL).
! A_24 Window Register (Channel 5 DAC and CAL).
! A_24 Window Register (Channel 6 DAC and CAL).
! A_24 Window Register (Channel 7 DAC and CAL).
! A_24 Window Register (Channel 8 DAC and CAL).
! A_24 Window Register (Channel 9 DAC and CAL).
! A_24 Window Register (Channel 10 DAC and CAL).
! A_24 Window Register (Channel 11 DAC and CAL).
! A_24 Window Register (Channel 12 DAC and CAL).
! A_24 Window Register (Channel 13 DAC and CAL).
! A_24 Window Register (Channel 14 DAC and CAL).
! A_24 Window Register (Channel 15 DAC and CAL).
! A_24 Window Register (Channel 16 DAC and CAL).
! Map A 24 voltage offset cal registers.
! Get the channel 3 voltage offset cal.
! Map A 24 channel offset registers.
! Put in the offset constant.
! Map A 24 voltage gain cal registers.
! Map A 24 channel gain registers.
! Put in the gain constant.
! Map A 24 channel Main_DAC registers.
! Program the output value.
! Close all output relays.
Agilent E1418A Register-Based Programming
149

Advertisement

Table of Contents
loading

Table of Contents