Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

nidaqmx real time vibration data

Hello,

 

I am using cDAQ 9178 and gathering vibration data from 6 accelerometers. I am using nidaqmx in python and need to record data in real time. Currently, I am using task.timing.cfg_samp_clk() with sampling rate equal to samplers per channel so I would get a collection of readings per second. 

 

However, when the longer I set my expected data acquisition time the longer the time it takes to run my script. For example,  running the script for 60 seconds takes ~74 seconds to complete. I moved away from appending numpy arrays to preallocating array and slicing data into it. Should I use a different method to save data or am I using task wrong to achieve close to real time data.

 

Thanks,

Andy

0 Kudos
Message 1 of 1
(901 Views)