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 grea tly appreciated.
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
I have NI-DAQ 6.9 and Labview 5.1.2, but it doesn't list a "wait" control code in the help file, only reset, arm, prepare, disarm, count up, count down, switch cycle and snapshot. Do I have the wrong version of Labview?