beautypg.com

Measurement Computing ADAC-LVi User Manual

Page 70

background image

Chapter 2 Digital I/O VIs

ADAC LabVIEW VI

64

$'$& &RQILJ FRQ¶W

Pattern Transition The PatternPolarity, PatternTransition and
PatternMask define the match condition for the Port Mode
Specification AND / OR modes.
For example one can define a match condition as bit 1, bit 2 and bit 3
all set = "1" as a valid match (AND mode) by setting the following.

Port Mode Specification = AND
PatternPolarity = (b) 1110
PatternTransition = (b) 0
PatternMask = (b) 1110

Alternately, one can define a match condition as any one or more of bit
1, bit 2 and bit 3 having set = "1" by changing the Port Mode
Specification to OR mode.

PM(n) PT(n) PP(n) Pattern Match Bit Definitions
0 0 0 or 1 Bit Masked Off
0 1 0 or 1 Any Transition
1 0 0 ZERO
1 0 1 ONE
1 1 0 ONE to ZERO Transiton
1 1 1 ZERO to ONE Transition

For detailed definitions see the 5600 manuals ADVANCED
PROGRAMMING TECHNIQUES. When the PortResolution=16,
PatternPolarity, PatternTransition and PatternMask are set in WORDs
b(1111111111111111).

Pattern Mask The PatternPolarity, PatternTransition and PatternMask
define the match condition for the Port Mode Specification AND / OR
modes.

For example one can define a match condition as bit 1, bit 2 and bit 3
all set = "1" as a valid match (AND mode) by setting the following.

Port Mode Specification = AND
PatternPolarity = (b) 1110
PatternTransition = (b) 0
PatternMask = (b) 1110

Alternately, one can define a match condition as any one or more of bit
1, bit 2 and bit 3 having set = "1" by changing the Port Mode
Specification to OR mode.