Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Electromechanical Interface
Message
From
02/06/2003 04:19:37
 
 
To
30/05/2003 13:03:32
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00794599
Message ID:
00795097
Views:
12
Hi,

>Is there a way to interface VFP with external electrical components? Lets >say, for example, a door switch closes, and I want to use that signal in >Foxpro to give an alert. Would this involve serial communications? Thanks.

As a cheap and cheerful approach, if you really only need something that simple, you could just rig up a switch to deliver 5v to either the CTS or CD lines of the serial port and monitor the status using MSCOMM. On the same principle you can use the DTR (and RTS?) pins to set external states - although you may need a relay to manage AC power switching.

HTH,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform