Software examples

Software examples (74)

Children categories

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

 

 

 

Friday, 30 December 2011 12:39

KMtronic Timer software

Written by

 

USB One Channel Relay

 

 

 

KMtronic Timer software


 

Download USB Relay Test software : 

http://www.info.kmtronic.com/software/USB_Relays/KMTronic_USB_Timer.zip

 

Source code:

http://info.kmtronic.com/software/USB_Relays/KMTronic_USB_Relay_Timer_Code.zip

 

Unzip it to your own folder.

 

If you get this message you see the following error

that means that you do not have the latest version of Microsoft .NET Framework installed on your computer.
Microsoft .NET Framework  has to be installed on your computer in order to use the software.

 

You can download this from there:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992

 

Software will detect all COM ports you have and there must be one more (Virtual COM port).

Choose COM port. Click on “OPEN” button and using “ON” and “OFF” buttons you can control relay.

 

 

 

 

Save

Page 6 of 6