DaqSystem.GetSwitchRelayCount Method
- Updated2023-02-21
- 1 minute(s) read
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: Int64The number of times the relay has been activated.
Exceptions
Exception | Condition |
---|---|
DaqException | The 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.