Arduino for Frequency Generation
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:
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 email@example.com.
Back to Blog listings