Enable <Nrf - Keithley 2002 User Manual

Hide thumbs Also See for 2002:
Table of Contents

Advertisement

IEEE-488 Reference
3.20.2
Parameters
Query
Description
Program fragment
3-122
:ENABle <NRf>
:STATus:MEASurement:ENABle <NRf>
:STATus:QUEStionable:ENABle <NRf>
:STATus:OPERation:ENABle <NRf>
:STATus:OPERation:TRIGger:ENABle <NRf>
:STATus:OPERation:ARM:ENABle <NRf>
:STATus:OPERation:ARM:SEQuence:ENABle <NRf>
<NRf> = 0
Clear register
1
Set bit B0
2
Set bit B1
4
Set bit B2
8
Set bit B3
16
Set bit B4
32
Set bit B5
64
Set bit B6
:ENABle? Query enable register
These commands are used to set the contents of the event enable registers (see Figures 3-27
through 3-32). An :ENABle command is sent with the decimal equivalent of the binary value
that determines the desired state (0 or 1) of each bit in the appropriate register.
Each event enable register is used as a mask for events (see [:EVENt] for descriptions of events).
When a bit in an event enable register is cleared (0), the corresponding bit in the event register
is masked and thus, cannot set the corresponding summary bit of the next register set in the sta-
tus structure. Conversely, when a bit in an event enable register is set (1), the corresponding bit
in the event register is unmasked. When the unmasked bit in the event register sets, the summary
bit of the next register set in the status structure will set.
The decimal weighting of the bits for each event enable register are included in Figures 3-27
through 3-32. The sum of the decimal weights of the bits that you wish to set is sent as the
parameter (<NRf>) for the appropriate :ENABle command. For example, to set the BFL and
RAV bits of the Measurement Event Enable Register, send the following command:
:stat:meas:enab 544
where; BFL (bit B9) = Decimal
RAV (bit B5) = Decimal
<NRf> =
PRINT #1, "output 16; :stat:oper:enab 514; enab?"
PRINT #1, "enter 16"
Program Measurement Event Enable Register
Program Questionable Event Enable Register
Program Operation Event Enable Register
Program Trigger Event Enable Register
Program Arm Event Enable Register
Program Sequence Event Enable Register
<NRf> = 128
256
512
1024
2048
16384
65535
= 512
=
32
= 544
Set bit B7
Set bit B8
Set bit B9
Set bit B10
Set bit B11
Set bit B14
Set all bits
' Set B1 and B9 of Op Enable
Register and query
' Get response message from
2002

Advertisement

Table of Contents
loading

Table of Contents