NIHSDIO_ATTR_PATTERN_MATCH_REF_TRIGGER_PATTERN

NI Digital Waveform Generator/Analyzer

NIHSDIO_ATTR_PATTERN_MATCH_REF_TRIGGER_PATTERN

Specific Attribute

Data
type
Access Applies to Coercion High-Level Functions
ViString R/W N/A None niHSDIO_ConfigurePatternMatchRefTrigger

Description

Sets the pattern match mask for the Reference trigger. This attribute is used when NIHSDIO_ATTR_REF_TRIGGER_TYPE is set to NIHSDIO_VAL_PATTERN_MATCH.

The pattern is a string of characters representing the entire pattern to be matched on. Each character corresponds to a particular channel.

  • 'X': Match on any value
  • '1': Match on a logic 1
  • '0': Match on a logic 0
  • R or r: Match on a rising edge
  • F or f: Match on a falling edge
  • E or e: Match on either edge

Spaces are ignored, and are useful for readability to segment long patterns. The rightmost character in the expression corresponds to the lowest numbered physical channel. For example, XXXX XXXX XXXX 1111 1100 specifies to match when channels 0 and 1 are '0' and channels 2-7 are '1'. The values seen by pattern matching are affected by NIHSDIO_ATTR_DATA_INTERPRETATION.

This attribute is valid only for acquisition sessions.