PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to read proper values of Voltage/Current using PXI DC Power 4110

Hi!!
 
I'm facing some unexpected problem while reading voltage value when I connect supply to load.
 
NI DCPower Panel shows correct reading but when it comes to code when I see the value by pressing highlight  execution its OK
But if I remove highlight  execution and putting delay then o/p is showing random value.
 
please can any one  answer my query .
 
Regards,nachiket
0 Kudos
Message 1 of 6
(3,819 Views)

Hi Nachiket,

Thanks for posting! I want to clarify my understanding of your problem. You have PXI-4110 Power supply that you are connecting to a resistive load. When you use the NI-DCPower Test Panel to view the amount of voltage and current the power supply is outputting, you see what you expect. A LabVIEW program that measures the supply’s output only shows the correct values when run in highlight execution. When you turn off highlight execution, thereby removing the delay due to the slower executing speed, the values become random. Is my understanding correct?

With regards to your code, are you utilizing one of the National Instruments’ example programs? These can be found by navigating to the Help Menu>> Find Examples>> expanding the Hardware Input and Output folder>>expanding the Modular Instruments folder>> and then looking in the NI-DCPOWER file. The NI-DCPower Generate.vi example sounds like code that will work for your application. This example program has the same functionality as the test panel and should therefore return the same values as you are seeing in the test panel.

If you are in fact already using an example program, can I ask which program and what limits you are setting for your current and voltage values? Have you made any modifications to the program? And could you better describe what values you are seeing returned when highlight execution is off?

Thanks, Mallori M.
Mallori M
National Instruments
Sr Group Manager, Education Services

ni.com/training
0 Kudos
Message 2 of 6
(3,807 Views)
hi Mallori
 
i was looking for DC power examples and i didn't find anything ,( see Pic2 and 3)
i installed NI DC Power Supplies version 1.1.1 and i am using L.V 8.5 and i don't know where is the problem
 
thank you
 Toni
Download All
0 Kudos
Message 3 of 6
(3,646 Views)
hallo everyone ,
 
I changed the DC power example , the Goal is to add everytime  1 to the input Voltage and to measur the current of the sensor ,
so the first thing what i did , I put all the icons in  " while" and I try to run the Prog.  It dosn't work !!!! BUT if I turn on the Highlight Funktion it works .
I am a littel bit confused , I don't know what  to do . I need help plz
To understand what I mean I attached the .Vi
 
Thanks
Toni
0 Kudos
Message 4 of 6
(3,628 Views)

Hi Toni,

I am assuming based on your second post that you were able to find and get the NI-DCPower examples working. If I understand your problem, you are using the NI-DCPower Generate Example, but you want to continuously increase the voltage being output by the power supply in 1 V increments and monitor the current being output at that voltage. Is my understanding correct?

I took a look at your VI and I noticed a few things that might be causing your error. First, there is no time wired to the Delay Express VI in the while loop, which means that there is no wait being applied. This could be why your VI only works when highlight execution is enabled. I would also suggest using an actual Wait Function instead of the Delay Express VI.

Secondly, I think that modifying the example program as seen in the attached screenshot will be better programming practice and resource management. In your VI, by placing the while loop about the entire program, you are continually having to configure and close driver sessions which can significantly slow down your program and is most likely what is causing your current difficulties. By adding a second Configure Voltage Level function inside the while loop, you will be able to continuously vary the voltage being output.

I hope this explanation helps. Regards, Mallori M.



Message Edited by mallorim on 02-13-2008 05:16 PM
Mallori M
National Instruments
Sr Group Manager, Education Services

ni.com/training
0 Kudos
Message 5 of 6
(3,619 Views)
Hi Mallori ,
 
Thank you very much , it works    Smiley Very Happy
 
Toni
0 Kudos
Message 6 of 6
(3,615 Views)