07-13-2017 01:01 AM
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
07-13-2017 01:32 AM
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.
07-13-2017 07:46 AM
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.
07-13-2017 10:16 PM
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
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.
07-14-2017 05:07 AM
Post your top level VI so that we can see all of the commands you are sending, order, etc.
07-14-2017 05:35 AM
the top level VI is BK Precision 9200 Series Output DC Volts.vi
all the VI's are zipped and attached