hi Alipio,
i have tried the two vis. The modified one is really much easier and faster to use than the first one. Thanks a lot for your help.
Then, i tried running it many times, so as to see if any problem will occur before starting the experiment. I found out that after running a few times, the start value as shown in the graph will be -270, despite me stating -200 as the starting voltage. Then, the plot will go from -270, to -280, to -290, and finally -300, before shooting up again to -200, -210, and so on until -260 for 50 steps. I wonder why there is such a phenomenon? Strangely, the power supply is able to detect -200, then -210, and so on to -300. To add on, I used the probe to chk the values at each point of th
e wiring and found that the "phenomenon" occurred at the VISA read buffer only, while the rest of the wiring indicate correct data.
Then, another strange phenomenon in the graph plot is that the values will suddenly from from negative to positive at some values, as in it will go from -270, -280, 290, -300, -200, 210,-220, and so on. Hence, there will be some sharp peaks among the steps. I wonder why there will be sudden change of polarity, when i am using a DC supply?
Could the error be due to not clearing the previous data, that it starts from -270V? is there a way to store each run's data into a file, then future run's in other files, so that the values will not be mixed up? Thanks a lot for spending so much time to help me.
student