Page 1 of 1

Sending signals through a Parallel Port

Posted: Tue Oct 03, 2017 5:11 pm
by starfirescully
Hi everyone!

I wanted to know if anyone has used Livecode to send signals through a parallel port successfully or to test the functionality of the parallel port.

I need to be able to send signals to specific pins on the port, specifically D0, D1, D2, D3, D4, D5, D6, and D7. I have all of the information about the port (e.g. I/O address), but I do not know the code to send the signal, or indicate the address of the port.

I need to send a signal of high (5 volts of more, binary 1) to turn on each pin or low (0 volts, binary 0).

I have used this code:

Code: Select all

open file "LPT1:"
write "1" to file "LPT1:"
close file "LPT1:"
I was trying this code just to send an overall signal, but this just causes Livecode to crash.

If you need any more information, or if you have any ideas, please let me know!

Thanks!