All Projects → mccdaq → uldaq

mccdaq / uldaq

Licence: MIT License
MCC Universal Library for Linux

Programming Languages

c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to uldaq

syntalos
Flow-based synchronized parallel DAQ from diverse sources and flexible control for neuroscience experiments
Stars: ✭ 13 (-81.43%)
Mutual labels:  data-acquisition
counters
A GoLang implementation of counters.
Stars: ✭ 15 (-78.57%)
Mutual labels:  counter
dvbcss-synctiming
Measuring synchronisation timing accuracy for DVB Compainion Screen Synchronisation TVs and Companions
Stars: ✭ 17 (-75.71%)
Mutual labels:  measurement
jeelizPupillometry
Real-time pupillometry in the web browser using a 4K webcam video feed processed by this WebGL/Javascript library. 2 demo experiments are included.
Stars: ✭ 78 (+11.43%)
Mutual labels:  measurement
tm
timers and timeline
Stars: ✭ 31 (-55.71%)
Mutual labels:  counter
antares
Digital circuit learning platform
Stars: ✭ 15 (-78.57%)
Mutual labels:  digital
CounterView
一个数字变化效果的计数器视图控件
Stars: ✭ 38 (-45.71%)
Mutual labels:  counter
DTMF-Decoder
A Java program to implement a DMTF Decoder.
Stars: ✭ 28 (-60%)
Mutual labels:  digital
commonpp
Small library helping you with basic stuff like getting metrics out of your code, thread naming, etc.
Stars: ✭ 29 (-58.57%)
Mutual labels:  counter
Social-Media-Monitor
Automatically monitor and log fan counters from social media(Facebook Pages, Twitter, Instagram, YouTube, Google+, OneSignal, Alexa) using APIs to Google Spreadsheet. Very useful for website admins and social media managers.
Stars: ✭ 36 (-48.57%)
Mutual labels:  counter
PCF8575 library
Library to use i2c digital expander with arduino, esp8266 and esp32. Can read write digital value with only 2 wire (perfect for ESP-01).
Stars: ✭ 28 (-60%)
Mutual labels:  digital
sto
Software Transactional Objects
Stars: ✭ 40 (-42.86%)
Mutual labels:  measurement
Click-Counter-Bot
A telegram bot module for how to count total clicks on button.
Stars: ✭ 23 (-67.14%)
Mutual labels:  counter
pageviews
A simple and lightweight pageviews counter for your WordPress posts and pages.
Stars: ✭ 23 (-67.14%)
Mutual labels:  counter
transform-hub
Flexible and efficient data processing engine and an evolution of the popular Scramjet Framework based on node.js. Our Transform Hub was designed specifically for data processing and has its own unique algorithms included.
Stars: ✭ 38 (-45.71%)
Mutual labels:  data-acquisition
inspector-metrics
Typescript metrics / monitoring library
Stars: ✭ 19 (-72.86%)
Mutual labels:  counter
DABDUINO
The DABDUINO is DAB/DAB+/FM Arduino shield with 32-bit, 384kHz PCM DAC (cinch) + Toslink optical digital audio output.
Stars: ✭ 34 (-51.43%)
Mutual labels:  digital
csgo richpresence
Discord Rich Presence support for Counter-Strike: Global Offensive!
Stars: ✭ 16 (-77.14%)
Mutual labels:  counter
qloud
Tool to measure loudspeaker frequency and step responses and distortions
Stars: ✭ 20 (-71.43%)
Mutual labels:  measurement
codec2 talkie
Turn your Android phone into Codec2 Walkie-Talkie (Bluetooth/USB/TCPIP KISS modem client for DV digital voice communication)
Stars: ✭ 65 (-7.14%)
Mutual labels:  digital

MCC Universal Library for Linux (uldaq)

Coverity Scan Build Status

Info: Contains a library to access and control supported Measurement Computing DAQ devices over the Linux and macOS platforms. The UL for Linux binary name is libuldaq.

Author: Measurement Computing

About

