Tuesday, 17 January 2012 14:21

Windows Shortcut example for KMTronic USB One Relay

Written by

 

 

Windows command line application (for COM5)

http://info.kmtronic.com/software/USB_Relays/Office/KMTronic_USB_Relay_Control_Software.zip

 

Quick help:
usbrelay.exe -c:<COM port> -r:<RELAY>#<STATE> -b:<BROADCAST> -q
-c: Com port
-r: Relay(s), State(s)
-b: Broadcast/output on successful sent
-q Silence mode

Example:
usbrelay.exe -c:5 -r:1#1 (this will turn on relay)
usbrelay.exe -c:5 -r:1#0 (this will turn off relay)

 

ZIP file including:

 

- USBRelay.exe
- Relay_OFF and Relay_ON Shortcut files

 

 

Step by step instruction:

1. Download the drivers

2. Connect USB relay and install drivers

3. Check in Device Manager COM port where the Relay is installed (in this example it is COM Port 5)

 

4. Download and unzip “KMTronic_Command_Line_Application.zip”
    - In this example Shortcut files are configured to works with COM Port 5
     - If your COM port is differed you must change Shortcut files

 

Right-click on Relay_OFF and choose Properties. Change  the COM port to yours and click OK.

 

This is only example Shortcut command.

You must change path to the folder where you download Usbrelay.exe
Example: C:\Downloads\usbrelay\usbrelay.exe -c:5 -r:1#1

Repeat the same procedure with Relay_ON.

Now click to Relay_ON and Relay_OFF and relay must turn ON/OFF

 

(Author: Jan)

Tuesday, 17 January 2012 12:32

How to control KMTronic USB relays with MATLAB

Written by

 

 

MATLAB - The Language Of Technical Computing

http://www.mathworks.com/products/matlab/

 

MATLAB® is a high-level language and interactive environment that enables you to perform computationally intensive tasks faster than with traditional programming languages such as C, C++, and Fortran.

 

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

 

MATLAB example (thanks Dr Dean Rose)

http://www.info.kmtronic.com/software/USB_Relays/MatLab/kmtronic_relay_matlab.zip

 

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

 

 

 

 

 

 

 

 

Tuesday, 17 January 2012 11:51

Free Serial Port Monitor

Written by

 

Free Serial Port Monitor allows you to intercept, display and analyze all data exchanged between the Windows application and the serial device. It can be successfully used in application development, device driver or serial hardware development and offers the powerful platform for effective coding, testing and optimization.

 

Download and install from:

http://www.serial-port-monitor.com/

 

Connect USB relay to PC and run.

 

 

Go to New Session >> Serial Port Monitor >> Choose COM port  and mark Request View

 

Run control software and send ON command "FF 01 01"

 

Logged command must looks like this:

 

 

Tuesday, 17 January 2012 11:37

How to control KMTronic USB relays with LabVIEW

Written by

 

 

LabVIEW System Design Software

http://www.ni.com/labview/

 

LabVIEW is a graphical programming environment used by millions of engineers and scientists to develop sophisticated measurement, test, and control systems using intuitive graphical icons and wires that resemble a flowchart. It offers unrivaled integration with thousands of hardware devices and provides hundreds of built-in libraries for advanced analysis and data visualization – all for creating virtual instrumentation. The LabVIEW platform is scalable across multiple targets and OSs, and, since its introduction in 1986, it has become an industry leader.

 

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

 

Labview example (thanks Siva)

KMTronic_8 Channel_Labview.zip

 

 

 

Tuesday, 17 January 2012 10:33

USB Relay Controller - Two Channels

Written by

 

 

KMtronic USB Two Channel Relay

 



A general purpose Relay board for connection to a PC's USB port using VCP (Virtual COM port). Control devices using your PC. USB Relay controller allows a PC to control external devices using simple RS232 commands. Relay is fully powered from the USB bus.


Features:
- Fully assembled and tested.
- Fully powered from USB
- For 12V/24V DC 15A or 120V/220V AC at 10A max.
- Can be used with  LabVIEW, ProfiLab, DAQFactory, TestPoint, DASYLab, VEE

Dimensions:

100 mm / 62 mm / 26 mm

Relay datasheed:
www.info.kmtronic.com/manuals/RAS.pdf

Drivers :

Are available to work with the following operating systems :
All Windows systems, Linux, Mac OS X, Mac OS 9, Mac OS 8,
Windows CE.NET (Version 4.2 and greater), Raspberry Pi, Arduino ADK, Arduino with USB Host Shield

Communication Parameters:
8 Data, 1 Stop, No Parity
Baud rate : 9600

Commands:
FIRST relay commands
"FF 01 00" - OFF command
"FF 01 01" - ON command
SECOND relay commands
"FF 02 00" - OFF command
"FF 02 01" - ON command


NOTE : Each command consists in 3 binary bytes (shown in hexadecimal below) without any space!

 

 

Software Examples:
http://www.info.kmtronic.com/usb-rs232-rs485-relays.html

 

 

 

.

 

 

 

 

 

Tuesday, 17 January 2012 10:23

USB to RS485 FTDI Interface Converter - BOX

Written by

 

KMtronic USB RS485 converter BOX

 

 

This converter provides two way serial communications signal conversion between the RS485 to and from a personal computer USB port using virtual serial COM port.

Manufacturer:
KMtronic LTD

Features:
- Fully assembled and tested
- Fully powered from USB

USB to serial interface:
FTDI FT232RL Chip
www.ftdichip.com/Products/ICs/FT232R.htm

Operation Range:
0°C to +80°C

Drivers are available to work with the following operating systems:
All Windows systems, Windows RT, Linux,

Mac OS 8, Mac OS 9, Mac OS X,
Android, Raspberry Pi, Arduino ADK,
Arduino with USB Host Shield...
www.ftdichip.com/FTDrivers.htm

The drivers listed above are all available to download for free from the FTDI website. Various 3rd Party Drivers are also available for various other operating systems - see the FTDI website for details.

 

 

 

The general purpose Eight Relay board - 12V

 

  Supply:
12 Volts / min 300mA

  Dimension:
120mm / 80mm / 20mm

 

 

 

You can find this in our Web Shop.

 

 

 

Page 31 of 33