4.75

4.8 | 4 ratings Rate this file 49 downloads (last 30 days) File Size: 221.02 KB File ID: #14562

Load BIOPAC ACQ (AcqKnowledge for PC) data

by Jimmy Shen

 

09 Apr 2007 (Updated 11 Mar 2010)

Code covered by the BSD License  

Load BIOPAC's *.acq file (AcqKnowledge for Windows data format).

Download Now | Watch this File

File Information
Description

"load_acq.m" will load BIOPAC's AcqKnowledge (ACQ) data to a structure containing ACQ header field and data matrix field.

It is based on Application Note #156 from BIOPAC web site (see attachment), and this version can support up to version 3.9.0 of AcqKnowledge that was released on February 23, 2007.

If "force_chan_by_chan_load" is set to 0, the program will read data depending on the data type in ACQ data. In that case, if the program detects that data type in ACQ file is different from channel to channel, it will have to read data "channel by channel"; otherwise, it will read the whole data in one block (6 times faster than using traditional way from channel to channel with the same result). However, by default, the "force_chan_by_chan_load" option will be set to 1, which means that it only reads data channel by channel if there is no option flag. This is because that we want to prevent out of memory problem when loading very large ACQ data file.

If the program detects that the ACQ data contains different sample dividers, it will have to read data "sample by sample" (very slow).

A script called "acq2mat.m" is provided to help you convert all .acq files to .mat files in all specified folders in advance, since to load corresponding .mat files will be much quicker.

i.e. In your MATLAB code, instead of using: acq = load_acq('MyGSR.acq'); you can now use: acq = load('MyGSR.mat');

Acknowledgements
This submission has inspired the following:
ACQREAD
MATLAB release MATLAB 5.3.1 (R11.1)
Zip File Content  
Other Files acq2mat.m,
app156.pdf,
license.txt,
load_acq.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
28 Jul 2007 Aida Jimenez-Gonzalez  
10 Oct 2007 boris fain

Thank you, works great.

08 Nov 2007 Wojtek Grabski

Works.

01 May 2008 Antonio Molins

Did not work for me as provided, but worked with significant changes: halted before getting to the foreign data section (missed it by 2 bytes), and did not read markers and positions. A new version has been offered to the author, and is available on request.

02 May 2008 Alpesh Patel  
Please login to add a comment or rating.
Updates
13 Apr 2007

Added rgb_color interpretation, and modified description.

23 Apr 2007

Added "force_chan_by_chan_load" option and set it to 1 by default to prevent out of memory problem when loading huge ACQ data

07 May 2007

Thanks to the bug report from Stefan Schumann in University of Freiburg, now my load_acq supports new versions of data with different sample dividers.

22 May 2007

Thanks to Aida Jimenez in University of Southampton, I fixed a bug when reading AcqKnowledge version 3.5 and earlier.

01 Aug 2007

Modify on 31-JUL-2007 by Julio Cruz (julio.cruz@juliocruz.info) to make the program also work on MAC OS.

02 May 2008

Thanks Antonio Molins (amolins@mit.edu) for the changes he made (all comments started with "AM").

02 May 2008

don't know why zip file on fileexchange is still old. upload the new one again.

10 Jun 2008

Found '&&' in last update, which cannot run under Matlab5. It has been fixed in 'load_acq_20080609.zip'.

11 Jun 2008

Script "acq2mat.m" is provided to help you convert all .acq files to .mat files in all specified folders in advance.

09 Jun 2009

Fixed a bug when you use it with Matlab 6.5 and earlier.

11 Mar 2010

Fixed a bug in acq2mat.m script.

Tag Activity for this File
Tag Applied By Date/Time
medical Jimmy Shen 22 Oct 2008 09:08:13
biopac acqknowledge Jimmy Shen 22 Oct 2008 09:08:13
acq Jimmy Shen 22 Oct 2008 09:08:13
eeg Jimmy Shen 22 Oct 2008 09:08:13
file Jimmy Shen 22 Oct 2008 09:08:13
data Jimmy Shen 22 Oct 2008 09:08:13
format Jimmy Shen 22 Oct 2008 09:08:13
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com