LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem setting current limit through IVI for Agilent 66103

Hello All,

 

I'm having a problem setting the current limit through IVI for the Agilent 66103 power supply.  If I enter a value above 0.768 amps, I get an error from the vi:

Error -1074135024 occurred at IviDCPwr IVI Error Converter.vi

 

Possible reason(s):

 

Primary Error: (Hex 0xBFFA0010) Invalid value for parameter or property.

Secondary Error: (Hex 0xBFFC0004) Parameter 4 out of range, or error occurred while setting Parameter 4.

Elaboration: Current Limit

 

 

Complete call chain:

     IviDCPwr IVI Error Converter.vi

     IviDCPwr Configure Current Limit.vi

     IVI_66103_Set_Limit.vi 

 

vi attached.  Am I missing something? 

 

Thanks in advance,

Doug 

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

Doug:

 

Your vi did not attach.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 6
(3,273 Views)

How about now?

 

Doug

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

Hey Doug,

 

In the step before you define the limit of amps, the  "IviDCPwr Query Max Current Limit.v", you are asking for the max current limit. When you run your program, what is the value of the "max current limit" indicator? Is it possible that you are trying to set a current limit during the "IviDCPwr Configure Current Limit.vi" that is greater than the maximum amp limit of the device? You value would you like to use for the current limit, 2?

 

Hope this helps.

 

-Ben

 

 

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 4 of 6
(3,237 Views)

Thanks for the reply Ben. 

 

That's why I put the vi there.  The vi reads back a max current limit of 0.768 amps.  The supply itself is rated for 0 - 35V, 4.5A, 150 Watts, so I'm well within the capabilities of the equipment. 

Here's something - When I loaded the HP drivers, a palette for the HP supply was loaded.  There's a vi there to set max current, and that one work just fine.  Same structure and everything.  It looks like whoever wrote the HP driver just copied the class driver, made a few minor changes (icon color, file for error handler), and repointed it directly to the HP .dll.

 

OK, so in MAX, I have the Logical Name pointing to the driver session, which points to the HP .dll (same .dll that's being pointed to by the HP vi palette).  It's as though the IVI Class driver isn't handing off the values to the HP dll properly....

 

Doug

 

0 Kudos
Message 5 of 6
(3,229 Views)

Hey Doug,

 

So were you able to get your system up and running after loaded the HP drivers? If not, there is another part of the "Query Max Current Limit" vi that may be useful. In the context help for that particular vi, it says "This VI returns the maximum programmable current limit that the power supply accepts for a particular voltage level on a channel for the output range to which the power supply is currently configured." In the example that you posted, this voltage level was defined to be 12V. Are you able to increase the current range if you increase the 'voltage level' constant? Perhaps there is some setting on the power supply itself that is limiting the current range, say for accuracy purposes.

 

Hope this helps.

 

-Ben

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 6 of 6
(3,207 Views)