LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Non-retriggerable one shot utilizing While Loop

Hello,

I would like to generate a non-retriggerable pulse (long - 5 to 10 minutes) from the rising edge of an asynchronous pulse (short - 1/2 to 1 sec). I do not want the short pulse to retrigger the long one. In fact if this happens I would like to flag it as an error.

I am running LabVIEW 6i Real Time on an PXI-8170 controller with a 6071E DAQ board.

I have a hardware timed 1ms While Loop that I would like to use for the timing. Can this be done without using Global or Local Variables? I have been trying to figure out a way to use shift resgistars to avoid the possibility of the "i" terminal rolling over.

Any ideas, comments or suggestions much appreciated.
Attached is my vi.

Thanks

Hans
0 Kudos
Message 1 of 4
(3,074 Views)
Hans,

Unfortunately I wasn't able to open your VI but I will give you my suggestion anyway.

As you probably have noticed, the counters are not capable of generating that long pulses, so that leaves you with the options of digital or analog output.

The digital I/O on the E series devices doesn't support any handshaking, so you would have to generate a DAQ event from your trigger and then write to the port.

You can trigger the analog output operation with a digital pulse and reset the output value when your timer loop reaches a certain value. You don't necessarily need to use a local variable to pass this information out of the loop (assuming you want to keep the loop iterating). The LabVIEW occurrence is a nice way to implement it (under Advanced -> Synch
ronization palette).

It's going to take almost 25 days for your iteration terminal to roll over at 1 ms iteration. When it does the output from the terminal stays at the maximum value, 2147483647. If this is a problem you can check for the terminal value and when you reach start counting the following iterations using a shift register.

Kai
0 Kudos
Message 2 of 4
(3,074 Views)
The attached file was reporting an error when ran in Internet Explorer. The problem was a result of the "#" character in the filename. This has been corrected -- the file can now be downloaded without any problems.

David L
National Instruments
0 Kudos
Message 3 of 4
(3,074 Views)
All,

I was able to get the one-shot portion working (see attached file) however, I am stuck on flagging a "re-trigger" as an error.

Any suggestions?

Thanks

Hans
0 Kudos
Message 4 of 4
(3,074 Views)