MEASure:DIGital:DATAn[:type]:BITm?
Returns the value of BIT m of the data for the specified Port n as a signed integer of either +0 or +1.
Parameters
|
|
|
|
Parameter Name | Parameter Type | Range of Values | Default |
|
|
|
|
DATAn | Numeric | 0, 1, 2, or 3 for WORD; 0 or 2 for LWORd |
|
TYPE | discrete | WORD (Ports 0, 1, 2, 3) | Word |
|
| LWORd (for Ports 0 or 2) |
|
BITm | Numeric | 0 - 15 for WORD, 0 - 31 for LWORd | none |
|
|
|
|
|
|
|
|
Comments • For TYPE LWORd, the data from the Channel Data registers for Ports 0 and 1 OR Ports 2 and 3 are combined as a single 32 bit integer. Port 0 is the least significant bits such that bit 0 of Port 0 becomes bit 0 and bit 15 of Port 1 becomes bit 31 of the 32 bit integer. Likewise, Port 2 is the least significant bits such that bit 0 of Port 2 becomes bit 0 and bit 15 of Port 3 becomes bit 31 of the 32 bit integer. The specified Port must be DATA0 or DATA2. Refer to Chapter 2 for more details.
•*RST Condition: sets the input clock source to INTernal and the debounce time to 18.0 μS.
Example MEAS:DIG:DATA3:WORD:BIT 12? | Queries value of Bit 12 in |
| from Port 3 |
MEAS:DIG:DATA 2:LWORD:BIT23? | Queries value of Bit 23 in |
| from Ports 2 and 3 (Bit 7 in Port 3) |
50 HP E1459A SCPI Command Reference