Display Arduino analog input using LabVIEW

Posted on Tuesday, June 13th, 2017 in how-to by DP


Zx Lee shared detailed instructions of how to display the Arduino measurements using LabVIEW:

To get started, I will explain what is actually going on in Arduino. In this project, I am using an Arduino Nano to acquire signals and send the data to PC. As mentioned earlier, two analog input channels (A0 & A1) will be used to measure input signals. To ensure an accurate measurement is performed at fixed sample rate, the Arduino is configured to wait the predefined interval before taking a measurement and send to PC serially. The concept used is similar to the BlinkWithoutDelay example in Arduino. The benefit of using this method is that there is a while loop that always checks if it has crossed the desired interval. If it is reached, it will take the measurement, else it will skip and you can make it to work on other task.

More details at his blog here.

This entry was posted on Tuesday, June 13th, 2017 at 11:59 pm and is filed under how-to. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

One Response to “Display Arduino analog input using LabVIEW”

  1. Max says:

    The tutorial on creating a Labview display may well be of use to some, but I can’t help finding it thoroughly hilarious how the article goes to great length explaining how the Arduino code involved is not using blocking Delay() calls but periodically checks the passage of time instead so it can do something else between samples, only to, ummm, not do absolutely anything else between samples – a version using Delay() would have been literally exactly equivalent.

    If anything, it would have been worthwhile to point out that this approach prevents drifting of your sampling moments (more specifically ties it to the precision of your independently running hardware timer) instead of simply ignoring all the code being executed between your Delay(desired_but_less_than_the_actual_sampling_interval_you_get) calls – but the advantage currently claimed is not actually taken advantage of…

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • KH: TPS62200 will get him to under 15uA, a bit better than the 20-30uA he mentioned. I would try the same thing. Switch some resistors in...
  • KH: Yeah, it's an end-user thing. Very few people would spend hundreds of hours on this kind of project and sustain it. It's more or less...
  • Max: Not quite a dinosaur if you've seen Big Hero 6 though... wait. You've watched it with your kids, didn't you? That's cheating...! ;) One of...
  • Edward Mallon: A visiting researcher dropped by our humble basement workshop with questions about the physical skill level students would need if they added one of our...
  • KH: And that looks really expensive... Only browsed the vid though, I'm an dinosaur so I had the sound off too. Nice of him to open-source...