07-23-2019 07:59 AM
Thank you!!!!
It works perfectly now, love u guys
07-25-2019 11:07 AM
Hello!
Here I come again! I have learned something these days and met some problems again. Appreciate if you can give a hand.
It's still the same program but I add two functions into the program(Threshold 1D array and interpolate 1D array, learned this from the forum) to create a look up table for the Duty.
It works but the 'time' I create is not ending at the value I want which means it has one value missing.
And also if I create the 'Duty step size' to a value which has one decimal, how could I program it to 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)
Here I attached the program.
07-26-2019 01:03 AM - edited 07-26-2019 01:10 AM
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…