HomeModulesModule 1.10 (Labview Clusters) → Tutorial 1

 

VERIFY INFORMATION TUTORIAL

 

In this exercise, you will create the front panel and block diagram shown below. This VI utilizes clusters, cluster functions and a cluster shell to check username and passwords against an array of records.

 

False case of Case Structure

1) Complete the block diagram shown above. The Unbundle by Name functionscompare the contents of the Employee Information input cluster with the Employee Record constant array.

2) Create the Employee Record constant array containing employee records this way:

  • Create an empty array constant by selecting Array > Array Constant from the Functions palette.
  • Pop-up on the Employee Record terminal and choose Create constant from the pop-up menu. Delete the wire that connects the resulting constant to the indicator.
  • Resize the Cluster Constant to see the individual fields. It may help to pop-up on the cluster constant border and deselect Autosizing.
  • Show the owned labels of each object in the cluster constant (Pop-up on the objects in the constant and select Show > Label)
  • Drag the cluster constant into the empty array constant. Enlarge the array constant so that several of the elements are visible.
  • Type information into two or three elements of the array constant to create the list of employee records to compare with. .

3) Make sure and enable indexing at the appropriate tunnels. (For instance, If you get a broken wire when connecting the array constant to the Unbundle by Name icon inside the while loop, pop up on the tunnel on the while loop border and select enable indexing).

4) Return to the front panel and run the VI with various name and password combinations in the Employee Information cluster. The while loop will stop as soon as it finds a match, or when it reaches the end of the array, whichever happens first.

5) Verify that the VI operates correctly.

6) Save the VI as verify_information.vi