LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

runtime problem

Solved!
Go to solution

ok here is my problem my VI runs perfectly when I am under the highlight Execution, but when I take it out of the highlight mode it fails

 

here is my VI:

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 1 of 7
(2,904 Views)
Solution
Accepted by topic author Harold_Timmis

Hi Harold,

 

If it works in highlight execution mode this is most likely because the execution speed is much much slower.

 

 

Try adding delays in between your DAQ Assistance VI's like in the image below. This should give time for your relays to switch before moving to the next step

 

image.JPG

 

Kind Regards,

 

Steve

Message 2 of 7
(2,891 Views)

Try putting a delay between those god-awful DAQ Assistant VI's. Maybe you're not allowing enough time. It is usually obvious that if something works with Highlight on, but not off, it's a timing issue.

 

You don't need the sequences. Just wire the error in/outs to get flow.

 

oops, Steve beat me while I was typing!

Message Edited by Broken Arrow on 05-22-2009 08:43 AM
Richard






Message 3 of 7
(2,890 Views)

SteveBale wrote:

.... This should give time for your relays to switch before moving to the next step

 

 


Steve,

How can you tell that there are Relays present by looking at a DAQ Assistant?

Richard






0 Kudos
Message 4 of 7
(2,882 Views)

yes i know the daq assistant is god awful

 

but thank you guys:)

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 5 of 7
(2,877 Views)
I couldn't, I saw the VI's name was testing relays and that the DAQ assistant was DI/O so just assumed Smiley Very Happy
Message 6 of 7
(2,874 Views)

SteveBale wrote: 
... I saw the VI's name was testing relays ...

OH, ok, I was wondering if there's something I was missing.

 

Using D.O. to control relays is neat, but one thing I like about the NI-Switch stuff is the Wait for Debounce, which may fix this issue he had with timing. There might be a way to do that within DAQmx (or Express VI's), but I don't know what it would be. The NI-Switch stuff of course carries the extra burden of IVI.

Richard






0 Kudos
Message 7 of 7
(2,849 Views)