10-26-2016 10:02 PM
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
10-27-2016 06:51 AM
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.
11-21-2016 09:12 PM
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.
12-06-2016 09:48 AM
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