Shift Register Resets Inside Case Structure

Updated May 7, 2019

Reported In

Software

  • LabVIEW

Issue Details

I have a shift register that sometimes gets reset within a case structure that is inside of a while loop. 

Solution

The output tunnel may be set to Use Default if Unwired, which causes the default value to go to the shift register, causing the value to be overwritten. To resolve this behavior follow these steps:

  1. Right-click on the output tunnel of your case structure and uncheck the Use Default if Unwired.
  2. Right-click on the output tunnel and navigate to Linked Output Tunnel->Create & Wire Unwired Cases.  
  3. Select the input tunnel that corresponds to the output tunnel.  This will automatically wire up the input and output tunnels for every case that is not already wired.  It also automatically wires them up in any new cases you create.

Create & Wire Unwired Cases

These steps will ensure the shift register will retain its value through all cases.