Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Generate Sweep Frequency from cRIO AO?

Hi all,

 

I am new in FPGA programming and I am having difficulty generating sweep freqeuency signal and output it to my cRIO module. Would greatly appreciate any help I could get from this forum.

 

My current setup:

cRIO9066 with NI9263

 

What I want to do is to generate sweep frequency thru AO0 (i.e. 500Hz to 1000Hz) within a certain duration (i.e. 2 seconds) in FPGA environment.

 

A good working example that I used on my USB DAQ can be found on the following link:

http://www.ni.com/example/25016/en/

 

As for now, I am only able to generate waveform with a defined frequency, but not sweep; with the help of example from link:

http://www.ni.com/example/27729/en/

 

Would anyone be able to help?

 

Many thanks in advance.

 

HK

0 Kudos
Message 1 of 4
(3,189 Views)

Use the Sine Wave Generator.  Then right-click on it and choose to "Open Front Panel".  Now connect the frequency control to the connector pane and save the copy to somewhere in your project.  Now you should be able to change the frequency on the fly.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 4
(3,172 Views)

Hi Crossrulz,

 

Yes, I am unable to change the frequency on the fly. However, what I want to do is to generate sweep frequency output to AO (i.e. AO1), e.g. 500Hz to 2000Hz in 2 seconds and have the code running in the cRIO on its own.

 

Can I use similar codes, if yes, how am I able to modify the code to make work as intended?

 

Thank you.

0 Kudos
Message 3 of 4
(3,032 Views)

Hi HK-RKS,

 

Here is a vi for a swept sinewave found in this thread.

 

https://forums.ni.com/t5/LabVIEW/How-to-generate-a-Swept-Sine-Wave/td-p/202242

 

 

 

 

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