Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66881

My code looks normal as it should, but when executing, it does not do the job!

$
0
0

Dear all,

 

Can anyone please help me with my problem?

 

I wrote a code for a Keithley 2200 DC power supplies. In one of the first steps of the program, current and voltage are measured, then it goes to next step. In this step I want to do the followings:

 

1- Set current (e.g. I= 100 mA) and read voltage

2- If the voltage fluctuations are less than 0.1V , Divide current by 2  ( I ---> I ÷ 2, e.g. I = 100÷2=50 mA)

3- Set new current  on 50 mA

4- Read voltage

5- Again, if the voltage fluctuations were less than 0.1V, Divide current by 2  (e.g. 50÷2= 25 mA)

6-Set new current on 25 mA

7-Read voltage

8- Continue this process until final voltage is reached (We determine the final voltage ourself)

 

I do not know if my program is working as I want! 

 

Please let me know if you can help.

 

Best regards.


Viewing all articles
Browse latest Browse all 66881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>