Thursday, 20 June 2013 07:02

UDP Bat File Control 5

 

 

 

 

 

File:

UDP_Relay_1_ON_OFF_keyboard_2.bat

 

Commands:

pause
UDP_Relay.exe 192.168.1.199:12345 FF0101
pause
UDP_Relay.exe 192.168.1.199:12345 FF0100

 

 

 

 

Back

 

 

 

 

Thursday, 20 June 2013 07:01

UDP Bat File Control 4

 

 

 

 

 

File:

UDP_Relay_1_ON_OFF_keyboard_1.bat

 

Commands:

UDP_Relay.exe 192.168.1.199:12345 FF0101
pause
UDP_Relay.exe 192.168.1.199:12345 FF0100

 

 

 

 

Back

 

 

 

 

Thursday, 20 June 2013 06:59

UDP Bat File Control 3

 

 

 

 

File:

UDP_Relay_1_ON_OFF_5_SEC_.bat

 

Commands:

UDP_Relay.exe 192.168.1.199:12345 FF0101
timeout /t 5
UDP_Relay.exe 192.168.1.199:12345 FF0100

 

 

 

 

Back

 

 

 

 

Thursday, 20 June 2013 06:57

UDP Bat File Control 2

 

 

 

 

 

File:

UDP_Relay_1_OFF.bat

 

Commands:

UDP_Relay.exe 192.168.1.199:12345 FF0100

 

 

 

 

Back

 

 

 

 

Thursday, 20 June 2013 06:49

UDP Bat File Control 1

 

 

 

 

File:

UDP_Relay_1_ON.bat

 

Commands:

UDP_Relay.exe 192.168.1.199:12345 FF0101

 

 

 

 

Back

 

 

 

 

 

 

 

 

Download ZIP file:

KMTronic-UDP-Bat-File-Control-Examples.zip

 

Unzip in any folder

( in the example "D:\KMTronic )

 

All examples are configured to work with default settings
IP address: 192.168.1.199
UDP Port: 12345

 

 

 

UDP-Relay-1-OFF.bat

 


UDP-Relay-1-ON.bat

 


UDP-Relay-1-ON-OFF-5-SEC.bat

 


UDP-Relay-1-ON-OFF-keyboard-1.bat

 


UDP-Relay-1-ON-OFF-keyboard-2.bat

 


UDP-Relay-1-ON-OFF-keyboard-3.bat

 


UDP-Relay-1-ON-OFF-keyboard-4.bat

 


UDP-Relay-1-ON-OFF-keyboard-5.bat

 

 

 

 

 

 

 

 

 

 

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);                              

 

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

 

 

 

 

 

Wednesday, 05 June 2013 08:46

Controlling RS485 Relays by Raspberry Pi

 

 

 

 

 

 

1 - "+"

6 - GND

8 - Tx

 

 

 

1. Open Raspberry Pi terminal.

 

 

2. To set baudrate to 9600b/s, type  stty -F /dev/ttyAMA0 9600 and press Enter:

 

 

3. For example,to switch ON first relay -   echo -e '\xff\x01\x01' > /dev/ttyAMA0  and press Enter:

 

 

4…and to switch OFF -    echo -e '\xff\x01\x00' > /dev/ttyAMA0 and press Enter:

 

 

 

 

 

 

 

 

Tuesday, 04 June 2013 13:30

How to Find Your Local IP Address

 

 

 

 

1. Open Command Prompt:  Start ->type cmd in search field -> press Enter.

 

 

 

 

2. Type “arp –a”  (without quotes) and press Enter.

 

 

 

3. Look at the first, dynamic IP addresses. They are in your router network. For example – 192.168.1.100 – it’s in 192.168.1.0 private network.

 

 

 

 

Page 10 of 41