Infinite Sampling Sample [infinite]


■Appearance

 

■Overview

This is a sample that performs repeated sampling transfers using the counter function for devices equipped with the high-performance counter.
If you want to perform a single sampling transfer, please refer to Sampling Sample.

When viewing/changing the source code for Infinite Sample, please refer to [Flow Chart for Sampling Mode].

This sample program requires use with a high-performance counter type device.
To check the counter type of the device you are using, please refer to [Counter Type Specifications].

This sample program uses callback functions for event processing.

 

■Explanation

Input the number in the menu list to select a menu.
The menu is arranged by executing sequence.
The sampling data is written to "infinite.txt".
The data is appended into this file.

 

■Supplement

"Overrun Error!" may be displayed in transferring.
This means that the buffer has been overwritten at least once since the last time "CntGetSamplingCount()" was executed, and the data is invalid.
Data transfer is continuing, but data are not written to file.
In this case, please try to increase the buffer size.

 

■Execution example

py infinite.py