Okay,
Lets pretend that I had a COM port on my computer. Now lets pretend I have some sort of COM cable (who knows that kind exactly)
Is it possible that I could build a QBASIC program that will tell me when an electrical connection is made in a cable?
For example, if the COM cable I had an end that looked like a headphone plug with only two separate parts (wires) is it possible to make a program that will monitor the input, and tell me when something comes in through it? (If I took a piece of foil, and connected the two connections)
(A bit of a strange question)
I know that something similar can be accomplished, since my Uncle had a QBASIC program that would tell you how long it took a piece of wood to run through a saw. A start time was created, and once the log set the trigger and the time would stop.