AnsweredAssumed Answered

ADXL372 Sampling frequency

Question asked by wen254968@gmail.com on Jun 7, 2018
Latest reply on Jun 12, 2018 by jwang

Hi,

 

I am facing the problem of sampling frequency limitation.

 

The key setup of the system is adxl372+EVAL-ADXL-ARDZ+ADICUP3029. The communication baudrate is set to be 1000000, BW = 3200Hz, ORD = 6400 Hz. Full band measurement.

 

The issue is, I connect it through USB 3.0 to windows 10, I read the USB port via python serial. The sampling frequency is only 460 - 500 Hz (Not stable).

 

Python code:

import numpy as np
import serial
import matplotlib.pyplot as plt
import sys
import time

if __name__ == '__main__':
ser = serial.Serial()
ser.port = 'COM4'
ser.baudrate = 1000000
ser.open()
#text_file = open('mytext8.txt', 'w')
st = time.time()
tempdata1 = []
tempdata2 = []
tm = []
for i in range(3000):
#st = time.time()
tempdata1.append(ser.readline())
#print(ser.readline())
print('The sampling frequency is ' + str(3000/(time.time()-st)))

 

What should I do to boost the sampling frequency to the max ORD6400 Hz?

 

Thanks

Outcomes