04-15-2024 05:57 AM - edited 04-15-2024 05:58 AM
Good afternoon I am using the acquistion board PCle-6346 controlled using python to acquire samples from a position sensor which is the Keyenche IL-030S.
Now, i set the sampling frequency of the board at 500 kHz and the buffer size to the minimum of 2 but the python script i made gives out a reading every 0.095 s which is a little more than 10 Hz. As I am quite new in the field I was wondering how i can imoprove the output rate of my code to be at least 100Hz or more.
Thanks to everyone for your time and support
Solved! Go to Solution.
04-15-2024 07:07 AM
Because Python is an interpreter language and is much slower than C or C#. Reference: C++ vs. Python: A Performance Comparison using an Example
Use LabVIEW, C or C# if you want to read the data more frequently. See Getting Started with NI-DAQmx for Text-Based Programming
04-15-2024 07:21 PM
Crystal clear!!
Thank you so much for your fast and precious answer!!!!