From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Switches - Controlling an Individual Relay in C#.NET

Code and Documents

Attachment

This example demonstrates how to open and close an individual relay on a switch using C# in Visual Studio .NET 2003

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors