05-07-2019 02:50 AM
I want to implement a function as follows: first set the Max and Min voltage values, then set the number of steps in the middle of the Max and Min steps and the dwell time of each step, and finally set the total number of cycles
The problem is: the value of each step must be output separately, there is a problem here, please help, thank you!
Solved! Go to Solution.
05-07-2019 02:55 AM
Pass an auto-indexed array of wait times with the same length as the number of steps to the For loop.
Also, take a look at the Ramp Pattern VI (Samples type).
05-07-2019 03:12 AM
Can you elaborate on your method one? Thanks
05-07-2019 03:30 AM
Something like the following:
I also used the Ramp Pattern VI, although you need to check the behaviour at the ends matches what you want (the boolean controls that), and also that you don't get double-counted middle/end points (hence the Delete From Array, which your image already included).
Assuming you want to do more than just read a value, you can put actual code in the inner For loop (like the analog output, etc).