Digital Input Counter [DiCounter]

Specify the channel that uses the digital input counter function in the "Counter Channel" field,
and set the count match event in the "Count Match Setting" field before starting.
You can start counting with the "Counter Start" button and stop counting with the "Counter Stop" button.

To end the operation, press the "Stop" button.


Front Panel

 

 


Block Diagram

 

 


Sample Explanation

This is a sample dedicated to digital device with counter function.
Click the "Status" button to update "CntStatus" in the "Status" column.

For the meaning of the "CntStatus" value, see "Status VI - ⑥Counter Input" in VI Reference.

Click the "Preset" button to apply the settings in the "Preset Value" column to the count value.

When this sample is used with DIO-0404LY-WQ, DIO-0404LY-WQ does not support count matching, so an error will occur in the "Count Match Setting" VI as it is.
 Please do not run the "Count Match Setting" VI by deleting the "Count Match Setting" VI or by using something like the "Diagram Disable Structure".

This sample can only be used with digital devices equipped with a counter function.
 If you are using a counter device (models starting with "CNT"), please use this sample.