Data Logging: Disk Vs Memory
Mostrar comentarios más antiguos
I am having a hard time with different data logging modes during data acquisition. I am using an NI-DAQ PCI-6110E to acquire an analog input signal. I am triggering the acquisition repeatedly on an external digital TTL line connected to the PFI0 input of my DAQ card. I will post my code if there is interest.
The problem I am having is I want to acquire a large amount of data (1MS/sec for 4-6 sec) continuously. I am unable to acquire more than ~2 sec of data using the 'Memory' logging mode, I get a memory error. However, when I try to use the 'Disk' logging mode, my device misses almost 90% of the triggering events I ascribe to it (for example, if I ask the trigger to repeat 1000 times, the trigger will execute 9 or 10 times. If I repeat 2000 times, it executes about 17 or 18 times). The failure of the trigger to repeat occurs both when my TriggerType is Immediate and HWDigital signal. I do not get any run time errors in the Event Log. Any advice?
5 comentarios
Walter Roberson
el 21 de Sept. de 2011
How large is a sample? Is it a single channel or multiple? Are you logging time stamps or are you letting the time be implicit?
Ted
el 23 de Sept. de 2011
Walter Roberson
el 23 de Sept. de 2011
Could you calculate the disk space used per event logged? I am trying to get an estimate of how much memory you are using up per second. At the moment my estimate is that you would be using only on the order of 20 megabytes per second, which should be simple to sustain for the time you need.
Ted
el 23 de Sept. de 2011
Walter Roberson
el 23 de Sept. de 2011
144 megabytes should not be a problem on any system with 3 Gb or more of RAM (as a rough estimate.) Though depending on exactly how it stores the data and exactly how it grows the buffer, it could temporarily need that much more. I definitely would not expect problems at ~100 megabytes unless your RAM is fairly limited and you do not have virtual swap space configured.
Respuestas (0)
Categorías
Más información sobre Data Acquisition Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!