Datasheet
Table Of Contents
Measurement Computing (508) 946-5100
3
info@mccdaq.com mccdaq.com
MCC 134
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++)
The compiled console example reads and displays the value of
each thermocouple channel in a software timed loop.
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).
Remotely monitor acquired data from your browser
Continuously read and display the value of each thermocouple input
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 acquires data from the MCC 134, dis-
plays the data on a strip chart, and logs 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
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. An
IFTTT account is required.
The DAQ HAT Library includes two IFTTT example programs
written for Python (source included):
• The logging example reads one channel at regular intervals
and writes the data to a Google Sheets spreadsheet. Users
can remotely monitor the spreadsheet from Google Drive
(shown below).
• The alarm example monitors one channel and sends an
email if the channel value meets specified criteria.