LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

values written to a table are not preserved

Solved!
Go to solution

Hi GerdW

ok, I still need to find out how to use a shift register to hold the output table.

 

you are rightstop condition is not needed in the For loop

 

Best Regards

Hakam

0 Kudos
Message 11 of 15
(1,006 Views)

Hi Hakam,

 

a shift register works the same in every loop, no matter if FOR or WHILE:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 15
(999 Views)

Hi GerdW,

by the way there is no option 'use shift register' for case structure

 

shift register in case structure.jpg

 

And the reason why I connect False to the conditional stop of for loop was because of:

conditional terminal.jpg

 

0 Kudos
Message 13 of 15
(991 Views)

Hi Hakam,

 

by the way there is no option 'use shift register' for case structure

I never said "shift registers go with a case structure" - I told you "shift registers go with any loop"!

As this is a VERY basic LabVIEW thing: Did you take the free resources for LabVIEW beginners offered by NI on their website?

 

the reason why I connect False to the conditional stop of for loop was because of

Wrong!

The reason for that FALSE constant is: you accidently enable the stop condition of the FOR loop! Disable that feature and you will not need an additional boolean constant!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 14 of 15
(986 Views)

@hbs_80 wrote:

Hi GerdW,

by the way there is no option 'use shift register' for case structure

 

 

 


In that case you can use a Feedback node which (to a limited extent) can be thought of as a "Loopless SR".

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 15 of 15
(983 Views)