You can run a VI with a section of the block diagram disabled, similar to commenting out a section of code in a text-based programming language. Disable a section of the block diagram to determine if the VI performs better without it.
Complete the following steps to disable a section of the block diagram.
Make a copy of your VI and save it with a different name.
Delete the section of code and make necessary rewiring adjustments.
Compare the performance between the two VIs.
Discard the version of the VI you decide not to use.
Complete the following steps to run a VI with a section of the block diagram disabled.
Place a Case structure around the nodes you want to disable. The default case is TRUE.
Wire a FALSE Boolean constant to the selector terminal.
If the Case structure produces any data values, switch to the False case and either wire the input tunnel to the output tunnel or right-click the output tunnel and select Create»Constant from the shortcut menu.
To execute the section of the block diagram you disabled, change the Boolean constant to TRUE by right-clicking it and selecting Data Operations»Change Value to True from the shortcut menu.