Sample Programs

Basic usage and frequently used techniques are provided as sample programs.
The sample program has been created as simple as possible, so please use it when programming.

Folder structure

The sample program folder is configured as follows in the location where API-CNT(LNX) is installed.

 User Directory/contec/ccnt

     |

     |________ samples

               |

               |________ jp

                         |

                         |________ inc                 Include file for each language

                         |

                         |________ gcc                 gcc samples

                         |         |________ console       Console samples

                         |

                         |________ python              python samples

                                   |________ console       Console samples

 

In the folder of each language above, sample programs are stored in the following configuration.

 gcc sample folders

     |

     |________ console

               |

               |________ Counter                       Counter Samples

               |         |

                         |________ counter                 Usual Counter Sample

               |         |________ advancedcounter         High-performance Counter Sample

               |         |________ timer                   Timer Sample

               |

               |________ Sampling                      Sampling Samples

                         |

                         |________ infinite                Infinite Sampling Sample

                         |________ sampling                Sampling Sample

 

 python sample folders

     |

     |________ console

               |

               |________ Counter                       Counter Samples

               |         |

                         |________ counter                 Usual Counter Sample

               |         |________ advancedcounter         High-performance Counter Sample

               |

               |________ Sampling                      Sampling Samples

                         |

                         |________ infinite                Infinite Sampling Sample

                         |________ sampling                Sampling Sample

 

Please refer to the following links for details of each sample.

Counter Samples

Counter sample for devices with usual counter

Counter sample for devices with high-performance counter

Timer sample

Sampling Samples

Sampling sample

Infinite Sampling sample