| MATLAB Central > MATLAB Newsreader > NI-DAQ: 12 bits saved as double? |
|
|
|
Subject: NI-DAQ: 12 bits saved as double? From: Kristian Nielsen Date: 6 Jan, 2009 11:35:04 Message: 1 of 7 |
|
I have made some Matlab software for recording from National Instrument DAQ boards and saving data to disk. I record up to 10 channels at 20KHz over up to ? hour. The files becomes >1 gb, which makes working with them slow. |
|
Subject: NI-DAQ: 12 bits saved as double? From: Kristian Nielsen Date: 15 Jan, 2009 13:32:01 Message: 2 of 7 |
|
An update: |
|
Subject: NI-DAQ: 12 bits saved as double? From: Sherryl Radbil Date: 16 Jan, 2009 13:25:11 Message: 3 of 7 |
|
Hi Kristian, |
|
Subject: NI-DAQ: 12 bits saved as double? From: Kristian Nielsen Date: 16 Jan, 2009 15:05:04 Message: 4 of 7 |
|
Hi Sherryl, |
|
Hi, I just ran into a similar problem. I'm sampling the outputs of photomultiplier tubes of an astronomical instrument at 4 MHz with a 16 bit NI DAQ board. Since I'm sampling 4 channels simultaneously, I should end up with 100 GB/hour of data. Saving 16 bit data as a 64 bit double is obviously a problem, as 400 GB/hour is excessive. NI has told me that they can stream int16 values at the expected rate through LabView, so why is it that Matlab is only able to use doubles? |
|
Hi Kristian - I noticed this problem with the slowness of the daqread command (when I started developing a daq-file-reading GUI with a 370 Mb data file as my test subject). |
|
I posted a copy of the improved version of daqread on the File Exchange. Please note (in my comments on the file) that it has not been tested for all types of .daq files. |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| daqread | Gary | 16 Apr, 2010 14:59:08 |
| bitspersample | Kristian Nielsen | 6 Jan, 2009 06:40:04 |
| nativedatatype | Kristian Nielsen | 6 Jan, 2009 06:40:04 |
| national instru... | Kristian Nielsen | 6 Jan, 2009 06:40:04 |
| daq | Kristian Nielsen | 6 Jan, 2009 06:40:04 |
Contact us at files@mathworks.com
