Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Electromechanical Interface
Message
De
02/06/2003 04:19:37
 
 
À
30/05/2003 13:03:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00794599
Message ID:
00795097
Vues:
11
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
Fil
Voir

Click here to load this message in the networking platform