LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

digital pulse parameter modification in real time

I've searched LabView and multifunction DAQ message boards as well as examples for this, and did find many different ways a square wave pulse can be used to drive an LED. What I'd like to be able to do is to modify square wave parameters in real time. From the examples directory I used Gen Dig Pulse Train - Continuous, where you can set digital pulse parameters before entering the while loop. But even when I wrap DAQmx create channel (CO Pulse Freq), Daqmx Timing, DAQmx Start task, and Clear task in a while loop together with text input controls, it still wouldn't let me change those parameters while the vi is running. I'd really like to be able to change the frequency and the duty cycle of the digital pulse generator without having to stop the VI. The input controls do allow you to change the values, but these changes are not reflected on the oscilloscope until after the VI is restarted... Am I doing somethign wrong? I'm using PCI-6052E DAQ board with 1 8-line digital I/O port. Thanks.

P.S. Application: driving an LED with varying frequency and duty cycle pulse.
0 Kudos
Message 1 of 4
(2,711 Views)
The example program located at http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_answer=&p_guid=B45EACE3EA9D56A4E034080020E74861&p_node=DZ52328&p_rank=&p_source=Internal&p_submitted=N would be a great start. Check it out.
0 Kudos
Message 2 of 4
(2,694 Views)
Thanks a lot for replying, Serges, but the link you gave me does not seem to work. I've tried it several times and it appears that venus.ni.com is unreachable - "The operation timed out when attempting to contact venus.ni.com".

Alex.
0 Kudos
Message 3 of 4
(2,683 Views)
0 Kudos
Message 4 of 4
(2,664 Views)