From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
mjaugustin

Option to selectively a block a part of code being executed.

Hi

 

Suppose we have a big code in that a part of the code need not be executed ( still obeying the data flow).There is no option to do that .Those who are familiar with Matlab /Python  know there is acommenting option .Once commended thet statements will not get executed.The problem with LabVIEW now is in abid code if we want to try if a node need not get executed we have to delete it then claerind of wire will come.If we want to include it again we still have to do thwe same thing.If something is there ( may be a rectangle) when drawn around  a particular node keeps it away from the execution it will make development/testing  easy

 

Certified LabVIEW Developer
8 Comments
tst
Knight of NI Knight of NI
Knight of NI

LabVIEW already has both the diagram disable structure and the conditional disable structure, both of which allow disabling sections of code and enabling them later.


___________________
Try to take over the world!
mjaugustin
Member

Ok Great would you please guide me how to use this

 

Certified LabVIEW Developer
crossrulz
Knight of NI

They are in the structures palette.  Find them and then read the LabVIEW help on them.  They are quite intuitive to use.


GCentral
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
altenbach
Knight of NI

In very ancient times, LabVIEW did not have these structures. What LabVIEW version are you using?

crossrulz
Knight of NI

"In very ancient times" as in before 8.0.


GCentral
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
altenbach
Knight of NI

Prehistoric!

mjaugustin
Member

Thanks a lot for your comments and suggestions

I got it Smiley Happy

 

I am having the version 2011

 

 

Thanks once again to all

 

 

 

 

Certified LabVIEW Developer
MaryH
Member
Status changed to: Already Implemented