From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Customize sample rate for arduino

Hi!

 

I am new to using arduino in LabVIEW. Currently, I have connected two sensors to 2 analog inputs on the Arduino Uno. I run the program and everything works fine, but I want to log the data. I am able to log the data, but I don't know how to set the sample rate. Could someone help me figure out how to do this? 

 

Thanks in advance!

 

Kristian Jensen

0 Kudos
Message 1 of 2
(2,640 Views)

Okay,

 

So I am now able to set the sample rate, but now I get strange values from the analog inputs. I am giving 2,5V to analog input 0 and 1,65V to analog input 1, but when I run the program the inputs jumps between 1,65V and 2,5V (see picture). Does anyone know why this happens and how I can get stable values?

 

Regards,

 

Kristian

Download All
0 Kudos
Message 2 of 2
(2,635 Views)