
Function Library
61
5.8
Linear Comparing
@ Name
@ Description
_8124_set_linear_compare:
This function is used to configure the linear comparing trigger
function. Before using linear comparing function, you should
enable the source of PWM from linear function by
“_8124_set_pwm_source”. PCI-8124 has 10 linear sets can be
used for linear and they can be compared with any counter
arbitrarily. Every set has 3 parameters including starting point
(StartPoint), repeat times (RepeatTimes) and trigger interval
(Interval). The total trigger pulse would be (Repea 1)
times. For example, if you set the RepeatTimes as 10, the total
output pulse will be 11. The follow formula is show that how do
you calculate the next triggering position.
X
Next triggering position = Star Interval x N
X
N: triggered times, ( N
≤
RepeatTimes)
The Interval can be set as a negative value. The comparing
direction is depending on the signed of Interval. Moreover, if
RepeatTimes is set to 0, the linear comparing will not stop until
stopping counting or reset the linear function.
_8124_set_linear_source:
There are 10 linear sets in PCI-8124. Use this function to
assign which sets will be used in the specified trigger channel.
One trigger channel can have more then one linear set.
_8124_set_linear_compare
Set the linear comparing function
_8124_set_linear_source
Set the trigger output sources for linear
functions
_8124_enable_linear_set
Enable/Disable the linear set
Summary of Contents for PCI-8124
Page 5: ......
Page 17: ...8 Introduction ...
Page 30: ...Signal Connections 21 Outside PCI 8124 inside PCI 8124 TRGx 220Ω ...
Page 33: ...24 Signal Connections ...
Page 49: ...40 Operation Theory ...
Page 72: ...Function Library 63 I16 Enable Enable Disable linear set X 0 disable 1 enable ...
Page 83: ...74 Function Library ...