DaqSystem.GetSwitchRelayCounts Method
- Updated2023-02-21
- 1 minute(s) read
DaqSystemGetSwitchRelayCounts Method
Note: This API is now obsolete.
Returns the number of times a set of relays have actuated.
Namespace: NationalInstruments.DAQmx
Assembly: NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302
Syntax
[ObsoleteAttribute("This method is obsolete.")] public long[] GetSwitchRelayCounts( string relays )
<ObsoleteAttribute("This method is obsolete.")> Public Function GetSwitchRelayCounts ( relays As String ) As Long()
Parameters
- relays
- Type: SystemString
The set of relays you want to query. You can use a string that contains a comma-delimited list of relays.
Return Value
Type: Int64The number of times each specified relay has been activated. The order of this array corresponds to the order of relays.
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.