Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

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. 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. 


Related Links: Product Manuals: NI Switches Help

Attachments:


getrelaycountvi.JPG - getrelaycountvi.JPG


Report Date: 05/04/2007
Last Updated: 01/22/2008
Document ID: 4932N7I

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit