NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

DaqSystem.CloseSwitchRelays Method

DaqSystem.CloseSwitchRelays Method

DaqSystemCloseSwitchRelays Method

Note: This API is now obsolete.

Closes the specified relays.

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

Syntax

[ObsoleteAttribute("This method is obsolete.")]
public void CloseSwitchRelays(
	string relays,
	bool waitForSettling
)
<ObsoleteAttribute("This method is obsolete.")>
Public Sub CloseSwitchRelays ( 
	relays As String,
	waitForSettling As Boolean
)

Parameters

relays
Type: SystemString
A set of relays to close. You can specify a string that contains a comma-delimited list of relays.
waitForSettling
Type: SystemBoolean
If , this method waits for the switches to settle before returning. If , the method returns immediately after the operation. This settling time is controlled through the SettlingTime property.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

When you operate relays directly, you circumvent the protection that channel usage types offer. Avoid using this method when you use the ConnectSwitchChannels(String, Boolean) or DisconnectSwitchChannels(String, Boolean) methods because this method does not pass the changes that you make to those methods.

See Also

Was this information helpful?