NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

DaqSystem.GetSwitchRelayCounts Method

DaqSystem.GetSwitchRelayCounts Method

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: Int64
The number of times each specified relay has been activated. The order of this array corresponds to the order of relays.

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?