LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[DCPower] How to programmatically reset an Overload Protection error?

I have a PXIe-4139 DCPower SMU. It sometimes goes into overload protection for various reasons. It then has to be reset to work again. In MAX I can simply click "Reset" and it works. But I don't know how to do it in LabVIEW.

 

There is the "niDCPower Reset Device VI" function that in the help says: 

This VI has the same functionality as using reset in Measurement & Automation Explorer (MAX)

Great! But it needs a valid session handle, which, quote, "is obtained from the niDCPower Initialize With Independent Channels VI". But that vi returns an error that the board is in overload protection and doesn't return a valid session handle...

 

So this doesn't work:

Basjong53_0-1678966160693.png

 

How can I reset a DCPower device programmatically in LabVIEW?

0 Kudos
Message 1 of 4
(1,339 Views)

Hi Basjong,

 

have you tried the DCPowerDisable function?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(1,336 Views)

@GerdW wrote:

Hi Basjong,

 

have you tried the DCPowerDisable function?


I haven't, but it has the same problem as the Reset VI, in that it needs a valid session reference, which I cannot obtain since the initialize VI always gives an error.

0 Kudos
Message 3 of 4
(1,326 Views)

The Reset functionality in the NI MAX uses the System Configuration API. You can find an example of resetting devices using SysCfg API at 

<LabVIEW>\examples\nisyscfg\Reset All Devices.vi

 

You can specify an expert of "dcpowerscx" to the filter to get all NI-DCPower devices, or you can filter out the specific device by the Alias Name.

ZYOng_0-1678974224829.png

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 4 of 4
(1,307 Views)