Function Reference 161
imc CANSAS Users Manual - Doc. Version 1.9 - 05.12.2014© 2014 imc Meßsysteme GmbH
4.10.34 LED-flash
Result channel pulse rate
Number of pulses during which the function returns 1 (TRUE) as the result,
Value range: 0 ... 60000.
Number of pulses during which the function returns 0 (FALSE) as the result,
Value range: 0 ... 60000.
Channel containing results of the LED-flashing function.
Description: By assigning the function to an LED, the LED's flashing pattern can be set. At the pulse rate
specified, the LED shines during the number of pulses specified for "LED on" and stays off during the
number of pulses specified for "LED off", if the specified condition is met. Otherwise, the LED is off
altogether.
If the condition 'Flash' is set, Parameters 2 and 3 are evaluated in the manner described; the channel
data value is 1 (TRUE) during the pulses for which "LED on" is specified, and for the other pulses the
return value is 0 (FALSE). If the function is applied to an LED, the LED will flash correspondingly.
If the condition 'Flash for Overflow' is set, Parameters 2 and 3 are evaluated in the manner described
only if the CANSAS module FIFO's overflow (and thus the module is overloaded); in such a case, some
data will not be processed or transferred via the CAN-bus. Otherwise, the function's return value is 0
(FALSE). If the function is applied to an LED, LED flashing indicates system overload.
Notes: The function can also be used to generate a rectangular signal. For this purpose, the LED-flash
function must be assigned to a virtual channel. The result channel can be re-scaled if appropriate.
Data types:
4.10.35 Less
Channel whose sample values are to be compared with the appropriate value from
the 2nd parameter
Channel whose samples are to be compared with the corresponding values from the
1st parameter or
numerical value with which the sample values of the 1st parameter are to be
compared
Digital channel; result value is respectively
TRUE (1), if 1st parameter value < 2nd parameter value
FALSE (0), if 1st parameter value 2nd parameter value