Hi Jean,
@Meanjean2119 wrote:
If you think there is a better way to do it,
- When you use this as a subVI then I would use a scalar speed input instead of the whole 2D array. (Simple rule: one VI per function, one function per VI.)
- To get the last element of a 1D array you could use a plain DeleteFromArray function with no additional inputs. No need to determine the array size…
- Depending on your requirements I would use a feedback node inside this subVI instead of a shift register in the main VI…
@Meanjean2119 wrote:
I'd be happy to look at it.
Unfortunately you forgot to attach your VI (and maybe downconvert before attaching).
We cannot edit/debug/run images of code in LabVIEW…
Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019