Hi, I need to connect a pushbutton to my computer, and
then be able to measure the time it is held down. Can direct RT do that?
What are the info you would need about the device to be able to answer me?
Thank you.
Hi, I need to connect a pushbutton to my computer, and
then be able to measure the time it is held down. Can direct RT do that?
What are the info you would need about the device to be able to answer me?
Thank you.
This shouldn't be any problem at all.
There's a great (if a bit technical) description of the whole process here:
http://technologyinterface.nmsu.edu/...r/printer.html
The gist of it is that the pushbutton input will appear on the parallel port's 'status' register. So if your port is set to address 888 (0x378), you can tell DirectRT to look at the status port (0x378 + 1 = 0x379) and you'll be in business.
Note that parallel port pins are only slightly buffered, and don't tolerate short circuits well at all. So double check your wiring before connecting anything.
Since my previous post, I got a cable to connect the device to the computer as per the diagram from the reply.
Could someone walk me through the exact steps to use it once it is plugged in? Please give precise instructions as I am not a technical person!