Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Voltage updates in real time but current does not.

i am using a bk precision 9205 multi range dc power supply and controlling it using labview. I have also connected a DC electronic load to it in CR mode. So as i change voltage the votage read gets update but the current level does not. only after stopping execution and starting it again it shows actual current levels. and when i do a highlighted execution it works perfectly.

 

 

not dding all the sub vi's as there are a lot of them. this should be able to give an idea about the problem. if you want i can also add all the vi's

 

 

 

 

0 Kudos
Message 1 of 6
(3,780 Views)

never mind i was able to solve it by adding a wait between the write and read blocks. i think i am trying to read the value before the :MEAS:CURR? command is even executed.

0 Kudos
Message 2 of 6
(3,772 Views)

For future reference, put your code in a zip file instead of posting a bunch of individual files.  That way it becomes easier for everybody trying to upload and download the code.  And you could include all of your code very easily.

 


@kirtikant wrote:

never mind i was able to solve it by adding a wait between the write and read blocks. i think i am trying to read the value before the :MEAS:CURR? command is even executed.


Every instrument I have worked with does not care when you start the VISA Read after the VISA Write.  Typically an issue will happen in that another command was still being executed when you sent the query and that caused issues.  Therefore, I would expect you needed the delay before the VISA Write.

 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(3,741 Views)

okk i added a delay before the write command, it working. but when i use these voltages and current to create a waveform i can see a delay in current, and that in-turn affects my power calculations. whereas when is use the bk precision 9200 operating software run-time Engine, link below

 

http://www.bkprecision.com/products/power-supplies/9205-600w-multi-range-60v-25a-dc-power-supply.htm...

i dont see a delay. also i have noticed that bk-precision 9200 driver is written in labview. so i think it is possible somehow to remove this delay. i just dont know how.

 

 

0 Kudos
Message 4 of 6
(3,734 Views)

Post your top level VI so that we can see all of the commands you are sending, order, etc.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(3,727 Views)

the top level VI is BK Precision 9200 Series Output DC Volts.vi

all the VI's are zipped and attached 

0 Kudos
Message 6 of 6
(3,725 Views)