LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A digital on signal cuts off when using a Timed Loop

I'm having an interesting problem.  I'm running a timed loop in Labview 2011 that turns a voltage signal from low to high and back to low at a set rate using a timed loop.  The first time the loop is executed, the voltage behaves as expected.  Subsequent iterations of the loop will only produce a short (~50 microsecond) high signal.  The high signal turns on when it is suppose to, but just refuses to stay on the high level.  The loop timing is controlled with an on-board clock from a PCI-6602 card using the Create Timing Source node from DAQmx.  If the loop timing runs off the internal clock (1kHz) then the program runs as expected, but I'd like to compare an acquired signal and the high voltage times with the 80 Mhz clock.

 

I've attached the code giving me problems.  I've also tried using the Frequency Create Timing Source instead of the Digital Edge Counter Create Timing Source node, but received the same result.  Thanks for any direction you can give me.

 

 

0 Kudos
Message 1 of 3
(2,107 Views)

Is it possible the problem is simply that the "250" isn't actually wired to the next frame start?  As a result, the second frame runs immediately after the first frame, which means you'll get a very short pulse.  I'm not sure why it works on the first iteration, though.

0 Kudos
Message 2 of 3
(2,099 Views)

Whoops!  Actually we tried different wiring configurations with the timing, I just forgot to rewire that block before posting it. Even with everything wired correctly the problem persists.

0 Kudos
Message 3 of 3
(2,095 Views)