How Do I Track Relay Usage on NI Switch Products?
Hardware: Switches
Problem: Is there a way to get the relay life from the EEPROM of my switch device? I want to track relay usage.
Solution: You can track the relay usage of some switch modules by reading the relay count from the EEPROM of the device. The simplest way to find the count of a particular relay is through the Switch Soft Front Panel. Right-click on your NI-Switch module in Measurement & Automation Explorer (MAX) and select
Test Panels.

You can access the relay count by either selecting the Relays tab, or going to File»Relay Maintenance and selecting the relay of interest.

In the LabVIEW environment, use niSwitch Get Relay Count to get the number of times the relay has changed from Closed to Open.

Often times niSwitch Wait for Debounce is used before niSwitch Get Relay Count to ensure a more accurate count.
If you are programming in C, the function is called niSwitch_GetRelayCount. The C function prototype is as follows:
ViStatus niSwitch_GetRelayCount (Vi Session vi, ViConstString relayName, ViInt32* relayCount);
For additional information, refer to the NI Switches Help file located on the system under Start»All Programs»National Instruments»NI-SWITCH»Documentation»NI Switches Help. If you do not have the driver installed, the help file can be found using the link below.
Note: Not all switch modules support this function. See "Relay Count" in help file.
Related Links: Product Manuals: NI Switches Help (July 2008)
Attachments:
Report Date: 05/04/2007
Last Updated: 09/03/2009
Document ID: 4932N7I