Datasheet
Table Of Contents
Measurement Computing (508) 946-5100
3
info@mccdaq.com mccdaq.com
MCC 118
Example Programs
MCC DAQ HAT Examples
The MCC DAQ HAT Library includes example programs
developed in C/C++ and Python that users can run to become
familiar with the DAQ HAT library and boards; source code is
included.
Console-Based (C/C++ and Python)
Console-based examples are provided that demonstrate how to
perform continuous and finite scans, trigger an acquisition, and
synchronously acquire data from multiple DAQ HATs (source
included). The continuous_scan example is shown here.
Display the value of each input channel in a terminal window
User Interface
Example programs featuring a user interface are provided in
different formats. Examples of each are shown here.
DataLogger (C/C++)
The datalogger example shows how to acquire data from the
MCC 118, display the data on a strip chart, and log the data to
a CSV file. This example can be run from the terminal.
Configure options, plot data on a strip chart, and log data to a file
Web Server (Python)
The web server example lets users configure acquisition options
and view acquired data from a browser window. This example
is written for Python (source included).
Configure options and view strip chart data from your browser
IFTTT Applet (Python)
IFTTT (If This Then That) is a free web-based service that inter-
acts with apps and hardware to automate various functions. The
IFTTT DAQ HAT example reads two MCC 118 channels at regular
intervals, and writes the data to a Google Sheets spreadsheet.
Users can remotely monitor the spreadsheet from Google Drive.
An IFTTT account is required. This example is written for Python
(source included).
View logged data on a Google Sheets spreadsheet from your browser