From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-21-2011 02:51 PM
Every Programming GUI i know has a Compile and Run Hotkey.
Fot LV i only found Ctrl+R for start in Interpreter.
But how can i recompile to get usable speed?
11-21-2011 03:00 PM
LabVIEW does not run an interpreter. It hasn't used an interpreter since version 1. Your code is compiled as you program it.
You can force a recompilation by holding down the control key and pressing the run arrow, but this is rarely required and is usually intended to be used when trying to diagnose potential compiler issues.
But how can i recompile to get usable speed?
I have no idea what this means.
11-21-2011 03:10 PM
if i press Ctrl+R my VI is extremely slow.
if i build a binary (.exe) file it runs something like 100 times faster
11-21-2011 03:14 PM
That doesn't mean the code is interpreted. When you build an app certain stuff gets stripped out. For example, the front panel of subVIs. Thus, if you're running in the development environment and you have a subVI open, then there will be a slow-down as the front panel is drawn. How much of a slow-down depends on what's actually on the front panel.
11-22-2011 04:46 AM
Since your Executable lacks debugging functionalitys the compiler can optimize the resulting binary.
Assuming you are using LabVIEW 2010 or 11 you can disable Debugging to increase the runtime performance.
To disable Debugging got to File>VI Propertys>Execution "Allow Debugging"
11-22-2011 04:48 AM
@asdfsfdasdafasdf wrote:
if i press Ctrl+R my VI is extremely slow.
if i build a binary (.exe) file it runs something like 100 times faster
A sub-vi has Highlight execution on?
/Y
11-22-2011 04:52 AM
Thx was just thinking about Highlight as well, but disabling Debugging will disable Highlight as well
11-22-2011 08:45 AM
@Wetzer wrote:
Thx was just thinking about Highlight as well, but disabling Debugging will disable Highlight as well
True, the point we're both doing is that one sub-vi OP's probably debugged is in highlight mode. Disabling highlighting as well as disable debugging must be done on a per vi basis.
/Y
11-23-2011 11:58 AM
Highlight execution is set to off.
Is there a trick, how i can check all sub-vi's at once if its on?
11-23-2011 01:10 PM
Do you know what highlight execution is? It's the light bulb in the toolbar, and it's only available if you have a block diagram window open.
I'm curious as to what your code is doing that you'd see such a huge difference between running it in the development environment and running it as a built app. Care to share?