USB RELAY VISUAL BASIC

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts Page 1 of 1
Contributors
User avatar
pacgrafica4
Just Registered
Just Registered
Posts: 2
Joined: Mon Dec 30, 2013 2:41 pm

USB RELAY VISUAL BASIC
pacgrafica4
Hello
After long research , I came across your videos with VB6 on Youtube .
What i need is the following:
I bought a relay usb controller , this controller comes with software , but this is very basic and does not fit what I need .
After several contacts with the vendor , it was not possible to resolve my problem , always say the software you have available is what goes with the board .

After seeing some of his video and some online research , I think the VB6 program allows you to control USB relay controller .

The program i need is not very complicated , here's a brief description of what I need and if it is possible .

USB Relay Controller is to control the following devices and some specifications :
the controller has 8 relay

1 relay - 12v dc motor control ( creates a button in the software that can trigger this relay must operate like a push button , or only work with the button pressed )
2 relay - 12v dc motor control ( creates a button in the software that can trigger this relay must operate like a push button , or only work with the button pressed )
3 relay - 12v dc motor control ( creates a button in the software that can trigger this relay must operate like a push button , or only work with the button pressed )
4 relay - 12v dc motor control ( creates a button in the software that can trigger this relay must operate like a push button , or only work with the button pressed )
5 relay - control ( turn on and off ON / OFF , when I click the call button when I click off again )
6 relay - control ( turn on and off ON / OFF , when I click the call button when I click off again )
7 relay - control ( turn on and off ON / OFF , when I click the call button when I click off again )
8 relay - control ( turn on and off ON / OFF , when I click the call button when I click off again )

i know nothing about programming , I need your help if possible .
See expense when doing this type of software to work with this board .

SEND AN ATTACHMENT TO A TEMPLATE TO HAVE AN IDEA
ALSO SEND THE LINK TO THE SUPPLIER OF PARENT http://www.denkovi.com/product/41/usb-e ... ation.html

From already thank you for your help.
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Re: USB RELAY VISUAL BASIC
XTechVB
If i understand your question correctly you want to control a piece of hardware(USB Relay Controller) from a custom application, if so then contact the vendor to give you the list of commands that the USB Relay Controller uses like this example then find the port on which the Relay Controller operates and send the commands, this should help with that.
You can find me on Facebook or on Skype mihai_92b
User avatar
pacgrafica4
Just Registered
Just Registered
Posts: 2
Joined: Mon Dec 30, 2013 2:41 pm

Re: USB RELAY VISUAL BASIC
pacgrafica4
in the web page vendor i see this
please see this page.

http://denkovi.com/page/48/denkovi-rela ... l.html#App

my usb board as 8 relays

how can send to you a file,

many thanks for you help
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Re: USB RELAY VISUAL BASIC
XTechVB
These are command codes that the Relay responds to DAE00000 16 1 1, DAE00000 16 1 0, etc.. so all you have to do is open the CommandPromt of your computer and execute this file java -jar "FILE PATH HERE/DenkoviRelayCommandLineTool.jar" THE COMMAND CODE HERE, or execute it from inside and application like this (C# sample).
Code: Select all
            System.Diagnostics.Process process = new System.Diagnostics.Process();
            System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
            startInfo.FileName = "cmd.exe";
            startInfo.Arguments = @"/c java -jar FILE PATH HERE/DenkoviRelayCommandLineTool.jar THE COMMAND CODE HERE";
            startInfo.CreateNoWindow = true;
            startInfo.RedirectStandardError = true;
            startInfo.UseShellExecute = false;
            process.StartInfo = startInfo;
            process.Start();
            //Get Error (if any)
            this.Text = process.StandardError.ReadToEnd();
You can find me on Facebook or on Skype mihai_92b
4 posts Page 1 of 1
Return to “Coding Help & Support”