Parallel Port Labview
Parallel Port Labview
Introduction:
A parallel port is a type of interface found on computers (personal and otherwise) for connecting various peripherals. In computing, a parallel port is a parallel communication physical interface. It is also known as a printer port or Centronics port. The IEEE 1284 standard defines the bi-directional version of the port, which allows the transmission and reception of data bits at the same time. The primary use of parallel portis to connect printers to computer and is specifically designed for this purpose. Thus it is often called as printer Port orCentronicsport. Almost, all PCs contain one parallel port, but you can add more by buying and inserting ISA/PCI parallel port cards.
Parallel port consists of three registers. 1- Data register (D0 d7) and we can use it as an output. 2- Status register (S3-S6,S7' ) and it's used as input . 3- Control register (C0',C1',C2,C4' ) and we can use it as an output. # and we have 8-pins as ground pins.
using parallel port as output ( from computer to the outside word) Connect the following circuit in the block diagram window, and connect the parallel port cable with the input/output circuit board to your PC, and then run the project to realize the results on the circuit?
Example 2 : building a traffic light. In that example I will connect the red light on D3 and the yellow one on D4 and then the green on D5
Now to activate the red led only I need to write out 00001000 on the output register which equals 8 in decimal , and to activate the yellow led only I need to write 00010000 which equals 16 in decimal, and in the same manner to activate the green led only I need to write 00100000 which equals 32 in decimal. Now I will activate the red led for 7 sec. and then the yellow one to 2 sec and finally the green led for another 7 sec. So the following program shows the desired.
Parallel port as an input (From Outside World to LabView) Connect the following circuit in the block diagram window, and connect the parallel port cable with the input/output circuit board to your PC, and then run the project to realize the results on the LabView?