LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous sampling for more than one pins

Hello. I need to continuously read a minimum of 2 pins, but i cant seem to get it to work. Is there a way to do it? I have to get the data simultaneously to be able to make calculations with it. I am using arduino uno. If anyone has a solution please respond...

Thanks in advance!

0 Kudos
Message 1 of 10
(6,595 Views)

I need this feature too, if there is my contact solution, fclaus@hotmail.com

0 Kudos
Message 2 of 10
(3,307 Views)

There is no way to sample continuously more than one port. The ADC on the arduino is a one port multiplexed unit.

0 Kudos
Message 3 of 10
(3,307 Views)

If you tell us what you are trying to actually measure, perhaps the sampling rate of the Arduio may suffice.

0 Kudos
Message 4 of 10
(3,307 Views)

I need aquisitar two signals of about 20 Hz, it still, I tried to duplicate the sample acquisition, However it not worked, can anyone help me?

0 Kudos
Message 5 of 10
(3,307 Views)

If you seriously want some help please provide more information.

20Hz is not very fast and the Arduino should easily cope with it.

Unless you can provide more details we cannot help you my friend

Regards,

Dale

www.GorillaBuilderz.com

0 Kudos
Message 6 of 10
(3,307 Views)

that recognizes two analog inputs, with approximately 20 Hz, and show the data obtained in a plot

0 Kudos
Message 7 of 10
(3,307 Views)

Hello

i am also facing the same problem. I am connecting my 2 sensors on analog pin 0 and 1. When i try to read the voltage only one sensor voltage is reading. provide me help regarding this. I am posting my vi. I am in urgent need. Thank you.

2sensorvi.bmp

0 Kudos
Message 8 of 10
(3,307 Views)

Why not just use a state machine? State one is sampling one sensor and state two samples number two sensor. The time between state one and two will be in the milliseconds which should be fast enough.

0 Kudos
Message 9 of 10
(3,307 Views)

All below 1kHz you can sample per software. Use a simple timed while loop with 1 ms. Then use the normal (unbuffered) AI - Method.

0 Kudos
Message 10 of 10
(3,307 Views)