Skip to content

llerussell/paq2py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 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

Contributors 4

  •  
  •  
  •  
  •  

Languages