LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a pulse tran from PS/2 mouse data wire and using the as a 2D tracking device.

System:
Windows 95
Pentium 166
LabView version 5.0
DAQ card ATMIO-16
Signal Digital input

A mechanical engineering student at University of Texas at Arlington, trying to develop a 2D tracking device using a simple mouse. I have looked various mice connections (USB, PS/2, etc) and decided to test signal on a PS/2 data line.
I am running the ground wire and data line to my DAQ digital inputs on the card. I have successfully used on of the digital I/O example vi in LabView to read in an 8-bit binary pattern.
Now the data is coming in very fast. How am I able to read this pulse train of bits and decode the signal of bits if they are coming in so fast? Is there
a buffer in LabView, which allows me to read from, and so it gives me enough time to decode the bits so I can extract the x and y coordinates and then send them to my graphing chart, in order to keep track of the mouse.
I already know the bit encoding method so I need is how to get enough time to decode. Each pulse width is 50 microseconds
Are there any limitations to LabView in this area of data acquisitioning?
0 Kudos
Message 1 of 2
(2,892 Views)
UTA,

Unfortunately the Digital I/O on the AT-MIO-16 are not hardware timed (software timing only) and therefore do not support buffered Digital I/O. You could use a PCI-6533 for this purpose.

With the AT-MIO-16 the only suggestion I can offer is to use a build array function to Concatenate each reading from the Digital I/O ports together. Then you can process it at a later time or in an different loop independently.
The rate at which you read the digital Port/Line is going to be software dependent.
0 Kudos
Message 2 of 2
(2,892 Views)