Skip to content
/ paq2py Public
forked from llerussell/paq2py

Read paq file (from PackIO) into python

Notifications You must be signed in to change notification settings

m-beau/paq2py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

paq2py

PackIO, a National Instruments DAQ interface written by Adam Packer is used to synchronise and record inputs and outputs from multiple National Instruments devices. The recorded data is saved as binary 'PAQ' files. This python module reads in PAQ files and returns the data as a channel-by-samples numpy array. Channel names, hardware lines and acquisition settings are also returned.

dependencies

  • numpy
  • matplotlib (optional)

install

cd ~
git clone https://github.com/llerussell/paq2py.git
cd paq2py
python setup.py build
sudo python setup.py install
cd ~

example usage

import paq2py

input_path = '/path/to/paqfile.paq'
paq = paq2py.paq_read(input_path, plot=True)

# channel 0 name
paq['chan_names'][0]

# channel 0 data
paq['data'][0]

# acquisition rate (Hz)
paq['rate']

About

Read paq file (from PackIO) into python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%