Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

C# IIviDCPwr . How to track compliance message (QueryInCompliance)?

Solved!
Go to solution

Good day.

Would you please help me with tracking compliance message (overvoltage error) with my PXI-4112?

"Outputs["0"].QueryState(OutputState.OverVoltage)" doesn't work. It works only with OVPEnabled on and doesn't supported with 4112.

 

In classic NI-DCPower it used to use "Measurement.QueryInCompliance(ChannelName)" and it's work great, bool value is always available! But in current project I should use IVI wrapper.

 

So, is any idea to call function like "QueryInCompliance" using IIviDCPwr?

0 Kudos
Message 1 of 3
(3,025 Views)

Hi PeterSevos,

 

I was able to pull up the current NI DC Power Supplies and SMUs Help and found we have the function 'niDCPower_QueryInCompliance' available and it sounds like the VI you were using before. I have attached the help page for this function below.

 

niDCPower_QueryInCompliance http://zone.ni.com/reference/en-XX/help/370736F-01/nidcpowercref/cvinidcpower_queryincompliance/

Thanks,

 

ShaneK

Applications Engineering

0 Kudos
Message 2 of 3
(2,960 Views)
Solution
Accepted by topic author PeterSevos

The right answer is to use "QueryState(OutputState.ConstantCurrent)".

 

Thank to all!

0 Kudos
Message 3 of 3
(2,921 Views)