I wanted to just mess around with labview and it tells me before executing a sound sub vi to play a .wav file that the sub vi is not supported in current target. I upated my directx player to the most current one and I have the sound file in a .wav format. Is it just that the labview that we got from FRC not compatible with every palette function?
The realtime version of LV runs on VxWorks. On that OS, there are no general sound drivers, no speakers, and no driver code that knows what a .wav is. So, no, not all subVIs are cross-platform.
So is there a way I can fix this so that my sub vi will play a file through speakers on our robot for fun?
This wouldn’t be hard with other modules installed. After all, LV and NI equipment is often used for testing audio equipment, but you will need a speaker, an amplifier, and something to generate the signal.
A couple years ago when I wanted a noise maker on a practice robot, I mounted a school bell and a solenoid. The solenoid would thwack the bell when the condition occurred.
So I’m just another high school FRC guy trying to get a jump on my EE college course and don’t know that much but what modules do you recommend I install? I have some bose surround speakers I’m not using and an old audio stereo phono pre-amplifier.
Why don’t you visit ni.com and puzzle it out. I’ll tell you if you found the right ones.
Well I was thinking of this one:
But only because it had an audio link: http://www.ni.com/audio/
I was thinking of this one because it’s the only module for sound and vibration but I wasn’t sure if it lets you output continually or if it is just for testing and data acquisition.
If you are talking about the products on the Solutions tab, then yes, those 24 bit cards will generate a sound. In fact they are for generating very precise tones and measuring those tones as they come out the other side of the circuit. This is how the audio manufacturers verify that the hiss, hum, and other types of noise and distortion in their circuit are at an acceptably low level. But NI makes many other boards for sound and some of them plug into the cRIO.
But I’ll jump to the chase. NI makes modules such as the 9263 and 9269 that are C-series. That means they snap in to the cRIO like the FRC modules. They can generate the signals, but without changing the FPGA, they will not be available to the SW. But the platform is not a general PC, and I suspect you are wanting to make sounds for fun or entertainment. There are plenty of ways, cheap ways, to do that. The cRIO isn’t really meant to be one of them.
Oh well that’s highly disappointing we wanted to have to play a sound when we threw basketballs just for fun.
You can generate sounds mechanically. I’ve long wanted to mount a desktop call bell and a servo on one of our demo robots. I think it was Team T.H.R.U.S.T. (FRC #1501) that had a Lunacy robot which made a wonderful “poink!” noise when it tossed moon rocks.
I would use something similar to: http://www.radioshack.com/product/index.jsp?productId=2102855