Show Bid Request
home automation
Bid Request Id: 10502
|
|
|
Description:
First off, I am an auto mechanic with beginner knowledge of VB. I have a project that I have almost completed written in QBASIC. This program interfaces with a "k8000 interface board" http://www.velleman.be In essence the board interfaces with the LPT1 and reads real time external digital inputs. I can generate variables that can be outputted to "MsgBox" but that is about as far as I can go. What I want is a vb program that will continuously read the data stream that is generated (I can get the data into the VB program) and update the screen with the changing data. The data will be only "true/false and on/off" . Would like to have the data displayed in a "label box" with the status of the data in this box, and have the "box" update as the data changes state. In a nut shell ,the program runs in a continuous loop, a variable changes , the change is presented on the screen in a "box". Will eventually want the program to play a "wav" files when specific conditions are met, and ideally dial out on the modem and play a "wav" file over the telephone. But for now all I want is a 4x4 grid of 16 boxes on the screan and the text "on" or "off" to come up in them when their associated variable changes. Here is a couple of lines of what I have: Do MsgBox "Read Input channel 10" If IO%(10) >= 1 Then MsgBox "Input channel 10 is ON " Else MsgBox "Input channel 10 is OFF" End If Loop This is basically what I want to happen but using "MsgBox" pauses the program until I click. Don't want it to be like that, this program will be totally controlled externally through the interface board. The only time the keyboard or mouse is used is to modify the code when the system is down, and to exit the program. I realize that testing the code will not be possible for a code writer with out the interface hardware but that is not what I expect. I can write the logic code myself (like I said the QBasic program works fine) but my VB5 skills are nonexistant except for what I have learned from my VB5 learning edition.
Deliverables: Do not expect any obligations from the code writer, just some guidance.
Platform:
win98 ,celeron 500
Special Conditions / Other:
eventually will want to get wav files to be played and the telephone dailer to work.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
This bid was accepted by the buyer!
|
$7 (USD)
|
Mar 9, 2002 7:42:33 PM EDT
|
10
(Excellent)
|
|
|
Greg:
Here is a step-by-step rundown.
1) Add the 16 labels to the form as a control array (same Name, but different Index property) from 1 to 16. Name example: MyValue(1).
2) In your loop, do this: Do For i = 0 to 15 If IO%(i) >= 1 Then MyValue(i) = 'ON' Else MyValue(i) = 'OFF' End If DoEvents 'let CPU do other work Next i Loop
When the IO board changes, you will detect that change and set the appropriate label value. When IO%(10), then the Label with index 10 will be changed. There are other enhancements you can make, such as polling the port periodically, etc..
Jason
|
|
|
|
|
|