LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

putting the part of the code on the block diagram in "comments" like we do in C

Hi

Like in C, if I dont want the compiler to see few lines of code I just // or /* them. Is there a way to do same thing for a loop on a block diagram in Labview.

 

Kind Regards

Austin

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

Structures Palette -> Diagram Disable Structure my be helpful for you.

 

Andrey.

 

Message 2 of 3
(2,118 Views)

Also note that the CONDITIONAL DISABLE structure will let you include/exclude things - I use it for debugging code.  It's like:

#ifdef Debugging

    printf("Pressure is %0.1f, temp is %0.1f", P, T);

#end if

You define the symbols on the PROPERTIES page of the target, in the CONDITIONAL DISABLE SYMBOLS section.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

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