Swapping Case Structure Subdiagrams

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

You can swap the visible case subdiagram of a Case structure with another case without affecting the other subdiagrams or the order of the cases as they appear in the shortcut menu. Only the subdiagrams of the two cases change. You can swap cases in Case structures of three or more subdiagrams. Refer to the Case Structure - Selector Data Types VI in the labview\examples\Structures directory for an example of using Case structures.

Complete the following steps to swap the visible subdiagram with another subdiagram.

  1. Move to the case whose subdiagram you want to swap with another subdiagram.
  2. Right-click the structure border.
  3. Select Swap Diagram With Case from the shortcut menu and select the case whose subdiagram you want to swap with the visible subdiagram.

In the following example of subdiagrams in a Case structure, case 0 contains subdiagram A, case 1 contains subdiagram B, and so on up to case 4, which contains subdiagram E.

You can swap case 1 with the subdiagram with case 3, causing LabVIEW to swap the subdiagrams, as shown in the following example.


Not Helpful