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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement