473,388 Members | 1,207 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Suggest Me the Best Option To Use

Hi
I have created a form in version VB6. Basically I want to control a relay using a click button. There are 8 relays connected and i am using 8 different command buttons to switch "ON" and "OFF". My Objective is to one cmd button should control one relay and 8 relays should work indipendtly( should not wait ). I am stuck with code, confused what to use?

Please help me with prototype code.
Reply if you have any questions.

Thanks
Vishnu
Mar 17 '08 #1
2 1411
you connect that to the parallel port?

if that case in every pin
there is a corresponds value

pin o = PortOut &H378, 1
pin1 = PortOut &H378, 2
pin 2 = PortOut &H378, 4
pin 3 = PortOut &H378, 8
pin 4 = PortOut &H378,16
pin 5= PortOut &H378, 32
pin 6 = PortOut &H378, 64
pin 7 = PortOut &H378, 128

and use the io.dll
Mar 17 '08 #2
you connect that to the parallel port?

if that case in every pin
there is a corresponds value

pin o = PortOut &H378, 1
pin1 = PortOut &H378, 2
pin 2 = PortOut &H378, 4
pin 3 = PortOut &H378, 8
pin 4 = PortOut &H378,16
pin 5= PortOut &H378, 32
pin 6 = PortOut &H378, 64
pin 7 = PortOut &H378, 128

and use the io.dll
No I am using a serial port - Relay Board Manuf given me drivers for the serail port. With the help of drivers i am able to send the commands. My problem is How to program (In VB6) the different 8 relays i want all the relays to be running with 8 different duty cycle( which is selected by user) and each relay is configurable (i mean is - user should be able to switch on/off at any point of time - may be 10min, 60 min, 2 days etc...)
Mar 18 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: great_googley_moogley | last post by:
Greetings, I am in the process of installing a SQL database at a customer location. I have determined that there are 3 ways to do this, and I wanted to know which is the best of the 3. 1...
8
by: Ian Davies | last post by:
Hello I am trying to run a few INSERT queries only if the user clicks 'continue' in a <a href> The queries takes variables created from SELECT queries. I have tried to acheive this by putting The...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
1
by: Joe Attardi | last post by:
Hi all, On a form on one of my pages I have two <select> elements, and each one is paired up with a radio button. The idea is to choose an item from one list or the other and select the radio...
10
by: Barry Morris | last post by:
Hi I am a php newbie although I have been a programmer for years, this can be dangerous because all the languages I know use = as equal comparison so it took me a long time to debug if ($STRING...
8
by: rAinDeEr | last post by:
Hi, I have a table with the following 2 Fields - one is the description name and the second is its description to be stored in a table. description name description...
13
by: BK | last post by:
Our .Net team has just inherited a junior programmer that we need to get up to speed as quickly as possible. Unfortunately, his skill set is largely Access with some VB6 and ASP classic...
2
by: rn5a | last post by:
A Form has a select list which is populated from a MS-Access database table. The DB table from where the select list is populated has 2 columns - CountryID & CountryName. When the Form is posted,...
9
by: Yehia A.Salam | last post by:
Hello, I am building an ASP.net website that connects to an XML database, and was wondering which is the best way to create the connection if I need frequent access to the database, I have one...
2
yashg
by: yashg | last post by:
I am building a data backup application in C# using Sockets. It has a server component and a client component. The client is going to upload files to the server through TCP sockets. I've got all...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.