LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clear shift registers between runs

Solved!
Go to solution

Hi,

 

Noob question of the day! I am building an array and would like to clear shift registers between runs. I have attached a VI. It runs a while loop every second and adds that iteration number to an array. I then display the length of the array. I would like it such that each time I press run, the program starts with a "blank slate." Any standard way of clearing everything. I would love to do something like:

 

%

clc

clear

 

if it were matlab...

0 Kudos
Message 1 of 5
(2,873 Views)
Solution
Accepted by topic author bronco9588

Right-click the shift register on the right left and select "create constant".

 

(also use a real stop button, or at least make your boolean latch action (right-click...mechanical action...latch when released))

 

)*EDIT: corrected right to left)

Message 2 of 5
(2,872 Views)

Altenbach means create the constant on the left side of the shift register.

 

Shift registers are a basic, but important LabVIEW topic.  I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

Message 3 of 5
(2,865 Views)

Ahh got it figured out. Umm agreed on the stop button. I think you mean the left shift register.

0 Kudos
Message 4 of 5
(2,864 Views)

What do you know, I guess the problem is that I am left handed. 😄 Sometime I even confuse up and down. 😮

 

Yes I meant the right-click the left shift register.

0 Kudos
Message 5 of 5
(2,859 Views)