LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I read binary data into a printer port and plot the results

I am working on a senior design project in which we are tracking a hockey puck. We are using four sensors (2 in the X and 2 in the Y) We have purchased the OOpic II microprocessor. We are reading the distance of the sensors in binary, however the problem comes in when we are trying to plot the data. Do you have any code that will read the binary data into a printer port and plot it in labView?
0 Kudos
Message 1 of 2
(2,493 Views)
You can use VISA to communicate across the parallel port. Use the VISA resource ASRL10::INSTR to address the parellel port. You will need to know how to communicate with your sensors (what commands to send and how the response is formatted). VISA sends and receives strings. To see the binary data you can convert the string to an array of unsigned 8 bit integers. Use the String to Byte Array and Byte Array to String functions that are located on the String>String/Array/Path Coversion Pallete.
For examples on using VISA goto Help>Find Examples and browse by Task, then choose Hardware Input/Output>VISA in LabVIEW 6.1

Carl
0 Kudos
Message 2 of 2
(2,493 Views)