[SENSe:]DIGital:MEMory:MATCh[:DATA]?
Syntax
[SENSe:]DIGital:MEMory:MATCh[:DATA]? (@<ch_list>)
Description
This command performs a non-destructive read of the triggering pattern that started a buffered input operation on the 34950A Digital I/O Module. The response from this command is valid only if a start-on-pattern-match trigger has occurred (see [SENSe:]DIGital:MEMory:COMPare:ACTion command).
Used With:
34950A Digital I/O Module
Parameters
Name |
Type |
Range of Values |
Default Value |
<ch_list> |
Numeric |
The first channel on a bank in the form (@sccc).
|
This is a required parameter |
Remarks
Depending on the width specified (see CONFigure:DIGital:WIDTh command), the channel numbering is modified as shown below. For example, if you specify the width as a 16-bit WORD, channels 101 and 102 are combined and addressed collectively as channel 101.
|
Bank 2 |
Bank 1 |
||||||
BYTE (8 Bits): |
Ch 204 |
Ch 203 |
Ch 202 |
Ch 201 |
Ch 104 |
Ch 103 |
Ch 102 |
Ch 101 |
WORD (16 Bits): |
Ch 203 |
Ch 201 |
Ch 103 |
Ch 101 |
||||
LWORd (32 Bits): |
Ch 201 |
Ch 101 |
To read a specific number of samples in memory from a buffered input operation, use the [SENSe:]DIGital:MEMory[:DATA]? command. Note that the response from this command does not return the triggering pattern.
To read all data stored in memory from a buffered input operation, use the [SENSe:]DIGital:MEMory[:DATA]:ALL? command. Note that the response from this command does not return the triggering pattern.
To clear the memory, use the [SENSe:]DIGital:MEMory:CLEar command.
Return Format
This command returns the triggering pattern that started a buffered input operation.
Example
The following program segment sets the digital pattern for the module in slot 3 and then enables the pattern comparison mode. When the data read from the bank is equal to the comparison pattern, a buffered read is initiated. In this example, handshaking is not used.
CONF:DIG:WIDTH
BYTE,(@3101,3201) !Width
= 8 bits
CALC:COMP:DATA:BYTE 140,(@3101,3201) !Set
comparison pattern (1000 1100)
CALC:COMP:STAT ON,(@3101,3201) !Enable
pattern comparison mode
DIG:MEM:SAMP:COUN 200,(@3101,3201) !Sample
count = 200
DIG:MEM:ENAB ON,(@3101,3201) !Enable
buffered reads
DIG:MEM:COMP:ACT STAR,(@3101,3201) !Start
buffered read upon match
<Wait for pattern match>
DIG:MEM:MATC? (@3101,3201) !Read
triggering pattern
Typical Response: 140,140
See Also
[SENSe:]DIGital:MEMory:COMPare:ACTion