LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Do comments in block diagram or front panel slow down program execution?

Solved!
Go to solution
Solution
Accepted by topic author edmonton

Gu,

I mean the compiler is always running in the development environment.   Period.  That is a huge advantage LabVIEW has over any 3rd generation programming language.  The run arrow breaks when the compiler cannot compile.   

 

And just to reiterate,  the RuntimeEngine usually only needs to call the compiled object and only loads the FP or BD when absolutely necessary.   Load time would normally be buried in application startup in an exe unless it uses a rare dynamic call that must load a panel (such as, insert dynamically determined FP or BD into subpanel.)   In those edge cases, the load time hit is on the caller's execution not the called vis execution.

 

Conclusion: comments are A OK👍


"Should be" isn't "Is" -Jay
Message 11 of 16
(1,047 Views)

Hi 

 

 

 

 

 

 

0 Kudos
Message 12 of 16
(1,039 Views)
Solution
Accepted by topic author edmonton

@edmonton wrote:


If you remove debugging, hide panels, etc., yes they will behave the same.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 13 of 16
(1,034 Views)
Solution
Accepted by topic author edmonton

@crossrulz wrote:

@edmonton wrote:


If you remove debugging, hide panels, etc., yes they will behave the same.


There is a lot of that et cetera.  Mostly beyond the original scope of your inital post.  By default LabVIEW allows debugging in the development environment as well as automatic error handling in new vis and does not separate the VI Object from the Source Code.  Some other properties and methods are also available in development only (VI Scripting) and others are read only in the RTE. 

 

The exe build specs are used to change VI properties for optimal performance while the application builds although, every one of those properties could be set on every VI in your development project.  Yeah, that's a lot of cetera for the et and we just scratched the surface for build specs.


"Should be" isn't "Is" -Jay
Message 14 of 16
(1,026 Views)
Solution
Accepted by topic author edmonton

@JÞB wrote:

And just to reiterate,  the RuntimeEngine usually only needs to call the compiled object and only loads the FP or BD when absolutely necessary.   Load time would normally be buried in application startup in an exe unless it uses a rare dynamic call that must load a panel (such as, insert dynamically determined FP or BD into subpanel.)   In those edge cases, the load time hit is on the caller's execution not the called vis execution.


Note that the front panel is also loaded when control references, statically linked property or invoke nodes, static control\pane references, or event structures (to static control\vi events) are on the diagram. These things will also keep the FP in executables.

 

 

Message 15 of 16
(1,011 Views)

Thank you Wiebe

0 Kudos
Message 16 of 16
(978 Views)