Our offices will be closed Saturday December 23rd through January 1st for the Holidays. Dismiss

LabVIEW Relay switching and Status acquisition 2

In this LabVIEW Relay switching article we will learn how read relay status, set relay status and relay grouping. These LabVIEW relay drivers will work with most of the ncd.io industrial relay controllers. which can be found over here

Industrial Relay Controller For labview

A) Read Relay Status for 8 Relays

This guide shows how to read status of all 8 relays in currently selected relay bank.

Related Example in Driver: Read Relay Status 8 Relays.vi

VIs Required:

–> Initialize (Main Palette)

–> Read Relay Status 8 Relays (Action Status->Advanced Palette)

–> Close (Main Palette)

Following figure shows the steps for this guide. Their detail follows the figure.

Details of steps is as under.

  1. Port is initialized in Initialize VI with fixed baud rate of 115200.
  2. Read Relay Status 8 Relays VI is placed. It sends the command and also verifies the returned status.
  3. Port is closed.
  4. Text boxes for TX and RX data are placed and their references are passed to the Instrument VI which display the serial data sent and received by the instrument driver.

 

Front Panel


B) Read Relay Status for 32 banks

This guide shows how to read status of all 32 Relay banks.

Related Example in Driver: Read Relay Status 32 banks.vi

VIs Required:

–> Initialize (Main Palette)

–> Read Relay Status 32 Banks (Action Status->Advanced Palette)

–> Close (Main Palette)

Following figure shows the steps for this guide. Their detail follows the figure.

Details of steps is as under.

  1. Port is initialized in Initialize VI with fixed baud rate of 115200.
  2. Read Relay Status 32 Banks VI is placed. It sends the command and also verifies the returned status.
  3. Port is closed.
  4. Text boxes for TX and RX data are placed and their references are passed to the Instrument VI which display the serial data sent and received by the instrument driver.

 

Front Panel


C) Setting Relay Status

This guide shows how to set status of all 8 relays in the bank provided with command. Similar command exists for the current bank case in current bank addressable palette.

Related Example in Driver: Set Relay Status.vi

VIs Required:

–> Initialize (Main Palette)

–> Set Relay Status (Action Status->Selectable Bank Directed Palette)

–> Close (Main Palette)

Following figure shows the steps for this guide. Their detail follows the figure.

Details of steps is as under.

  1. Port is initialized in Initialize VI with fixed baud rate of 115200.
  2. Set Relay Status VI is placed. It sends the command and also verifies the returned status.
  3. Port is closed.
  4. Text boxes for TX and RX data are placed and their references are passed to the Instrument VI which display the serial data sent and received by the instrument driver.

 

Front Panel

Boolean array controls shows the desired status to set.


D) LabVIEW Relay Switching Grouping

This guide illustrates how to use grouping to switch On multiple neighboring Relays

Related Example in Driver: Relay grouping.vi

VIs Required:

–> Initialize (Main Palette)

–> Relay On Off Current Bank/ Relay On Off Poly (Action Status->Current Bank Directed Palette)

–> Close (Main Palette)

Following figure shows the steps for this guide. Their detail follows the figure.

Details of steps is as under.

  1. Port is initialized in Initialize VI with fixed baud rate of 115200.
  2. Relay On Off Poly VI is placed. This polymorphic VI supports 2 types of commands, one is for Current Bank and other is bank directed. Here we will use Current bank command therefore that is selected from Poly selector. It sends the command and also verifies the returned status. Relay Number control as well as optional grouping parameter is connected.
  3. Port is closed.
  4. Text boxes for TX and RX data are placed and their references are passed to the Instrument VI which display the serial data sent and received by the instrument driver.

 

Front Panel

Front Panel shows that Relay 1 is selected and optional parameter 4 is provided. This makes all relays from relay 1 to relay 5 switch On.

To Download the Labview Relay Switching Driver and relay controller checkout Installing Labview relay controller Driver.

 

ControlAnything.com and ControlEverything Site Migration Notes

©2017 National Control Devices, LLC

ncd.io

To learn something new, take the path that you took yesterday. ~John Burroughs

Log in with your credentials

or    

Forgot your details?

Create Account