From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

VirtualBench

cancel
Showing results for 
Search instead for 
Did you mean: 

ammeter on Power supply gives incorrect reading when using LabVIEW drivers

When automating power supply stepping on the +25 volt channel, the "actual" current read by the VI's in the VB API do not always give the correct result - frequently off by a factor of 2 or so.I have tried inserting time delays up to 300mS between changing the supply settings and reading the outputs. The voltage output is always correct, bit the current reading is erratic. I have tried running the VB in the standalone mode and notice that when I enable the power supply using the front panel on-off button that the ammeter on the front panel also reads incorrectly for about a second.

There is an example LabVIEW program that shows using the API to set an output and then read the actual outputs and it seems to work ok, but it is in a loop, and I expect that the ammeter does not read correctly on the first few loops either.

If I connect the DMM to the power supply terminals, I get the correct currents leading me to believe that my voltage setting VI's are ok. I have also double checked that the circuit is not going into current limit. I am running the latest versio

0 Kudos
Message 1 of 6
(4,670 Views)

Hello VA guy,

 

When you are in the VB standalone application, by "ammeter on the front panel", do you mean the one that shows that the current is on the output?

 

VB_1.PNG

 

That one there?

 

That should update much quicker than 1 second.

 

How are you communicating with your VB?  Are you using a USB cable?  If you are, could you try using a different USB port?  Also, do you have another device that you can try controlling through USB on the same computer and check the response time? Can you check controlling the VB with another computer?

0 Kudos
Message 2 of 6
(4,639 Views)

Yes, the current on the output.

I am communicating using USB on my fastest port, which is the faster USB. I will be at conferences next week, and will demoing a VB with some TI parts. I will check then.

It is really odd, because it only happens sporadically.

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

vaguy wrote:

 

When automating power supply stepping on the +25 volt channel, the "actual" current read by the VI's in the VB API do not always give the correct result - frequently off by a factor of 2 or so.I have tried inserting time delays up to 300mS between changing the supply settings and reading the outputs. The voltage output is always correct, bit the current reading is erratic.


Would you use the standalone application at the same time as LabVIEW and use the scope to capture the voltage ouput from the power supply when you enable its outputs?

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 4 of 6
(4,603 Views)

Sure, I will be at a conference next week, but can do that when I get back. Note though that the voltage reading is always correct. It is the current that is off.

0 Kudos
Message 5 of 6
(4,594 Views)

Thanks.

 

Would you also share your setup information? What voltage do you set, what current limit do you set, what is the channel's load?

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 6 of 6
(4,583 Views)