LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating 80 kHz sine wave output with USB-6453

Hello,

 

   I'm attempting to generate an 80 kHz sine wave using the USB-6453 analog output. I've been tinkering with an example (Voltage - Finite Output.vi) and so far what I've discovered is, with the max sampling rate at the analog output of 250kS/s, it's not high enough to get a clean sine wave at 80 kHz. From what I've seen, you need a sampling rate of approximately 25x the desired frequency to get it out clean. I've tried using regeneration, see attached VI. But is there an easy way to route a faster internal clock to get the faster sampling rate? Or do I need to bring in an external clock?

 

Any recommendations are appreciated!

 

Thanks!

0 Kudos
Message 1 of 11
(272 Views)

Hi Jay,

 


@JayWW wrote:

what I've discovered is, with the max sampling rate at the analog output of 250kS/s, it's not high enough to get a clean sine wave at 80 kHz.


Yes.

Mr. Nyquist is calling…

 


@JayWW wrote:

But is there an easy way to route a faster internal clock to get the faster sampling rate? Or do I need to bring in an external clock?


When the AO is specified to output at 250kS/s max then you don't have any way to output at higher sample rates. Point.

 

When you need higher sample rates then you need to buy better DAQ hardware. (Reading the specs before ordering might help, too. :D)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 11
(261 Views)

you can try a external low pass filter..

What THD you need?

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 11
(239 Views)

@Henrik_Volkers wrote:

you can try a external low pass filter..

What THD you need?



THD isn't super critical. That being said, I am trying to generate function generator caliber signals. What would implementing a low pass filter accomplish?

 

Thanks!

0 Kudos
Message 4 of 11
(236 Views)

Just a small analog circuit. one or two OP and some Rs and Cs..

https://tools.analog.com/en/filterwizard/

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 11
(178 Views)

Another hack: 

Use the digital outputs with  resistors (R2R or in log2 scale) to build a 8bit DA ....   

digital wfrm can go up to 10MSPS, but I don't know the details of your 6453....

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 6 of 11
(174 Views)

@JayWW wrote:

@Henrik_Volkers wrote:

you can try a external low pass filter..

What THD you need?



THD isn't super critical. That being said, I am trying to generate function generator caliber signals. What would implementing a low pass filter accomplish?

 

Thanks!


very clean sine wave has very low THD, so, yes, THD is important

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 7 of 11
(161 Views)

@santo_13 wrote:

@JayWW wrote:

@Henrik_Volkers wrote:

you can try a external low pass filter..

What THD you need?



THD isn't super critical. That being said, I am trying to generate function generator caliber signals. What would implementing a low pass filter accomplish?

 

Thanks!


very clean sine wave has very low THD, so, yes, THD is important


I have to agree 100% to santo_13 ,  what do you mean with "generate function generator caliber signals"?  

calibration?  synchronisation?   

What do you want to do? 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 8 of 11
(136 Views)

@Henrik_Volkers wrote:

@santo_13 wrote:

@JayWW wrote:

@Henrik_Volkers wrote:

you can try a external low pass filter..

What THD you need?



THD isn't super critical. That being said, I am trying to generate function generator caliber signals. What would implementing a low pass filter accomplish?

 

Thanks!


very clean sine wave has very low THD, so, yes, THD is important


I have to agree 100% to santo_13 ,  what do you mean with "generate function generator caliber signals"?  

calibration?  synchronisation?   

What do you want to do? 


THD isn't hyper-critical for my application. I just need a decent sinusoidal waveform, at 80 kHz, and a specific amplitude, for two seconds on, and 8 seconds off. 

0 Kudos
Message 9 of 11
(125 Views)

@JayWW wrote:

@Henrik_Volkers wrote:

@santo_13 wrote:

@JayWW wrote:

@Henrik_Volkers wrote:

you can try a external low pass filter..

What THD you need?



THD isn't super critical. That being said, I am trying to generate function generator caliber signals. What would implementing a low pass filter accomplish?

 

Thanks!


very clean sine wave has very low THD, so, yes, THD is important


I have to agree 100% to santo_13 ,  what do you mean with "generate function generator caliber signals"?  

calibration?  synchronisation?   

What do you want to do? 


THD isn't hyper-critical for my application. I just need a decent sinusoidal waveform, at 80 kHz, and a specific amplitude, for two seconds on, and 8 seconds off. 


In that case, then a 250ksps sample rate should give you a "decent" sinewave at 80kHz as it already satisfies the Nyquist criteria.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 10 of 11
(99 Views)