■Appearance

This is a sample that performs a single sampling transfer using the counter function for devices equipped with the high-performance counter.
If you want to perform repeated transfers, please refer to Infinite Sampling Sample.
When viewing/changing the source code for Sampling 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 are written to "sampling.txt".
■Execution example
py sampling.py