|
I tried to connect MC with my external analyser
apparatus. I am able to write and read on a serial port (COM1:, COM2:, ...): ------------------- on mouseUp ## script button = start reading data
global lecture put
empty into field "res"
set the serialcontrolstring to "BAUD=9600 PARITY=N DATA=8 STOP=1
xon=on odsr=on"
open file "COM1:" for update
write "R" to file "COM1:"
put true into lecture end mouseUp on idle ## on stack
global lecture if
lecture is true
then read from file "COM1:" until cr&cr put it after field "res"
end if end idle on mouseUp ## script button = stop reading data
global lecture
put false into lecture
close file "COM1:" end mouseUp ------------------- Now, I have no idea about the protocol that I
can use when the apparatus is plug on the parallel port. I want to know how I
can do it, from MC, to read data and control devices through group of inputs and digital outputs on the parallel
port. Thanks
for any help, Mathias |
Title: I try to communicate from MC with external analyser apparatus
- Re: parallel port Mathias Glaus
- Re: parallel port Sjoerd Op 't Land
