03-17-2015 09:39 AM - edited 03-17-2015 09:42 AM
Hi There,
Solved! Go to Solution.
03-17-2015 11:42 AM
03-17-2015 11:57 AM
03-17-2015 03:54 PM
@madhu27 wrote:
Hi There,
I am new dealing with instruments. I am using Power Supply N8754a. I downloaded the instrument driver from the below webpage.
It has two examples. I just modified both the examples by removing the while loop and making it to run once. (I made this change since I don't want any human intervention to stop the while loop.) They work fine when I set reset as false. But on reset (default in those examples), say, if I want to set to 5V, the power supply output is set as 0.01V (most of the times), or some value between 0 to 4 (sometimes), and rarely 5V. But when I read the power supply output for the second time, it is set as 5V. (By second time, i mean placing the measure API twice). I tried giving delay also. But it is not the case. It seems like the value is gradually increasing to reach 5V. But how much ever i increase the value, i am getting the required value at the second measurement. Not sure whether this is the default behaviour or I am missing out something.1. Initialize>>Configure>> Enable Output>> Measure ->Works2. Initialize>>Reset>>Configure>> Enable Output>> Measure -> Doesnot work3. Initialize>>Reset>>Configure>> Enable Output>> Measure>> Measure ->WorksAny help is appreciated!Thanks,Madhumithra
What does the programmer's manual for the instrument say?
03-17-2015 11:11 PM
I didnot find anything mentioned specifically related to this. Since the example program from NI had the while loop, i doubt whether this shall be the default behaviour.
03-18-2015 05:09 AM
Hi all,
Initially, I had tried giving the delay after reset, which didnot work. Now, i am able to get it work by giving the delay of 1.5s after enabling the output.
Thanks for all your reply!
Madhumithra
03-18-2015 06:08 AM
@madhu27 wrote:
Hi all,
Initially, I had tried giving the delay after reset, which didnot work. Now, i am able to get it work by giving the delay of 1.5s after enabling the output.
Thanks for all your reply!
Madhumithra
That makes sense. It takes time for power supplies (especially high current power supplies) to charge up their capacitor bank and get up to the set voltage. I have seen some take as long as 3 seconds to settle.