hello, im currently facing problems generating a square wave clock from the PXI-7841R, im using the FPGA Square wave generator and for some reason it seems to work on high frequencies, but on low frequencies the output of the square wave generator is always true
At what frequencies does it stop working? What is "low"? And what frequencies does it work with? Are you specifying a duty cycle? Where are you changing the frequency?
Thanks for the reply. I have some more questions to go over.
1. How are you changing the frequency? In the Express VI's settings?
2. Can you post your code?
3. Can you send a screenshot of the configuration of your Square Wave Express VI configuration?
4. What happens if you try to do a Sine Wave (in the same palette as Square Wave) at 250 Hz?
Thanks for the reply! Where are you seeing the incorrect signal? I understand in the preview of the Express VI's settings, with a 40 MHz clock, you will not see the full period of a signal below 2 kHz in the preview window, but it should still output correctly.
i am using a logic analyzer to detect the output but still it doesn't read any output at low frequencies
Thanks for the reply. Lets divide down the clock in the LabVIEW Project. You should have a 40 MHz clock in your project. Right click it and create a New FPGA Derived Clock. You will want it to be 5 MHz for the 250 Hz signal that you want.
Next, when you're configuring the Square Wave Generator, set the Frequency (top right box) to 250 Hz, as you wanted. Then, set the Execution Mode to Inside Single-Cycle Timed Loop. Next, you'll want to set the FPGA clock rate to 5 MHz. Finally, hit OK, and in your Timed Loop, double cdlick the top left box that says 40 MHz, and switch that to the newly created 5 MHz clock.
Run that, and you should be able to get the 250 Hz you want. Let me know how that works for you!