Advertisement

Zibb

Design Idea

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, 6/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.



Reed Business Information Resource Center

Featured Company


Most Recent Resources

ADVERTISEMENT

ADVERTISEMENT

Feedback Loop


Post a CommentPost a Comment

There are no comments posted for this article.

Related Content

 

By This Author

There are no additional articles written by this author.


ADVERTISEMENT

Knowledge Center


Events

Defect-Based Testing Course
Dates: 3/24/2010 - 3/26/2010
Location: Melaka, Malaysia

EMC 2010: SI and EMC – A Twisted Pair
Dates: 4/20/2010 - 4/20/2010
Location: Von Braun Center, Huntsville Alabama

11th R&D-Product Development Metrics Summit
Dates: 5/4/2010 - 5/6/2010
Location: Four Points Sheraton Hotel - Norwood, MA

ERTS² 2010
Dates: 5/19/2010 - 5/21/2010
Location: Toulouse, France

MEMS Technology Course
Dates: 5/31/2010 - 6/2/2010
Location: Malaysia

Submit an EventSubmit an Event




Technology Quick Links

EDN Marketplace


©1997-2010 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy