To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This is an example of a metronome using a producer/consumer (events) architecture.
Description
For all the rhythmically challenged LabVIEW developers - here is an example of a metronome. This example was developed using a producer/consumer (events) architecture and makes use of 2 of the new features included in LabVIEW 2011. Namely the controls from the Silver palette and asynchronous call by reference.
Requirements
Steps to Implement or Execute Code
Additional Information or References
Front Panel
Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
What's is suppose to do? Could not get beats per minute to change.
Not clear what Accented Beats is suppose to do.
Yes, I know what a metronome does, but it wasn't clear what the accented beats is doing (thanks for the clarification)
or why the "beats per minute" doesn't change and appears to be fixed.
Ah, okay...I guess I'm not use to the "silver" controls as I thought those arrows were disabled because of their faded color. Now it makes more sense. Note, since Metronome.vi is setup as a dialog windows instead of the default (presumedly to get read of the runtime start/stop), you can't easily debug in the block diagram while it is running....I set it back to "Top Level Window". Curious that you can start the metronome but can't stop it without stopping the entire VI. Also curious that the "Beats Per Minute" wraps around from 0, to 255...was that intended?
Pete this is cool!
The asynchronous call to the sound playing VI is a really good idea.