This site uses cookies to bring you the best experience. Find out more
Skip to main content

blog

Arduino for Frequency Generation

Introduction

With all of the applications we develop, testing is a massive part of it, whether that's software testing through Unit Tests or physical tests with hardware, it all links to the quality of the deliverable. In a recent application we had a requirement for streaming of multiple simultaneous frequency measurements using the LabJack U6. The LabVIEW examples provided meant it is fairly straightforward to set up with the examples given:

Start Stream:

Read:

Stop Stream:

Solution

With hardware it is always so important to make sure you have tested things as much as possible before getting it front of the customer, in this case though we had no signal generator to hand. Yes, we could have made use of additional DIO pins on the LabJack to generate the signals, but we wanted something independent of our system. 

Thankfully, we did have an Arduino board to hand, and with a few lines of code quickly created a dual channel frequency generator:

If this code is useful to anyone reading this, feel free to get in touch and we can share it with you, no problem. Have you had to think on your toes to enable testing of your software? We would love to hear about it, just drop us message on LinkedIn or email mlug@argentaconsult.com.

 

Back to Blog listings

ARGENTA IS A LEADING PROVIDER OF PRODUCT RELIABILITY AND PROCESS IMPROVEMENT SOLUTIONS.

Call 0121 514 2290 to discuss your requirements