Subscribe to EDN
RSS
Reprints/License
Print
Email

Control system uses LabView and a PC’s parallel port

A National Instruments LabView diagrammatic program controls the operation of a metered parking lot.

Carlos Alberto Aguilar Sández, Centro de Estudios Superiores del Estado de Sonora, Unidad sede San Luis Rio Colorado, Sonora, Mexico; Edited by Martin Rowe and Fran Granville -- EDN, June 26, 2008

The circuit in this Design Idea controls the inbound and outbound traffic of cars in a parking lot. This project uses National Instruments LabView as the main programming tool and a PC’s parallel port for I/O. Basically, the circuit uses the PC’s status port, 379h, as an input for sensors, which a relay isolates to prevent damage on the PC (Figure 1). At the data port, 378h, the D0 bit controls a door, D1 is a stop signal, D2 is the go signal, and D3 is an indicator of when the parking lot reaches its limit. All the signals drive PN2222A transistors having an external power supply—in this case, the PC’s power supply. In this way, you can use relays as loads and control ac voltage for the traffic lights and door motor. The transistor, which D0 drives, controls a DPDT (double-pole/double-throw) relay to invert the motor’s polarity.

Figure 2 shows the LabView diagrammatic program for controlling the parking lot. The VI (virtual instrument) in Figure 3a changes the inputs to a low state because all inputs are high by default inside the status register. All inputs have a low state when you do not activate the sensors. The VI in Figure 3b determines a limit for the parking lot, allowing incrementing and decrementing the number of cars parked. This VI also drives a user-oriented display and the shift-register connectors, feedback and iteration, on a “while” loop. The VI in Figure 3c works as a latch-on-release circuit; it generates a pulse upon an iteration when the circuit releases the high state on any of the input signals. The VI in Figure 3d works as a flip-flop. The VI in Figure 4 allows switching from automatic to manual mode. Feedback and iteration terminals connect to shift registers, so the latches and the flip-flops inside the VI work correctly.

RSS
Reprints/License
Print
Email
Talkback
Canon Resource Center

Featured Company


Most Recent Resources

Advertisement
Related Content

No related content found.

  • 0 rated items found.
Advertisement

KNOWLEDGE CENTER

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)
Engineering Careers
Jobs sponsored by
Advertisement
About EDN   |   Site Map   |   Contact Us   |   Subscription   |   RSS
© 2012 UBM Electronics. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other UBM Canon sites

UBM Canon | Design News | Test & Measurement World | Packaging Digest | EDN | Qmed | Pharmalive | Appliance Magazine | Plastics Today | Powder Bulk Solids | Canon Trade Shows