Configuration of the Main Type in Frequency Meter Mode
Step |
Action |
---|---|
1 |
In the Devices tree, double-click Embedded Functions > HSC. |
2 |
Select value Main in the HSC0• > Type field. |
3 |
The instance of the Main type is created, you can rename it from the Variable field. |
4 |
Set the mode to Frequency meter from the HSC0• > Parameters > Mode drop down menu. |
5 |
Set the time base value from Parameters > Time drop down menu. |
6 |
Set the anti-bounce filter value from the HSC0• > Clock Inputs > A Filter drop down menu. |
Click the IO Summarize... button to display the input and output assignments.
Refer to the hardware guide for wiring details.
The filtering value on the Main type input determines the counter maximum frequency as shown in the table:
Input |
Filter value |
Maximum counter frequency |
---|---|---|
A |
4 µs |
50 kHz |
40 µs |
14.5 kHz |