Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI-6602: output a continuous digital 1 or 0

How would I got about getting the PXI-6602 to output a continuous digital 1 or 0.

I believe I first create virtual channel for digital output.  Would putting DAQmx Write 'digital 1D bool 1chan 1sample' in a while loop do it?

Are there other ways of doing this without a while loop?

Thanks,
Melissa



Message Edited by mshi on 09-14-2006 05:55 PM

0 Kudos
Message 1 of 4
(3,569 Views)

Hi Melissa,

Thank you for contacting National Instruments support!  It sounds like you want to generate a continuous pulse train of digital 0's and 1's, correct? 

For your 6602, the easiest method would to be to use the counters available on that card.  The idea is to create a counter frequency output task, where you would frequency and duty cycle of your pulse train.  The good news is that we already have examples written that can accomplish this.  If you go to your example finder in LabVIEW (Help >> Find Examples), you can go to Hardware Input / Output >> DAQmx >> Generating Digital Pulses >> Gen Dig Pulse Train - Continuous.  You can also find other similar examples here that might suit your application. 

I wish you the best of luck with your application, and do not hesitate to let us know if you have any other questions!

Regards,

Daniel L.
Applications Engineer
National Instruments

0 Kudos
Message 2 of 4
(3,559 Views)
Actually, I'm not looking to generate a pulse train but just a continuous logic high or low.  Is the way I stated above a good method to do it?  Are there other ways of doing it without a while loop?

Thanks,
Melissa
0 Kudos
Message 3 of 4
(3,556 Views)
Hi Melissa,
 
Sorry for the misunderstanding.  If you're just looking to write continuous high or low logic, you should use the digital lines on your card.  Instead of the example that I pointed you to originally, try the "Write Dig Chan" example (Hardware IO >> DAQmx >> Digital Generation). 
 
I hope this helps!
 
Regards,
 
Daniel L.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,553 Views)