NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

DaqSystem.GetSwitchRelayCount Method

DaqSystem.GetSwitchRelayCount Method

DaqSystemGetSwitchRelayCount Method

Note: This API is now obsolete.

Returns the number of times a relay has actuated on switches that support querying the relay count.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302

Syntax

[ObsoleteAttribute("This method is obsolete.")]
public long GetSwitchRelayCount(
	string relay
)
<ObsoleteAttribute("This method is obsolete.")>
Public Function GetSwitchRelayCount ( 
	relay As String
) As Long

Parameters

relay
Type: SystemString
The relay you want to query.

Return Value

Type: Int64
The number of times the relay has been activated.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

You must wait for the switch to settle before this method can determine an accurate relay count. Use this method to track relay lifetime and usage.

See Also

Was this information helpful?