03-26-2010 01:34 AM
03-26-2010 02:57 PM
Hi Manu,
You're going to have to be a bit more specific:
1) What hardware are you using?
2) What is the voltage level of the square pulse input signal?
3) Do you need to output the pulse on both rising and falling edges, or on either/or
Let's assume you have a M/X Series Multifunction DAQ, the input signal is TTL (0-5V), and you need to output the pulse on both rising and falling edges...
I would use a Digital Input task with Change Detection timing with your input line on port 0 set for both rising and falling edge (there is a Change Detection Shipping Example that should prove helpful if this is the case). You could then use the DAQmx Export Signal.vi to export the Change Detection Event to a PFI line which could be used to trigger your external device. I'm assuming you're using LV since this is the LV forum.
Best Regards,
03-26-2010 11:45 PM
Hi john,
i am using a usb6009 DAQ and LV for acquisition of my input signal. The input square pulse switches between 0 & 12 V (TTL 0-12) with a frequency of around 4kHz. I need to generate a PWM output at each rising edge of the input square pulse.
i beleieve i can count the number of pulses as well using the counter.
I need to know whether i can detect the rising edges of the input signal at that frequency.
03-29-2010
10:35 AM
- last edited on
03-27-2024
01:33 PM
by
Content Cleaner
Hi Manu,
The 6009 isn't going to be suitable for what you need since there are no clocked digital or analog output lines.
You can count the 4kHz pulses using the counter if you wish, but outputting a PWM on every edge is not going to be possible with the 6009. For that you should look into an M Series or X Series board.
Best Regards,
03-30-2010 12:27 AM
Hey Thanks a lot.
I dont have a M/X series card.I have an R series card. Is that sufficient???
But programming the R series looks a little strange to me and i haven't used it at all...especially the FPGA programming part is confusing... Can you help me out in some way???