leleastro
22-08-2007, 13:10
Qualcuno conosce come si fa a comandare la porta seriale con il Pascal?
Diciamo che devo fare qualcosa tipo questo(qBasic):
'File EOSdemo.bas
' Simple QBASIC program to take a 45-second
' exposure on "bulb" using serial port cable.
'
PORT$ = "COM1"
CLS
OPEN PORT$ + ":300,n,8,1,cd0,cs0,op0" FOR RANDOM AS #1
PRINT "Exposing..."
SLEEP 45
CLOSE #1
PRINT "Shutter closed."
Grazie in anticipo,
Emanuele
Diciamo che devo fare qualcosa tipo questo(qBasic):
'File EOSdemo.bas
' Simple QBASIC program to take a 45-second
' exposure on "bulb" using serial port cable.
'
PORT$ = "COM1"
CLS
OPEN PORT$ + ":300,n,8,1,cd0,cs0,op0" FOR RANDOM AS #1
PRINT "Exposing..."
SLEEP 45
CLOSE #1
PRINT "Shutter closed."
Grazie in anticipo,
Emanuele