11-09-2008 10:04 PM
I am trying to create a square wave generator in which I am able to control the values for: frequency, amplitude, and duty cycle. Currently have working code to do all except change the amplitude.
Thought of using FPGA Math & Analysis Square Wave Generator, but am having problems connecting it to the FPGA I/O Module. I am using the high speed digital I/O module NI9401, compactRIO, and LabVIEW 8.6.
LabVIEW help menu says this for FPGA Math & Analysis Square Wave Generator:
"To pass the square wave to an output line, you can wire square wave out to an I/O resource using the FPGA I/O Node."
Does anyone know how to do this?
When we try to do this, we get an error because the I/O module will only take a boolean input and the o/p of the Square Wave Generator is set for 16-bits.
For reference, I have attached the current code for both the FPGA target and real time controller.
Please advise.
Thanks,
Tim
11-10-2008 06:52 AM - edited 11-10-2008 06:53 AM
Have you tried this: ( near the bottom square wave generator)
http://zone.ni.com/devzone/cda/tut/p/id/4799
http://zone.ni.com/reference/en-XX/help/371599D-01/lvfpga/fpga_square_wave/
11-11-2008 02:53 PM
Yes, I have tried this. This is the same help file givin within labview.
I need to know how to connect this square wave generator to an FPGA I/O module - for instance i/o port#1. I am using the NI 9401 module, which is high speed digital i/o module.
The code I have attached replicates a square wave generator without using the square wave generator module.
The problem with this code is that I need to be able to vary the amplitude of the square wave.
The current code does not allow for me to do this, and the square wave generator module does allow this - which is why I need to know how to properly connect it.
If anyone has any other suggestions as to how to vary the amplitude of the square wave, I would appreciate your thoughts.
Thanks.
11-11-2008 05:08 PM
03-24-2020 08:10 AM
Hi
Have you solved this problem
I want to do the same thing But I cannot
Thanks