Control KMTronic relays with CVI/Labwindows

 

 

 

CVI/Labwindows

LabWindows/CVI National Instruments Corporation is a streamlined ANSI C integrated

development environment combined with the industry’s

most effective tools for building test and measurement applications.

 

www.NI.com/LwCVI/‎

 

 

-----------------------------------------------------------------------------------------------------

 

Commands

 

sprintf(sendbuf,"\xFF\x01\x01");  // relay number 1 is ON
viWrite (instr, sendbuf, 20, VI_NULL);                              

sprintf(sendbuf,"\xFF\x01\x00");  // relay number 1 is OFF
viWrite (instr, sendbuf, 20, VI_NULL);                              

 

-----------------------------------------------------------------------------------------------------

 

 

 

 

 

Read 7445 times