Programming LabView - Shift Register

The shift register is a key element of LabView programming. It allows looping structures, such as the For and While loop, to carry over values from one iteration into the next. This can be extremely powerful in allowing the developer to build up arrays of information, or retain state information about a program running in a loop.

For starters, let us look at how to create a shift register. Right click on the left edge of a for or while structure and select "Add Shift Register":

Once this is completed, you will see two squares appear on the border on opposite sides of the structure. The square on the left outputs the value of the last iteration, while the square on the right must have something wired to it that is passed around to the next iteration.


Below, a numeric control terminal is wired to the shift register. Whatever value is typed into the control on the front panel will appear as an output on the left square on the next iteration:

Below are some modifications to the loop in progress. An indicator has been wired to the value from the input of the shift register. The control has been disconnected from the right square. A boolean selector will be used in this example. See the menu below to find this routine:

Using the boolean selector, the following code was wired:


This example will retain the previous value of the shift register on the output and to the next iteration if the boolean control is set to false. If it is set true, then the value of the numeric control will be placed onto the shift register. This code will act as a latch, saving the value in the numeric control when the boolean control is on, while retaining the old value and not following the numeric control value when the boolean control is off.

As you move forward with LabView programming, you will see that most design patterns are impossible without the shift register. Anytime you are trying to keep track of something in a loop, you will need to use one.

66 comments:

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
ted said...

wow you have removed every single comment on your blog, why not just disable commenting?

Anonymous said...

I agree with Ted. I would have liked to know what the other's said so maybe it would help me understand shift registers.

Anonymous said...

It's blogspot, so those comments are quite likely spam.

Anonymous said...

More discussion would be helpful, as would a more "real world" example. As a beginner, most of this looks like hocus pocus. Specifically, it's not clear what the boolean selector does, it's not clear why all this has to be in a loop, or what the shift register terminals are doing or what they're for. Is it possible to implement a shift register without a loop? Some discussion of the while loop stop thingy would help. It seems it doesn't matter if it's connect to true or false but it has to be connected to something.

Unknown said...

I want to comment out pieces of my code in LabVIEW like I can in other programming languages,
such as C. This way I can try different tests to improve my program without deleting my existing code.


labview programming

Unknown said...


LabVIEW is a graphical programming platform that helps engineers scale from design to test and from small to large systems.
It offers unprecedented integration with existing legacy software, IP,
and hardware while capitalizing on the latest computing technologies.
LabVIEW provides tools to solve today’s problems—and the capacity for future innovation.


labview programming

Unknown said...

Your blog content is exactly what I need, I like your blog, I sincerely hope that your blog is a fast-growing traffic density, and to help promote your blog, we hope you blog updates and place can always be colorful. LabVIEW is a system-design platform and development environment for a visual programming language from National Instruments.

jyothi kits said...

Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot in Informatica Online Training. it is really explainable very well and i got more information from your blog.

Jamess said...

QuickBooks Payroll Support Phone Number has emerged one of the better accounting software that has had changed this is of payroll. Quickbooks Payroll Support contact number will be the team that provide you Quickbooks Payroll Support.

steffan said...

You are always able to relate with us at our QuickBooks Support contact number to extract the very best support services from our highly dedicated and supportive QuickBooks Support executives at any point of the time as most of us is oftentimes prepared to work with you. A lot of us is responsible and makes sure to deliver hundred percent assistance by working 24*7 to meet your requirements. Go ahead and call us at our QuickBooks Support Phone Number whenever you are in need. You might reach us via call at our toll-free number.

steffan said...

It’s another fabulous feature of Quickbooks Payroll Support Phone Number, it really is a site where all your valuable employees will get the information of your paychecks. It saves a whole lot more time consumed by doing printing and mailing paystubs every day or replacing lost or damaged paystubs.

steffan said...

The smart accounting software program is richly featured with productive functionalities that save your time and accuracy of the work. As it is accounting software, every so often you could have a query and can seek assistance. This is why why QuickBooks has opened toll free Quickbooks Support Phone Number.

QuickBooks Payroll Support Phone Number said...

QuickBooks Enterprise Support contact number is assisted by an organization this is certainly totally dependable. It is a favorite proven fact that QuickBooks Enterprise Support Phone Number

QuickBooks Payroll Support said...

QuickBooks Customer Support Number take good care of our customers and bend towards backward to please them with our exuberant performance. All this is done without compromising with all the quality of services because nothing seems good in the event that work is not done.

QuickBooks Payroll Support said...

Our research team at QuickBooks Customer Support Number is dependable for most other reasons as well. We have customer care executives which are exceptionally supportive and pay complete awareness of the demand of technical assistance made by QuickBooks users.

kevin32 said...

Support For QuickBooks Enterprise will be the first point of contact to report the matter where you get all of your worries taken care off and assured solutions right away offers you complete peace of mind.

jameswill11 said...

Along with it, our QuickBooks Enterprise Support Phone Number will bring in dedicated and diligent back-end helps for you for just in case you find any inconveniences in operating some of these versions.

kevin32 said...

QuickBooks Tech Support Number Canada customer support executives are particularly customer-friendly which makes certain that our customers are pleased about our services.

accountingwizards said...

You don’t have to strain yourself in regards to the safety and privacy of your data as this issue could be resolved by using QuickBooks tech support team channel at QuickBooks Tech Support Number in minimum time. There are a number of possible reasons of this issue.

accountingwizards said...

If you are interested in technical assistance in QuickBooks software then QuickBooks Desktop Support Canada Number is the wisest choice. Large numbers of population is utilizing our QuickBooks Tech Support Number to seek expert help in QuickBooks around the world. You can avail the unlimited great things about our tech support team by giving us a call at our toll-free. If you should be looking manual solutions to resolve this matter, feel the below recommended steps to fix the problem in numerous scenario.

steffan said...

Hope so now you realize that how exactly to interact with QuickBooks enterprise support telephone number and QuickBooks Enterprise Help Number. We have been independent alternative party support company for intuit QuickBooks, we don't have virtually any link with direct QuickBooks, the employment of name Images and logos on website just for reference purposes only.

QuickBooks Payroll Support Phone Number said...

QuickBooks Enterprise Support contact number is assisted by an organization this is certainly totally dependable. It is a favorite proven fact that QucikBooks Enterprise Support Phone Number has had about plenty of improvement

QuickBooks Payroll Support said...

For such as a type of information, be always in touch with us through our blogs. To find the reliable method to obtain assist to create customer checklist in QB desktop, QuickBooks online and intuit online payroll? Our QuickBooks Payroll Support Phone Number service may help you better.

rdsraftaar said...

Creating a set-up checklist for payment in both desktop & online versions is an essential task which should be shown to every QuickBooks user. Hope, you liked your site. If any method or technology you can not understand, if so your better choice is which will make call us at our QuickBooks Payroll Support USA platform.

QuickBooks Support Phone Number said...

How can you update the QuickBooks software manually If you want to update the QuickBooks software, then you will need to follow the simple steps given below with the help of which you can easily install the QuickBooks Online Phone Number software manually. this software is like your friend which will help you through the accounting procedures of your business.

QuickBooks Support Phone Number said...

QuickBooks software is highly useful for the developing businesses and start-ups and you can install this software from the official website if you want to get rid of all the QuickBooks Tech Support Phone Number errors which are coming when you do the accounting in the company.

QuickBooks Payroll Support Phone Number said...

Enterprise Support telephone number is successfully delivering the whole world class technical assistance for QuickBooks Enterprise at comfort of your QuickBooks Support Number We understand your growing

QuickBooks Payroll Support said...

Well! If you’re not in a position to customize employee QuickBooks Payroll Support Phone Number in Quickbooks while making the list optimally, in QB and QB desktop, then browse the description ahead. Here, you receive the determination of numerous kind of information what you’ve close by for assisting the setup process with comfort.

JimGray said...

Problems are inevitable plus they usually do not come with a bang. Our team at What Is QuickBooks Support Number is ready beforehand to provide you customer-friendly assistance if you speak to an issue using QuickBooks Pro. All of us is skilled, talented, knowledgeable and spontaneous. Without taking most of your time, our team gets you rid of all unavoidable errors of this software.

JimGray said...

Our QuickBooks Support telephone number channel- We comprehend the complexity and need using this accounting software in day to day life. You can’t watch out for more or less time for it to get a fix of each and every single QB error. Therefore we have designed a especially dedicated team of certified professionals at QuickBooks Support contact number that are able to understanding your issues and errors in minimum time as well as in probably the most convenient way. Dial our QuickBook Technical Support Phone Number and avail the top solution you will need.

JimGray said...

QuickBooks Payroll has emerged one of the better accounting software that has had changed this is of payroll. QuickBooks Payroll Tech Support will be the team that provide you Quickbooks Payroll Support. This software of QuickBooks comes with various versions and sub versions. Online Payroll and Payroll for Desktop may be the two major versions and they're further bifurcated into sub versions. Enhanced Payroll and Full-service payroll are encompassed in Online Payroll whereas Basic, Enhanced and Assisted Payroll come under Payroll for Desktop.

QuickBooks Payroll Support said...

a person can simply project the sales of the business. Our QuickBook Support Phone Number team will really provide you learn how to make a projection to your business concerning the sales it has produced in a time period.

Blogsilly said...

“Just dial our QuickBooks Payroll Support Number to inquire of about for Quickbooks Payroll customer care to get rid of payroll issues. We take advantage of startups to small-scale, medium-sized to multinational companies.”

HP Printer Support Number said...

When you observe that HP Laptop won’t turn on or its battery just isn't charging, it will become necessary for you yourself to take an instantaneous help associated with professionals at HP Printer Support Number.

QuickBooks Payroll Support said...

Our QuickBooks Customer Support Phone Number executives are experienced, talented, hardworking a simple yet effective. They put their hundred percent efforts and make certain to have you avail their 24*7 assistance. Call us at our toll-free number or drop us a mail.

QuickBooks Support Phone Number said...

QuickBooks Tech Support Number team is better for offering their services delivered on time whether it is day or night. The group of genius are highly experienced and certified in solving any technical and nontechnical issues.

rdsraftaar said...

QuickBooks has been recognised world wide as the utmost effective and useful accounting software. QuickBook Support executives that really work with you on QuickBooks Support contact number are responsible to manage every Quickbook technical issue that produces in QuickBooks software.

accountingwizards said...

Payroll functions: A business must notice salaries, wages, incentives, commissions, etc., this has paid to the employees in an occasion period. Above all may be the tax calculations should be correct and based on the federal and state law. Our QuickBooks Support Number will surely show you when controling all this.

rdsraftaar said...

As QuickBooks Premier has various industry versions such as for example retail, manufacturing & wholesale, general contractor, general business, Non-profit & Professional Services, there was innumerous errors that will create your task quite troublesome. At QuickBooks Tech Support Phone Number, you will find solution each and every issue that bothers your projects and creates hindrance in running your company smoothly. Our team is oftentimes willing to allow you to while using the best support services you could possibly ever experience.

Mathew said...

The best part is that not merely you’ll prepare you to ultimately resolve your problems nevertheless you are often acquiesced by QuickBooks Support Number technicians and he/she can keep updating you concerning your problems.

Lexmark Printer Support Phone Number said...

Lexmark Printer Support Phone Number + 1-888-600-5222.
name in case you need help together with your Lexmark Printer. guide available for printing problems, scanning issues, connectivity troubles, and many more. based in 1991 Lexmark is most of the exceptional laser printer and imaging product makers within the world.


Anonymous said...

QuickBooks Support team at +1-855-686-6166 you can get the best answers for all the problems in QuickBooks. This software provides you tools that are extremely beneficial for almost every industry type in the world.Quickbooks Support Phone Number+1-855-686-6166 can fix all issues which are relate with quickbooks pro, quickbooks premier, quickbooks enterprise, quickbooks pos or quickbooks accountant. We have 24*7 support team for,

QuickBooks Pro
QuickBooks Premier
QuickBooks Enterprise
QuickBooks Point of Sale
QuickBooks Payroll
QuickBooks Accountant

Several mind-blowing features are contained by each of these versions. Any hindrance caused by any QuickBooks error is taken care of by our QuickBooks Support team.

steffan said...

The QuickBooks Payroll has many awesome features that are good enough when it comes to small and middle sized business. QuickBooks Payroll also offers a dedicated accounting package which include specialized features for accountants also. You can certainly all from the Payroll Suppport Phone Number to find out more details.

kevin32 said...



QuickBooks Support Phone Number company is providing at any hour support services for many possible QuickBooks Errors from our QuickBooks Accounting Support Services. Our Tech Support Executives can create a provisional reference to your QuickBook and Workstation Servers to run diagnoses and resolves the issues or errors.

Jamess said...

Intuit QuickBooks Payroll Tech Support Phone Number services are accessed by many people people business people, accountants, CA, CPAs to calculate taxes and pay employees. Unfortunately, types of issues and errors arise for which they have to contact the Intuit Payroll support team.

Samsung Printer Support said...

Samsung Printer support number is at your service. All you have to do is call us at our toll free number to get all type of Samsung printer solutions.

Mathew said...
This comment has been removed by a blog administrator.
Bryan Willson said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Blogsilly said...

Runtime errors are generally caused by incompatible programs running at the same time. It may also occur because of memory problem, a bad graphics driver or virus infection. Whatever the case may be, the problem must be resolved immediately to avoid further problems. Here are ways to remedy the error. If you would like to learn How To Resolve Quickbooks Error 9999 yourself, you can continue reading this blog.

Blogsilly said...

It is still plagued with many bugs and errors. One such error is the QuickBooks Error 9999. You can directly report the issue if you feel the need. If you would like to take a shot at fixing it yourself, you can continue reading this blog. If you would like to learn How To Resolve Quickbooks Error 9999, you can continue reading this blog.

alexa jone said...

This is so beneficial information for me thanks for sharing such good information with us i will defiantly promote your blog to other platform

quickbooks customer service number

vandana boro said...

Hello,
Your blog has a lot of valuable information regarding Oracle Exadata. Thanks for your time on putting these all together.. Really helpful blog..I just wanted to share information about
power bi training

bhaskar said...

Hello,
Your blog has a lot of valuable information . Thanks for your time on putting these all together.. Really helpful blog..I just wanted to share information about
devops online training

Quickbooks error said...

Is it accurate to say that you are upset with Quickbooks won't open issues in your bookkeeping programming? In spite of the fact that QuickBooks is awesome bookkeeping programming, there ought not to come to any issue. In any case, now and again it occurs, so don't worry, it can be resolve with the assistance of quickbooks diagnostic apparatus.