LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

output a tone using cRIO

Currently our system uses a tone (frequency) generation smartphone app, run through an amplifier, to drive a speaker. I'm looking for a way to do the frequency generation using labview. I see the waveform generation tools, specifically the Tones and Noise vi so I'm wondering if we can use the output of that through a cRIO, into the amp. 

 

We are looking for a range of frequencies, although we won't be sweeping them right away, so outputting a single frequency would be fine. We are looking at up to about 20kHz frequencies. 

 

We're using a cRIO 9014 controller in scan mode and have an NI-9265 doing out analog output. For digital output we are using a 9477. 

 

Any direction would be appreciated!

0 Kudos
Message 1 of 4
(2,945 Views)

Have you tried using the VIs from the Waveform Generation pallete? I think that you can generate a waveform with the frequency you want and output it from your modules.

0 Kudos
Message 2 of 4
(2,907 Views)

Thanks for the reply, the question is how do I get it to output to the module? Are you suggesting I just take the frequency column of data in the waveform output of the vi and wire that to the output? 

 

Also, we are using a 200ms refresh rate (clock) on the cRIO so will that affect it? Since it's an output, I suspect the only thing that would be affected is if I wanted to start and stop it more often than every 200ms. Which I don't. 

 

 

0 Kudos
Message 3 of 4
(2,883 Views)

Well since you are using scan mode I thought that maybe you could create a network shared variable and connect the output of the waveform to the input of the variable. You could give it a try.

I do not think that the clock will affect you in this case, as you say only if you want a higher frequency maybe you should change your clock.

0 Kudos
Message 4 of 4
(2,874 Views)