LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Number of Stacked Shift Registers based on Control

Hello,

 

I'm using stacked shifts in my code and I would like the number of stack shifts to correspond to a number from a control. Is there a way to do this? Thanks!

0 Kudos
Message 1 of 4
(2,400 Views)

No.  Why do you need it to change?

 

I'd recommend using an Action Engine setup to store the data.  Have it behave as a circular array.  There you can define how many elements you want to maintain in the array before discarding old data.

Message 2 of 4
(2,399 Views)

I'm trying to average numbers and doing so by using stacked shift registers in a loop. The only issue is the number of numbers being averaged is not constant and I don't want it to average the last x amount of numbers. I will look into using an Action Engine.

0 Kudos
Message 3 of 4
(2,397 Views)

Check out the Mean PtByPt.vi in the Signal processing palette.

Message 4 of 4
(2,384 Views)