Skip to content

C++ programs for reading from an 8-channel hydrophone using the cDAQ-9136

License

Notifications You must be signed in to change notification settings

halaney/cdaq-9136

Repository files navigation

Overview

The purpose of this project is to read data from an 8-channel hydrophone using the cDAQ-9136 and NI-9223. The device will be running "headless" on a kayak. This is achieved through two separate programs, ConfigWriter and reader. ConfigWriter updates the config file used by reader. reader waits until the given start time and records data based on the config file. The reader program currently runs as an init process (therefore reader starts at power-up).

Basic Usage

Below is an example of how to use the two programs

  1. SSH into the cDAQ-9136 and login
  2. To update the configuration for recording use the ConfigWriter program
    ConfigWriter
  3. To reload the configuration used by reader either restart the machine or use
    reader-daemon restart
    This just stops and starts the reader program
  4. Optionally you can just run the reader program with default settings (500 kHz samping rate, record for 5 minutes, starting 2 minutes in the future) like so
    reader-daemon stop
    reader --quick
  5. Once the reader program has recorded the data its output will be stored in /home/admin/reader/output/. It can be retrieved using a SFTP client such as Filezilla. Be sure to delete the files after retrieving them to free up space

More details can be found in UserGuide.txt

Project Setup for Development

To setup the project for development use the following link: https://forums.ni.com/t5/NI-Linux-Real-Time-Documents/Example-Using-the-DAQmx-API-on-NI-Linux-Real-Time-Systems/ta-p/3536811

Some other useful links: http://www.ni.com/product-documentation/2835/en/ http://zone.ni.com/reference/en-XX/help/370471AA-01/ http://forums.ni.com/t5/NI-Linux-Real-Time-Documents/Tutorial-Installing-Startup-Scripts-on-NI-Linux-Real-Time/ta-p/3527257

Refer to DeveloperGuide.txt for more information

About

C++ programs for reading from an 8-channel hydrophone using the cDAQ-9136

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published