Sending signals through a Parallel Port

Interested adding compiled externals from LiveCode and third parties to your LiveCode projects? This is the place to talk about them.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
starfirescully
Posts: 23
Joined: Wed Jul 09, 2014 2:35 pm

Sending signals through a Parallel Port

Post by starfirescully » Tue Oct 03, 2017 5:11 pm

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!

Post Reply

Return to “Using Externals”