GetSwitchRelayCounts(string)
- Updated2026-02-05
- 1 minute(s) read
Obsolete: This method is obsolete. Will warn if used
Returns the number of times a set of relays have actuated.
Syntax
Namespace: NationalInstruments.DAQmx
public long[] GetSwitchRelayCounts(string relays)
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.
Parameters
| Name | Type | Description |
|---|---|---|
| relays | string | The set of relays you want to query. You can use a string that contains a comma-delimited list of relays. |
Returns
The number of times each specified relay has been activated. The order of this array corresponds to the order of relays .
Exceptions
| Type | Description |
|---|---|
| NationalInstruments.DAQmx.DaqException | The NI-DAQmx driver returned an error. |