. |
Counter Mechaware API Documentation > Logic
OverviewOverviewDescription The Counter block counts up or down when the input transitions from 0 to 1 (non-zero). The Up/Down input determines whether the counter increments (Up/Down = 0) or decrements (Up/Down non-zero) at the transition. A non-zero value at the Clear input holds the counter at zero. Example
The configuration values for this block are as follows:
Matlab/SimulinkSimulink InterfaceThe Counter block counts up or down when the input transitions from 0 to 1 (non-zero). The Up/Down input determines whether the counter increments (Up/Down = 0) or decrements (Up/Down non-zero) at the transition. A non-zero value at the Clear input holds the counter at zero. The block has two user data fields (User Data 0, User Data 1) to store application-specific data for convenient storage and retrieval. For more information, see User Data Storage. The block's update schedule is determined by the Evaluate Block. The following Parameter Dialog Box can be opened by double-clicking on the block in a Simulink model:
C++ APICOUNTERBlockDeclaration Public Method
Description The Counter block counts up or down when the input transitions from 0 to 1 (non-zero). Methods
|
| | Copyright © 2001-2012 Motion Engineering |