Hi AIEXINUK,
I have learned something these days
Yes, you learned about using the RAMP function, shift registers and how to prevent race conditions because of local variables.
and met some problems again.
Because you don't take our advice and still don't use the RAMP function in your VI and still place way too much local variables!
let it choose the value from the array which is connected to the 'interpolate 1D array' function. (Let's say, set Duty step size to 0.5, it won't choose the value from the array but will calculate an average value between that)
If you would read the help for that Interpolate function you would know the reason why it works exactly this way…
It works but the 'time' I create is not ending at the value I want which means it has one value missing.
Put more values into your LUT to prevent this problem…
Best regards,
GerdW
using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019