The goal of the code I am writing is to ramp up voltage by 100V/s while a button in "on," up to a certain value selected by the user. Then the code will wait (I just have it counting seconds) until the button is turned "off," and it will ramp down the voltage by 1000V/s, back down to 0V. The code should also always be graphing a seperate voltage input, which is the voltage monitor.
I tried to make the counting happen outside of the loops that are updating the voltages. I use a flat sequence structure while setting the voltages, so that it must ramp all the way up to the input value, or if the button is turned off before then, it will stop the ramp at the current value.
Currently none of the loops are counting as I expected and I can't tell where the program is going wrong. I have commented the code so that it is easier to tell what I am trying to do. Any help would be appreciated.
Micah