Page 1 of 1

Visual Basic SDK Parallel Port Device

Posted: Wed Sep 21, 2005 1:20 am
by egarbage
I'm developing a new Device to read and write from/to the Parallel Port. I'm using the old Visual Basic SDK because I'm afraid to say the C++ SDK was a bit too daunting. I've been able to successfully read and write from/to the parallel port using a single shot approach. To make this plugin more useful I would really like to monitor the status of the printer port data lines by continuously reading/polling them. The problem I've run into is that when using a "Do While Loop" and "DoEvents" I seem to chew up 100% of the CPU resources. Is there a "Best Known Method" for continuously polling the status of a device in HouseBot? Any Visual Basic code snippets or ideas would be greatly appreciated!



Thanks very much!

-Mike

Posted: Thu Sep 22, 2005 8:34 pm
by paran0id
Printer Port Monitoring

A search on VBcity.com for parallel port



Didn't read much of it, so I don't know if it'll help much

but VBcity in 9 cases out of 10 has the code needed.



Cheers

/p

Visual basic sdk paralell port interface

Posted: Wed Mar 22, 2006 6:04 am
by shoei600
Hi Egarbage,

Did you manage to get the plugin sorted for the paralell port? I am also looking to use simple contact closure or TTL signals to trigger event within housebot.

I'm surprised this wasn't one of the first things done.

Your help would greatly appreciated.

Kind regards,

Jim.