Sound input VIs

Our team was invited to participate in a Thanksgiving Day parade. We can’t really do much with the robot while it is on a small trailer. Our 2009 robot had LED strips to alert the drive team of different statuses. These strips look cool and consume very little power, so we wanted to flash these strips during the parade. But just flashing the strips isn’t enough. What would be really cool is if we could get them to flash in time with music we are playing. So I rewired the robot so that the power to the strips ran through jaguars instead of spikes. I also played around with some code to output the amplitude of the microphone input to a chart, using the “Acquire Sound” express VI. Once I moved that all over to a robot project, the Acquire Sound VI was generating an error. After navigating through the subVIs of Acquire Sound, it turns out the sound input VIs aren’t supported. (“SubVI ‘Sound Input Stop.vi’: Sub VI not supported in current target”)

tl;dr: Is there a way to change a Jaguar output value based on a change of amplitude from a sound input on the computer deploying the code?

VxWorks won’t have very good sound card support, plus the cRIO has no built-in sound card. The VIs you were using on the desktop are Windows/Mac/linux only.

But not all is lost. The analog module in slot one can scan high enough for audio, at least for pretty good fidelity. You may have to play a bit with how to connect the mic to the module, but I’m sure you’ll get it.

Greg McKaskle