CTI Software Libraries Code Samples

This page is continually revised with new examples, please check back frequently.


A note on the Excel samples: When opening the spreadsheets, Excel may display a warning that they contain macros. This refers to the Visual Basic for Applications (VBA) code that communicates with the sensor. The sample spreadsheets do not contain any harmful macros, and may be opened safely.

Hello_World

The classic "Hello World" program - the simplest possible program that communicates with the sensor, acquires data and prints that data. C Source code.    C++ Source code.    Excel spreadsheet example

Thickness Measurement (Runnable example!)

These examples demonstrates using two AR600 sensors to measure the thickness of materials.
Please read the Application Note before downloading these examples.

The Visual Basic example can be run without using any sensor hardware, and simulates how thickness can be measured and logged to a Microsoft Access database. The C++ example is more involved, and demonstrates some of the programming techniques used. To compile the C++ sample code, you will need to download both AR600_Thickness_Demo.zip and MFC_Ctrls.zip

BaudRate

This program demonstrates querying the sensor's firmware version, as well as changing the baud rate of the serial communications link with the sensor. C Source code.    C++ Source code.   

Callback

Demonstrates using the library's callback functionality to efficiently acquire samples and write the data to a disk file. C Source code.    C++ Source code.

Filtering

Demonstrates using the library's filtering functions to discard samples outside of a specified range. C Source code.    C++ Source code.

Two Sensors

Demonstrates demonstrates acquiring and displaying range data from two sensors C Source code.    C++ Source code.