LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

How to check the sample rate ?

I'm interfacing labview with arduino. My aim is to get the sampling rate as 10 KHz/sec. How do i check the current sampling rate at which my signal is being sampled? I am getting the output and everything but don't know the current sampling rate. Kindly help me.

Thank you

0 Kudos
Message 1 of 6
(4,801 Views)

It is not possible to sample at 10kHz using serial communication with an Arduino (e.g. using LIFA).  In fact, it is barely possible to sample at 10kHz with just the Arduino alone (with the standard setup).

If you need to sample that fast for your application, you should obtain a device that is designed to sample that fast.  For example, the NI USB-6000 can sample at 10kHz.

0 Kudos
Message 2 of 6
(4,172 Views)

Thats fine but how do you check the current sampling rate ?

0 Kudos
Message 3 of 6
(4,172 Views)

You can get the loop rate like this.

0 Kudos
Message 4 of 6
(4,172 Views)

Interface.png

Here is my VI (Hops its clear)

I have added case structure to change my analog pins and do different tasks at each analog pin. So how do I check the sampling rate in this VI. I am using arduino microcontroller

0 Kudos
Message 5 of 6
(4,172 Views)

That is the same VI that you posted originally.  See my response above.

0 Kudos
Message 6 of 6
(4,172 Views)