03-25-2024 03:21 AM
Hi everyone,
I'm seeking guidance on generating pulses without utilizing counters in LabVIEW FPGA for myRIO. My objective is to generate two pulses with specific Pulse Repetition Interval (PRI) and Pulse Width using single-cycle timed loops. If anyone has insights or suggestions on how to achieve this, I would greatly appreciate your input.
Thank you kindly for your assistance.
03-25-2024 05:56 PM
Duplicated with LabVIEW MyRIO FPGA, Pulse Generation issue on Oscilloscope
03-26-2024 07:37 AM - edited 03-26-2024 07:39 AM
If you want to use the FPGA in the myRIO to generate a TTL Pulse Train using the Digital Output ports of the myRIO, you should be able to do this in a variety of ways, including using the Digital I/O functions that are part of the myRIO Software Toolkit, or developing code for the myRIO's FPGA to handle the creation and timing of the DO waveform.
For help with the code that you have written that may or may not work, please attach the code. The best thing, of course, is to attach an entire LabVIEW Real-Time Project that would allow us to see what you are doing, and even try it ourselves (if we happen to have a myRIO sitting on our desks). As I'm sure you are aware, you would need to be running LabVIEW 2021, 2019, or earlier versions of LabVIEW, as these have a compatible myRIO Software Toolkit. Be sure that you tell us what version of LabVIEW (year and whether 32 or 64-bit) you are running.
Bob Schor
03-26-2024 10:42 AM
Hi Bob_Schor!
I really appreciate your response and I apologize for my delayed response, I mistakenly accepted the previous response as a solution.
Actually, I was attempting to generate two pulses with fixed controlled Pulse Repetition Interval (PRI) and Pulse Width (PW). However, when I implemented my code on hardware and observed the results on the oscilloscope, I noticed some extra pulses that appeared to be shadows of the original pulses. This was the main issue in my code. Additionally, I suspected that the problem might be related to the counter I used, so I inquired about alternatives to using a counter. Furthermore, I completed my task on the myRIO - 1900 and used LabVIEW 2019 (32 bits) for the project.
I have attached my project file for your reference.
Thank you once again for your kind response.