LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Commenting out code

Hi,

Being a C programmer I'm used to being able to comment out pieces of code I
do not wish to use temporarily. Now coming to LabView 6.0i I cannot seem to
find this feature and it really bugs me. Is there any way of stopping a
section of code from executing without removing it from the VI?

Thanks in advance.

Regards,

Shane Broadbent
shaneb@cfcl.com.au
0 Kudos
Message 1 of 4
(3,317 Views)
The simple way that I use is to surround the offending code with a case
statement and wire a constant to the selector that will cause the snipet of
code not to be executed. toggle the constant to "uncomment" the code. It
is easy to remove the "comment" case structure when you are ready by right
button on the frame and remove case statement.
Stu
Shane Broadbent wrote in message
news:3a947d4f@newsgroups.ni.com...
> Hi,
>
> Being a C programmer I'm used to being able to comment out pieces of code
I
> do not wish to use temporarily. Now coming to LabView 6.0i I cannot seem
to
> find this feature and it really bugs me. Is there any way of stopping a
> section of code from executing without removing it from the VI?
>
> Thanks in advance.
>
> R
egards,
>
> Shane Broadbent
> shaneb@cfcl.com.au
>
>
>
Message 2 of 4
(3,317 Views)
Thanks for your reply Stu, it was much appreciated.

Regards,

Shane Broadbent
shaneb@cfcl.com.au

"Stu McFarlane" wrote in message
news:vi1l6.103599$v.8954282@typhoon.nyroc.rr.com...
> The simple way that I use is to surround the offending code with a case
> statement and wire a constant to the selector that will cause the snipet
of
> code not to be executed. toggle the constant to "uncomment" the code. It
> is easy to remove the "comment" case structure when you are ready by right
> button on the frame and remove case statement.
> Stu
> Shane Broadbent wrote in message
> news:3a947d4f@newsgroups.ni.com...
> > Hi,
> >
> > Being a C programmer I'm used to being able to comment out pieces of
code
> I
> > d
o not wish to use temporarily. Now coming to LabView 6.0i I cannot seem
> to
> > find this feature and it really bugs me. Is there any way of stopping a
> > section of code from executing without removing it from the VI?
> >
> > Thanks in advance.
> >
> > Regards,
> >
> > Shane Broadbent
> > shaneb@cfcl.com.au
> >
> >
> >
>
>
0 Kudos
Message 3 of 4
(3,317 Views)
Another way to do it is to put the code in a for loop and set it to execute
0 times.

"Shane Broadbent" wrote in message
news:3a947d4f@newsgroups.ni.com...
> Hi,
>
> Being a C programmer I'm used to being able to comment out pieces of code
I
> do not wish to use temporarily. Now coming to LabView 6.0i I cannot seem
to
> find this feature and it really bugs me. Is there any way of stopping a
> section of code from executing without removing it from the VI?
>
> Thanks in advance.
>
> Regards,
>
> Shane Broadbent
> shaneb@cfcl.com.au
>
>
>
0 Kudos
Message 4 of 4
(3,317 Views)