The uldaq package contains programming libraries and components for developing applications using C/C++ on Linux and macOS Operating Systems. An API (Application Programming Interface) for interacting with the library in Python is available as an additional installation. This package was created and is supported by MCC.

Prerequisites:


Building the uldaq package requires C/C++ compilers, make tool, and the development package for libusb. The following describes how these prerequisites can be installed on different Linux distributions and macOS.

  • Debian-based Linux distributions such as Ubuntu, Raspbian
   $ sudo apt-get install gcc g++ make
   $ sudo apt-get install libusb-1.0-0-dev
  • Arch-based Linux distributions such as Manjaro, Antergos
   $ sudo pacman -S gcc make
   $ sudo pacman -S libusb
  • Red Hat-based Linux distributions such as Fedora, CentOS
   $ sudo yum install gcc gcc-c++ make
   $ sudo yum install libusbx-devel
  • OpenSUSE
   $ sudo zypper install gcc gcc-c++ make
   $ sudo zypper install libusb-devel
  • macOS (Version 10.11 or later recommended)
   $ xcode-select --install
   $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
   $ brew install libusb

Build Instructions


  1. Download the latest version of uldaq:
  Linux
     $ wget -N https://github.com/mccdaq/uldaq/releases/download/v1.2.0/libuldaq-1.2.0.tar.bz2

  macOS
     $ curl -L -O https://github.com/mccdaq/uldaq/releases/download/v1.2.0/libuldaq-1.2.0.tar.bz2
  1. Extract the tar file:
  $ tar -xvjf libuldaq-1.2.0.tar.bz2
  1. Run the following commands to build and install the library:
  $ cd libuldaq-1.2.0
  $ ./configure && make
  $ sudo make install

Note: To install the Python interface, follow the above build instructions then go to https://pypi.org/project/uldaq/ for further installation.

Examples

The C examples are located in the examples folder. Run the following commands to execute the analog input example:

  $ cd examples
  $ ./AIn

Refer to the uldaq PyPI page for instructions on installing Python examples.

Usage

The following is a basic C example of using the Universal Library for Linux to perform analog input. Further examples are available in the Examples folder.

#include <stdio.h>
#include "uldaq.h"

#define MAX_DEV_COUNT  100
#define MAX_STR_LENGTH 64

int main(void)
{
	unsigned int numDevs = MAX_DEV_COUNT;
	DaqDeviceDescriptor devDescriptors[MAX_DEV_COUNT];
	DaqDeviceHandle handle = 0;

	int chan = 0;
	double data = 0;
	UlError err = ERR_NO_ERROR;

	// Get descriptors for all of the available DAQ devices
	ulGetDaqDeviceInventory(ANY_IFC, devDescriptors, &numDevs);
	
	// verify at least one DAQ device is detected
	if (numDevs)
	{
		// get a handle to the DAQ device associated with the first descriptor
		handle = ulCreateDaqDevice(devDescriptors[0]);

		// check if the DAQ device handle is valid
		if (handle)
		{
			// establish a connection to the DAQ device
			err = ulConnectDaqDevice(handle);

			// read data for the first 4 analog input channels
			for (chan = 0; chan <= 3; chan++)
			{
				err = ulAIn(handle, chan, AI_SINGLE_ENDED, BIP5VOLTS, AIN_FF_DEFAULT, &data);

				printf("Channel(%d) Data: %10.6f\n", chan, data);
			}

			ulDisconnectDaqDevice(handle);
			ulReleaseDaqDevice(handle);
		}
	}

	return 0;
}

Uninstall Instructions

Run the following command to uninstall the library

  $ sudo make uninstall

Support/Feedback

The uldaq package is supported by MCC. For support for uldaq, contact technical support through support page. Please include detailed steps on how to reproduce the problem in your request.

Documentation

Online help for the Universal Library for Linux is available for C/C++ and Python.

If Doxygen is installed and you wish to build the API documentation on your system, run the following commands:

  $ cd doc
  $ doxygen Doxyfile

Changelog

The changelog for this project can be found here

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].