LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Debug vs no debug mode

My VI reads a waveform from oscilloscope. If I work in debug the results are OK, in no debug mode NO.
SYSTEM: LabVIEW v6.1, Windows 2000, PCI-GPIB
0 Kudos
Message 1 of 3
(2,699 Views)
If you mean by "debug" that the highlighting is switched on (Data flow shown graphically as it happens) then your problem is most likely timing.

LabVIEW operates many operations in parallel (or almost at least) unless there's data dependency between functions. If one function relies on another, but they aren't linked by data flow, it can happen that they're executed in the wrong order without highlighting. WITH highlighting the execution is much slower, and the actual order of execution may be different.

Try linking all functions which are interconnected with data (The error clusters are great for this).

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 2 of 3
(2,699 Views)
It could also be timing in another sense. You could need to have some delay between sending commands out and reading data back. Running it with Highlight Execution turned on could be giving it enough of a delay to make it all work out. You can try adding delay between your communication calls and see if that helps. If this is the solution, you might want to make it a subVI as you will probably use it a lot.
0 Kudos
Message 3 of 3
(2,699 Views)