LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

http://www.aigins.co.kr

We are using LabViewRT with a PXI system. (FYI I am fairly new to LabView, but not to programming.) In particular we have a PXI-6052E multifuntion card in the chassis. Our application is basically an ordered sequence of events. I had seen (a few months ago) a labview rep conjure a quick and dirty way to sleep for 10's of microseconds using a counter on the E series board. (I think) It worked fairly well, we put it in a loop and toggled a DIO line and checked it with an oscilloscope.

I have tried to reproduce something like this using the counter with a 20 Mhz timebase, but have not been succesful yet, my vi ends up counting/waiting hundreds of cycles too long. Any suggestions would be greatly appreciated.

Bryan
0 Kudos
Message 1 of 2
(2,592 Views)
With Counter Control VI, and NI-DAQ 6.9, there is a "wait" control code. If you first configure the counter for pulse train generation, and then use the Counter Control VI with the "wait" control code, when the code reaches the Counter Control VI, the thread that the VI is in will sleep until the rising (or falling) edge of the counter.

You could modify the Generate Pulse Train (DAQ-STC) VI in ~\labview\examples\daq\counter\daq-stc.llb to do this.

Chad Humberstone
Applications Engineering
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,592 Views)