LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is a simplified way to explain a shift register?

Solved!
Go to solution
I'm having an engineering evaluation tomorrow and i need to know what the easiest way to describe a shift register would be.
0 Kudos
Message 1 of 7
(4,226 Views)
Solution
Accepted by topic author Peanut 1292

Hi Peanut,

 

a shift register shifts a value from one iteration of a loop to the next...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(4,225 Views)
Hmmm... an evaluation in which you know the question ahead of time ...
0 Kudos
Message 3 of 7
(4,221 Views)

Peanut 1292 wrote:
describe a shift register

A shift register is a feature of LabVIEW and consists of a pair of horizontally aligned little rectangles that sit on opposite edges of a loop. Both rectangles are decorated with a  triangle. The fill color is light yellow and the outline color and triangle color adapts to the datatype. Each part has two connectors, one on the left and one on the right.The left part can be resized downward to expose more terminals.

 

They are not very smart but have a good memory. A sibling is the feedback node. They are silent, odorless and not flammable. . 😄

Message 4 of 7
(4,200 Views)

Of course there's always the LabVIEW Help:

 

Shift Registers

Use shift registers when you want to pass values from previous iterations through the loop to the next iteration. A shift register appears as a pair of terminals, shown as follows, directly opposite each other on the vertical sides of the loop border.

 

 

The terminal on the right side of the loop contains an up arrow and stores data on the completion of an iteration. LabVIEW transfers the data connected to the right side of the register to the next iteration. After the loop executes, the terminal on the right side of the loop returns the last value stored in the shift register.

 

 

Message Edited by smercurio_fc on 05-10-2009 09:39 AM
0 Kudos
Message 5 of 7
(4,167 Views)

I don't really like the description of a shift register "passing values", because that's not really what it does. This description might even give the false impression that data is passed around between memory locations "clogging up the computer" (see the quote here) :D.

 

If at all possible, a shift register pair operates fully "in-place" and is one of the most efficient ways to keep conditionally changing data around during execution of the code. (Of course once you change e.g. the array size of the data in the shift regsiter, this advantage is lost).

0 Kudos
Message 6 of 7
(4,159 Views)

Wires are variables.

 

Shift registers are connectors. 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 7 of 7
(4,145 Views)