898 Keysight InfiniiVision 4000 X-Series Oscilloscopes Programmer's Guide
31 :SBUS<n> Commands
:SBUS<n>:CAN:TRIGger:PATTern:DATA
(see page 1610)
Command Syntax
:SBUS<n>:CAN:TRIGger:PATTern:DATA <string>
<string> ::= "nn...n" where n ::= {0 |1|X|$}
<string ::= "0xnn...n" where n ::= {0,..,9 | A,..,F | X | $}
The :SBUS<n>:CAN:TRIGger:PATTern:DATA command defines the CAN data
pattern resource according to the string parameter. This pattern, along with the
data length (set by the :SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth command),
control the data pattern searched for in each CAN message.
If the string parameter starts with "0x", it is a hexadecimal string made up of
hexadecimal and X (don't care) characters; otherwise, it is a binary string made up
of 0, 1, and X (don't care) characters.
Query Syntax
:SBUS<n>:CAN:TRIGger:PATTern:DATA?
The :SBUS<n>:CAN:TRIGger:PATTern:DATA? query returns the current settings of
the specified CAN data pattern resource in the binary string format.
Return Format
<string><NL> in nondecimal format
Errors • "-241, Hardware missing" on page 1551
See Also • "Introduction to :TRIGger Commands" on page 1295
• ":SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth" on page 900
• ":SBUS<n>:CAN:TRIGger:PATTern:ID" on page 902
If more bits are sent for <string> than specified by the
:SBUS<n>:CAN:TRIGger:PATTern:DATA:LENGth command, the most significant bits will be
truncated. If the data length is changed after the <string> is programmed, the added or
deleted bits will be added to or deleted from the least significant bits.