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,632 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,627 Views)