Labview sub vi not supported in this target?

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.

Greg McKaskle

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? :smiley:

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.

Greg McKaskle

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 :smiley: 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 and puzzle it out. I’ll tell you if you found the right ones.

Greg McKaskle

Well I was thinking of this one:

But only because it had an audio link:

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.

Greg McKaskle

Oh well that’s highly disappointing :confused: we wanted to have to play a sound when we threw basketballs just for fun. :confused:

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: