From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Arduino Sensor Input Sampling

Hello All,

When i am reading analog  data from Arduino and saving it to excel file, data which i am getting in a random interval of 42, 43ms.

When i checked the Arduino files like Wiring.c file there is a prescalar factor which is 128 means actual ADC sampling rate will be  16Mz/128. I have changed the LIFA_Base file and changed the prescalar factor to 16 but still my data is in the interval of 42, 45ms.

If anybody have an idea please reply as soon as possible.

I am attaching my excel sheet and changes in LIFA_BASE file.

 

Thanks

Siddharth

 

Download All
0 Kudos
Message 1 of 2
(2,218 Views)

Well first off LIFA has been deprecated and replaced with LINX

 

You might get better answers to LINX questions from the LabVIEW Makers Hub Linx forum.

 

But... My first guess is LIFA is just too slow.

 

Have you tried programing the Arduino in it's native language and use LabVIEW to just receive and record the data? 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 2
(2,197 Views)