Difference between revisions of "Railroad Train Guidance System (RTGS)"

From EG1004 Lab Manual
Jump to: navigation, search
Line 1: Line 1:
<h1>RFP*: Railroad Train Guidance System (RTGS)</h1>
= RFP*: Railroad Train Guidance System (RTGS) =
<nowiki>*</nowiki><b>RFP</b> is an acronym for <i>Request For Proposal</i>. Internationally, RFPs are called ITTs, an acronym for <i>Invitation To Tender</i>. Companies and governmental agencies use RFPs to solicit new business.


<p>*<b> RFP</b> is an acronym for <i>Request For Proposal</i>. Internationally, RFPs
<strong><span style="color:red">THE INFORMATION ON THIS PAGE IS CORRECT, BUT MAY BE DISPLAYING INCORRECTLY AND MAY ALSO BE MISSING IMAGE FILES AS IT IS STILL UNDER CONSTRUCTION.</span></strong>
are called ITTs, an acronym for <i>Invitation To Tender</i>. Companies and
governmental agencies use RFPs to solicit new business.</p>


== INTRODUCTION AND OVERVIEW ==
The East side of Manhattan has grown steadily since the early 1940s, when the area began to change from an industrial district into a residential neighborhood. Since the two elevated train lines over Second (1942) and Third (1956) Avenues were taken down, the area has been served by the Lexington Avenue line alone.<sup>1</sup> Passenger loads on the 4 and 5 Express trains exceed transportation guidelines. Plans have been proposed to alleviate this congestion since the early 1930s. A plan developed in the 1960s led to the construction of several tunnel segments, but was abandoned during the city's fiscal crisis in the 1970s. Many ideas have been proposed and abandoned, due to strong opposition by various groups. The current project has a high probability of being implemented. Once completed, the project will include a two-track line along Second Avenue from 125th Street to the Financial District in Lower Manhattan. It will also include a connection from Second Avenue through the 63rd Street tunnel to existing tracks for service to West Midtown and Brooklyn. The Second Avenue Line will be a boon to those who live and work on the East Side of Manhattan, finally having an alternative to the frenzied congestion of the Lexington Avenue Subway.


<h2>Introduction and Overview:</h2>
The Metropolitan Transportation Authority (MTA) New York City Transit is responsible for the safe and efficient transportation of hundreds of thousands of New Yorkers each day. The vast and complex subway system is home to dozens of train lines and hundreds of stations. Currently, many capital construction projects are underway, including the East Side Access MTA Long Island Railroad Grand Central Connection, which will connect the Long Island Railroad's Main and Port Washington Lines to a new Terminal under Grand Central Station in Manhattan. Although this will help East Side access for Long Island commuters, It will put even more pressure on the 4 and 5 lines, making completion of the Second Avanue Subway line even more important.


<p>The East side of Manhattan has grown
In addition to the two tracks, there will also be places where more tracks will be necessary for connections to other lines, bypass when track work is underway, future growth, connection to maintenance facilities, etc.
steadily since the early 1940s, when the area began to change from an
industrial district into a residential neighborhood. Since the two elevated train
lines over Second (1942) and Third (1956) Avenues were taken down, the area has
been served by the Lexington Avenue line alone.<sup>1</sup> Passenger loads on the 4 and 5
Express trains exceed transportation guidelines. Plans have been proposed to
alleviate this congestion since the early 1930s. A plan developed in the 1960s
led to the construction of several tunnel segments, but was abandoned during
the city's fiscal crisis in the 1970s. Many ideas have been proposed and
abandoned, due to strong opposition by various groups. The current project has
a high probability of being implemented. Once completed, the project will include
a two-track line along Second Avenue from 125th Street to the Financial District
in Lower Manhattan. It will also include a connection from Second Avenue through
the 63rd Street tunnel to existing tracks for service to West Midtown and Brooklyn.
The Second Avenue Line will be a boon
to those who live and work on the East Side of Manhattan, finally having an
alternative to the frenzied congestion of the Lexington Avenue Subway. </p>


<p>The Metropolitan Transportation
The Second Avenue Line is in the planning stages. MTA New York City Transit is requesting proposals for the design of the switches and signals for this project. You are competing for a contract to design and program the logic responsible for safely guiding the trains along the Second Avenue Line. A major part of the competition is to demonstrate your capabilities by using digital logic to efficiently control a section of track specified by MTA New York City Transit. For more information, see [http://www.mta.nyc.ny.us/capconstr/ http://www.mta.nyc.ny.us/capconstr/].
Authority (MTA) New York City Transit is responsible for the safe and efficient
transportation of hundreds of thousands of New Yorkers each day. The vast and
complex subway system is home to dozens of train lines and hundreds of
stations. Currently, many capital construction projects are underway, including
the East Side Access MTA Long Island Railroad Grand Central Connection, which
will connect the Long Island Railroad's Main and Port Washington Lines to a new
Terminal under Grand Central Station in Manhattan. Although this will help East
Side access for Long Island commuters, It will put even more pressure on the 4
and 5 lines, making completion of the Second Avanue Subway line even more
important.</p>


<p>In addition to the two tracks, there will also be places where more tracks
Your plan must be innovative. The winning proposal will be the one that combines solid engineering with a deep understanding of the problem and its solution.
will be necessary for connections to other lines, bypass when track work is underway,
future growth, connection to maintenance facilities, etc.</p>


<p>The Second Avenue Line
=== Prerequisite ===
is in the planning stages. MTA New York City Transit is requesting proposals
If you have not already done the [[Digital Logic]] Lab, you will probably find the rest of this document confusing. If you have not already done this lab, stop now and read the following sections in this lab:
for the design of the switches and signals for this project. You are competing
: 1 Overview
for a contract to design and program the logic responsible for safely guiding
: 5 Sample Problem
the trains along the Second Avenue Line. A major part of the
Then come back and read this document.
competition is to demonstrate your capabilities by using digital logic to
efficiently control a section of track specified by MTA New York City Transit.
For more information, see http://www.mta.nyc.ny.us/capconstr/.</p>


<p>Your plan
== SPECIFICATIONS ==
must be innovative. The winning proposal will be the one that combines solid
As part of this project, you are required to use digital logic to design Boolean equations that will be used to control the track switches along the right of way. This includes creating truth tables, transforming these truth tables into simplified Boolean equations, and implementing your equations with digital logic, using LabVIEW to control the train track, allowing a locomotive to safely navigate the track from left to right, and back again.
engineering with a deep understanding of the problem and its solution.</p>


<p>Unfortunately due to a recent derailment, there will be ongoing construction and repairs on parts of this section of track that must be accounted for when designing your proposal for the MTA.  More information on this issue will be given in the specifications section.</p>
The route the train can take is controlled by track switches arranged into 8 <b><i>sectors</i></b>, as shown in Figure 1. The sectors are outlined using the dark grey color in the figure underneath. Sectors 1, 2, 5, and 7 are called &quot;X&quot; sectors because the combination of the four track switches make a letter &quot;X&quot;, and the train can either travel straight or cross over to another track. Sectors 3, 4, 6, and 8 are called &quot;Y&quot; sectors because the sector consists of a single track switch that looks like the letter &quot;Y&quot;, and can choose one of two tracks to merge with one track.


<h3>Prerequisite</h3>
[[Image:002.jpg|frame|right|Figure 1b: Track Layout Key]]
[[Image:001.jpg|frame|none|Figure 1a: Track Layout]]


<p>If you have not already done the [[Digital Logic|EG1003 Digital Logic]] Lab, you will probably
Your logic design will throw the track switches to allow a train to travel from any station at Terminal Station L (Include L1, L2, and L3) to any station Terminal Station R (R1,R2,R3), reverse direction, and travel back from the Terminal Station R back to Terminal Station L. The train can leave from any ports of the Terminal Station L, and can arrive on any port of Terminal Station R. Similarly, on the return trip, the train can arrive on any port of Terminal Station L.
find the rest of this document confusing. If you have not already done this lab,
stop now and read the following sections in this lab:</p>


<ul>
This trip can be made in the <b><i>Normal Mode</i></b> or the <b><i>Reverse Running Mode</i></b>. In <b><i>Normal Mode</i></b>, defined by MTA New York City Transit, only the Sectors 2, 3, 6 and 7 tracks are used for travel from left to right. Sectors 8, 5, 4, and 1 are used for travel from right to left. In summary, the train must
<li>1 Overview</li>
&quot;keep to the right&quot;, like cars on a highway. In <i>Reverse Running Mode</i>, defined by the Northeast Operating Rules Advisory Committee Rule 261, all the tracks can be used to travel in either direction. You are asked to take careful note and know the difference between Normal and Reverse mode as this knowledge will help you in the crucial process of designing your LabVIEW Virtual Instrument. It will also impact several of key decisions for this project down the line. (Following this, Virtual Instrument will referred to as VI in this document.)
<li>5 Sample Problem</li>
</ul>
 
<p>Then come back and read this document.</p>
 
<h2>Specifications:</h2>
 
<p>As part of this project, you
are required to use digital logic to design Boolean equations that will be used
to control the track switches along the right of way. This includes creating
truth tables, transforming these truth tables into simplified Boolean
equations, and implementing your equations with digital logic, using LabVIEW to
control the train track, allowing a locomotive to safely navigate the track
from left to right, and back again.</p>
 
<p>The route the train can take is
controlled by track switches arranged into 8 <b><i>sectors</i></b>, as shown in
Figure 1. Sectors 1, 4, 5, and 8 are called "X" sectors because the combination
of the four track switches make a letter "X", and the train can either travel
straight or cross over to another track. Sectors 2, 3, 6, and 7 are called "Y"
sectors because the sector consists of a single track switch that looks like
the letter "Y", and can choose one of two tracks to merge with one track.</p>
 
<p align=center>[[Image:train1.gif]]</p>


<p class=caption>Figure 1: Track Layout</p>
Construction and repairs must be taken into account in your design. At this time, all of the sectors are functioning properly. With this being the case, you are asked to utilize all of the switching sectors when navigating the train around the track given <i>Reverse Mode</i>. For <i>Normal Mode</i> rules please refer to the paragraph directly above this one. <b><i>For this project, please DISREGARD all of the routing stations present on the course (RS-A through RS-H)</i></b>


<p>Your logic design will throw the
For <i>Normal Mode</i>, the train leaves Terminal Station L, and crosses Sector 1, if necessary, to get to Sector 2. At Sector 2, you have a choice of using the inner or outer track. Since the optimal path between two points is a straight line, its ideal path would be the inside tracks of Sectors 2, 4, and Sector 6, crossing Sector 8, if necessary, to arrive on the proper track at Terminal Station R. For the return trip, the train would cross Sector 8, if necessary, to get to Sector 7. Its ideal path would be the inside tracks of Sectors 7, 5, and 3, crossing Sector 1, if necessary, to arrive on the proper track at Terminal Station L.
track switches to allow a train to travel from Terminal Station L to Terminal Station
R, reverse direction, and travel from the Terminal Station R back to Terminal
Station L. The train can leave from either side of Terminal Station L, and can
arrive on either side of Terminal Station R. Similarly, on the return trip, the
train can arrive on either side of Terminal Station L.</p>


<p>This trip can be made in the <i>Normal Mode</i> or the <i>Reverse Running Mode.</i> In <i>Normal
Your train will not be the only train running on the tracks. As part of the specifications, there will be 12 possible locations for other trains to be on the tracks. These locations are indicated with [[Image:003.jpg]] and are marked with a letter A – L on the following diagram. Your Boolean equations and LabVIEW programs must compensate for this, and allow your train to get through.
Mode</i>, defined by MTA New York City Transit, only the Sectors 2, 4, and 6
tracks are used for travel from left to right. Sectors 7, 5, and 3 are used for
travel from right to left. In summary, the train must "keep to the right", like
cars on a highway. In <i>Reverse Running
Mode, </i>defined by the Northeast Operating Rules Advisory Committee Rule 261,
all the tracks can be used to travel in either direction.</p>


<p>Construction and repairs must be taken into account in your design. At this time sector 8 has been affected and is completely inoperable.  This means that any movement across sector 8 is currently impossible and will affect each mode of travel as well as the No Path case.</p>
[[Image:004.jpg|frame|none|Figure 2: Possible Locations for Other Trains]]


<p>For <i>normal mode</i>, the train leaves Terminal Station L, and crosses
<b><i>Your task is to design a digital logic system that will allow the train to travel from one end of the track layout to the other, and to return to the starting point using the designated departure and arrival tracks. During testing, your TA will place railroad cars to some of the locations, A through L, shown in Figure 2, blocking paths. Your logic will then throw the train switches (as described below) to allow the locomotive to travel from Terminal Station L to Terminal Station R, where the locomotive will stop. The TA will change the railroad cars to other locations, and your logic will throw the switches for the return trip.</i></b>
Sector 1, if necessary, to get to Sector 2. At Sector 2, you have a choice of
using the inner or outer track. Since the optimal path between two points is a
straight line, its ideal path would be the inside tracks of Sectors 2, 4, and
Sector 6, crossing Sector 8, if necessary, to arrive on the proper track at
Terminal Station R. For the return trip, the train would cross Sector 8, if
necessary, to get to Sector 7. Its ideal path would be the inside tracks of
Sectors 7, 5, and 3, crossing Sector 1, if necessary, to arrive on the proper
track at Terminal Station L. </p>


<p>Your train will not be the only
The EG staff has already done much of the work for you, providing Virtual Instruments (VIs) that will tell you which of the locations in Figure 2 are blocked, and accepting outputs from your VI as described below to actually throw the track switches. Design a LabVIEW VI which contains a digital logic circuit that accepts the following inputs:
train running on the tracks. As part of the specifications, there will be 12
* The status of each of the 12 locations, i.e., whether they are occupied or not. This information will come from a VI provided by the EG staff.
possible locations for other trains to be on the tracks. Your Boolean equations
* A switch included in LabVIEW that indicates the direction of the train's travel, i.e., from left to right or right to left.
and LabVIEW programs must compensate for this, and allow your train to get
*A switch included in LabVIEW that indicates whether the train's travel will be via <i>Normal Mode</i> or <i>Reverse Running Mode</i>.
through.</p>
* A selection box included in LabVIEW that will indicate on which the train will begin its journey (Top, Middle, Bottom for L1/R1, L2/R2, and L3/R3 respectively.


<p align=center>[[Image:train2.gif]]</p>
Your digital logic must provide the following outputs:
* If one or more paths is available, supply the digital logic outputs for the settings of the track switches for each of the eight sectors to the VI provided by the EG staff. This VI will throw the switches according to your specification, allowing the train to travel from one Terminal Station to the other.
* A red light included in LabVIEW on the <i>Front Panel</i> that illuminates if there is no path available.


<p class=caption>Figure 2: Possible Locations for Other Trains</p>
After your VI has set the switches, your TA will drive the train from the Terminal Station L to Terminal Station R, and move the blocking cars. After your VI sets the switches for the return trip, your TA will drive the locomotive back to the Terminal Station L. The TA will perform this procedure several times to ensure that you logic solution is indeed correct.


<p>Your task is to design a
== MICROSOFT PROJECT ==
digital logic system that will allow the train to travel from one end of the
Your team must create a time management plan using Microsoft Project (MS Project). You can learn Microsoft Project by doing the [[MS Project Skill Builder]]. This plan must include all tasks related to the project. Each task must be named, assigned a duration and assigned to a specific person (or people). You must begin your work by creating an MS Project plan. Follow your project plan throughout the semester. If the team falls behind schedule, explain the reasons for the delays when you present your progress reports, list the steps being taken to get the project back on track, and create a revised MS Project plan.
track layout to the other, and to return to the starting point using the
designated departure and arrival tracks. During testing, your TA will place
railroad cars to some of the locations, A through K, shown in Figure 2,
blocking paths. Your logic will then throw the train switches (as described
below) to allow the locomotive to travel from Terminal Station L to Terminal
Station R, where the locomotive will stop. The TA will change the railroad cars
to other locations, and your logic will throw the switches for the return trip.
Note that the arrival and departure tracks of the two terminals may be dictated
by cars blocking at Locations A, B, K, or L. If both tracks at a terminal are
available, you can use either one.</p>


<p>The EG staff has already done
For help in planning your project, review the [[How to plan the schedule and calculate costs for a project]] page in the section called <i>Material to help you with the project</i> elsewhere in this manual.
much of the work for you, providing Virtual Instruments (VIs) that will tell
you which of the locations in Figure 2 are blocked, and accepting outputs from
your VI as described below to actually throw the track switches. Design a
LabVIEW VI which contains a digital logic circuit that accepts the following
inputs:</p>


<ul>
There should be at least twenty tasks/subtasks and three Milestones. Milestones should be noted with the duration of &quot;0day&quot;. Moreover, the copy picture function included in MS Project Software should be used instead of the print screen function of the computer.
<li>The status of each of the 12 locations, i.e., whether they are occupied or not.
This information will come from a VI provided by the EG staff.</li>


<li>A switch included in LabVIEW that indicates the direction of the train's travel,
== COST ESTIMATE ==
i.e., from left to right or right to left.</li>
You will need to create a cost estimate using quotes from a reputable vendor. Examples are [http://www.digikey.com Digikey], [http://www.newark.com Newark Electronics/Newark In One], and [http://www.onsemi.com On Semiconductor]. You are not limited to these vendors. This cost estimate includes prices for TTL Logic Chips for the various logic gates you use in your LabVIEW VI. When doing your cost estimate, be sure to include specification sheets from the vendors for all of the chips that you may use.


<li>A switch included in LabVIEW that indicates whether the train's travel will be
Once your design is complete, a cost estimate must be generated that specifies the cost of all the materials and labor required for the construction of your design. Tabulate this cost information clearly in an Excel spreadsheet, using the materials cost list provided. You can get help in calculating the cost by reviewing the [[How to plan the schedule and calculate costs for a project]] page in the section called <i>Material
via <i>Normal Mode</i> or <i>Reverse Running Mode</i></li>
to help you with the project</i> elsewhere in this manual.
</ul>


<p>Your digital logic must provide the following outputs:</p>
Have all the materials and parts used categorized in different groups instead of including individual parts. Make sure to include the units of each part used in a group and total them up for that individual group. Moreover, the cost of labor should be included. You can get help on the labor cost by reading the [[How to plan the schedule and calculate costs for a project]] page in the section called <i>Material to help you with the project</i> elsewhere in this manual.


<ul>
== MILESTONES ==
<li>If one or more paths is available, supply the digital logic outputs for the
As you work on your project, you will be required to present periodic reports on your progress. We call these <b>Milestones</b>. All the items assigned in each Milestone are called <b>deliverables</b>. These deliverables often consist of a combination of written submissions, presentations, and demonstrations.
settings of the track switches for each of the eight sectors to the VI provided
by the EG staff. This VI will throw the switches according to your specification,
allowing the train to travel from one Terminal Station to the other.</li>


<li>A red light included in LabVIEW on the <i>Front Panel</i> that illuminates if there is
=== Milestone 1 ===
no path available.</li>
==== Introduction to Digital Logic ====
</ul>
For this milestone, we will create a plan for the train to leave Terminal Station L. This includes having the logic necessary for train to be able to successfully navigate the first three (3) sectors. <b><i>You will NOT be physically programming in LabVIEW for this Milestone</i></b>. When the train leaves the left terminal from middle position, the Sector 1 switch is in place to allow the train to travel outbound via Sector 2 or Sector 3. When the train leaves the terminal from the top position, the Sector 1 switch is in place to allow the train to travel straight. When the train leaves from the terminal from the bottom position, the Sector 2 and Sector 3 switches are set to allow the train to continue towards light sensor C. You will be creating a Boolean Equation to determine which Sector to use, based on which of the tracks is blocked by railroad cars. <b><i>For this Milestone, your train will operate in REVERSE MODE, meaning it can take any possible path in order to avoid a collision.</i></b> In the following milestones as well as your semester long design project you will incorporate the logic you create for Milestone 1 into your project.


<p>After your VI has set the switches, your TA will drive the train from the Terminal
[[Image:005.jpg|frame|none|Figure 3: Sample Terminal with switch]]
Station L to Terminal Station R, and move the blocking cars. After your VI sets the switches
for the return trip, your TA will drive the locomotive back to the Terminal Station L.</p>


<h2>MICROSOFT PROJECT</h2>
Here are the Boolean Variables you will need to create the equation:
# Let T represent the track that the train is on at the terminal. T can take on one of three values (Top, Middle, Bottom), which means that 3 separate truth tables have to be generated, each for every starting position. Furthermore, since there are a total of 3 sectors for this Milestone, you will need to generate a truth table for each Sector as well. Finally, there is also NO PATH logic for each sector, this makes a total count of Truth Tables for this milestone equal to 12. (For example: Starting on top position and sector 1 logic, starting on middle position and sector 3 logic.)
# Let A, B, C, and D represent a train blocking the respective portion of the track.
# If A, B, C, or D = 0, the corresponding track is free of obstacles. If A, B, C, or D  = 1, the corresponding track is blocked.
# Let S represent the status of the sector. For simplicity, there are only two values. When S=0, any train passing over the switch will stay on course and go straight. When S=1, any train passing over the switch will be diverted to the other track, in other words cross the track.
# Let C represent whether or not you can proceed through the switch to one track or the other. This condition is also known as the “NO PATH” condition. When C=1, the right of way is blocked, and the train cannot proceed by using any possible combination. When C=0, the track is clear, and the train can proceed through the switch.


<p>Your team must create a time management plan using Microsoft Project (MS Project).
[[Image:006.png|frame|none|Figure 4: Represents the three sectors that need to be completed for Milestone 1]]
You can learn Microsoft Project by doing the [[MS Project Skill Builder]] contained elsewhere in
this manual. This plan must include all tasks related to the project. Each task must be named,
assigned a duration and assigned to a specific person (or people). You must begin your work by creating an MS Project plan.
Follow your project plan throughout the semester. If the team falls behind schedule, explain
the reasons for the delays when you present your progress reports, list the steps being taken
to get the project back on track, and create a revised MS Project plan.</p>


<p>For help in planning your project, review the page called
Create a truth table for each starting position for each sector showing every possible outcome. (See example below) Once you create 12 truth tables, proceed to create a Boolean equations based upon your truth tables. Create Karnaugh-Maps (K-Maps) and use them to simplify the Boolean equations (if possible). See the Digital Logic Lab in this lab manual for further assistance. Remember, you are solving for S1, S2, S3 and C.
[[How to plan the schedule and calculate costs for a project]] in the section called <i>Material
to help you with the project</i> elsewhere in this manual.</p>


<p>There should be at least twenty tasks/subtasks and three Milestones. Milestones should be
[[Image:008.png|frame|right|Figure 5b: Along with your table make sure to include a legend (key).]]
noted with the duration of "0day". Moreover, the copy picture function included in MS Project
[[Image:007.png|frame|none|Figure 5a: Example truth table, this truth table incorporates 4 sets of logic, S1, S2, S3 and C. Your truth tables can take a similar format or can be split up into separate truth tables.]]
Software should be used instead of the print screen function of the computer.</p>


<h2>COST ESTIMATE</h2>
For the Milestone 1 presentation, prepare a brief description of the problem, what your goals are, and how you will accomplish these goals. In addition, write up a cost estimate of your implementation for leaving Terminal Station L, plus an estimate of the overall project by multiplying this cost by an appropriate factor based on the additional complexity of the overall train layout. The presentation should also include your MS Project chart as well as what you plan to do next.


<p>You will need to create a cost
<b>Milestone 1 Deliverables:</b> A presentation. Prepare a brief description of the problem, what your goals are, and how you will accomplish these goals. Be sure to include examples of the generated truth tables, un-simplified Boolean equations, Karnaugh-Maps and then the simplified Boolean equations. <b><i>DO NOT INCLUDE</i></b> all 12 truth tables in your presentation, pick out several as examples to show your understanding and comprehension of the problem. You may however, include all 12 simplified equations to show your progress. Calculate a cost estimate of your implementation for leaving Terminal Station L, plus an estimate of the overall project by multiplying this cost by an appropriate factor based on the additional complexity of the overall train layout, and an MS Project plan. Be sure to include any special features and benefits of your design.
estimate using quotes from a reputable vendor. Examples are Digikey
(http://www.digikey.com), Newark Electronics/Newark In One (http://www.newark.com), and On Semiconductor
(http://www.onsemi.com). You are not
limited to these vendors. This cost estimate includes prices for TTL Logic
Chips for the various logic gates you use in your LabVIEW VI. When doing your
cost estimate, be sure to include specification sheets from the vendors for all
of the chips that you may use.</p>


<p>Once a robot design is complete,
<i><b>Note:</b> Whenever you revise your drawing(s), your cost estimate, or your MS Project plan, you must include the initial drawing, the initial cost estimate, or the initial MS Project plan, <b>in addition to</b> the revision.</i>
a cost estimate must be generated that specifies the cost of all the materials
and labor required for the construction of your design. Tabulate this cost information
clearly in an Excel spreadsheet, using the materials cost list provided. You can get help in calculating
the cost by reviewing the page called [[How to plan the schedule and calculate costs for a project]] in
the section called <i>Material to help you with the project</i> elsewhere in this manual.</p>


<p>Have all the materials and parts used categorized in different groups instead of including
<b><i>Look Ahead:</i></b> What tasks do you plan between now and Milestone 2?
individual parts. Make sure to include the units of each part used in a group and total them up
for that individual group. Moreover, the cost of labor should be included. You can get help on
the labor cost by reading the page [[How to plan the schedule and calculate costs for a project]] in
the section called <i>Material to help you with the project</i> elsewhere in this manual.</p>


<h2>MILESTONES</h2>
=== Milestone 2 ===
In Milestone 1, we created a plan for the train to leave Terminal Station L, pass through Sectors 1, 2, 3. For Milestone 2, we will be creating another plan. This time, you will need to create the Boolean logic for the train to travel through Sectors 4, 5, 6 making use of light sensors A, B, C, D, E, F, G, H and translate that information into a LabVIEW VI. Furthermore, you will need to accomplish this task for both modes of operation, Normal as well as Reverse. Remember, you work on only the Reverse mode for Milestone 1. In Normal mode travel from left to right, the only sectors that are allowed to be switched are 2, 3, 6, and 7. Since sector 7 is not in the scope of this Milestone you do not need to worry about logic for sector 7. Your milestone <b><i>MUST</i></b> incorporate the logic you developed for Milestone 1.


<p>As you work on your project, you will be required to present periodic reports on your progress. We call these <b>Milestones</b>.
[[Image:009.jpg|frame|none|Figure 6: Outlines the scope of milestone 2. Light sensors A-H as well as sectors 1-6 will be used in this milestone. Both train operation modes must be completed for this milestone.]]
All the items assigned in each Milestone are called <b>deliverables</b>. These deliverables often consist of a combination of written
submissions, presentations, and demonstrations.</p>


<h3>Milestone 1</h3>
Here are the Boolean variables you will need to create the equation. Many of the conventions have stayed the same from Milestone 1 and will stay the same until completion of the project:
# Let T represent the track that the train is on at the terminal. As before T can take on 3 possible values, Top, Middle, and Bottom.
# Let C represent a train blocking input C.
# Let D represent a train blocking input D.
# Let E represent a train blocking input E.
# Let F represent a train blocking input F.
# If C, D, E, or F = 0, the corresponding track is free of obstacles. If C, D, E, or F = 1, the corresponding track is blocked.
# Let S<sub>1</sub> represent the status of the switch at Sector 1. Let S<sub>2</sub> represent the status of the switch at Sector 2. Let S<sub>3</sub> represent the status of the switch at Sector 3. When S<sub>1</sub>, S<sub>2</sub>, or S<sub>3</sub> = 0, the train goes straight through. When S<sub>1</sub>, S<sub>2</sub>, or S<sub>3</sub> = 1, the train crosses over on to the other track.
#Let N represent whether or not you can proceed through the switches to one track or another. When N=0, the path is clear, and the train can proceed. When N=1, all paths are blocked, and the train cannot proceed through any of the switches.


<h4>(Introduction to Digital Logic)</h4>
Just like you did for Milestone 1, create a truth table showing every possible outcome, a Boolean equation based upon your truth tables, and a K-Map and use it to simplify the Boolean equation (if possible). Note: Once you write the logic as you have for Sectors 1, 2, 3 you may use those sectors as input on your truth table instead of writing down light sensor names. In other words, you may use the logic you already wrote to help simplify your Boolean equations before you apply Karnaugh-Maps. Once you have simplified your equations, you can transfer your equations to a LabVIEW VI.


<p>For this milestone, we will create a plan for the train to leave Terminal Station L. When the train leaves the terminal, the Sector 1
On the front panel, you will need:
switch is in place to allow the train to travel outbound via Sector 2 or Sector 3. You will be creating a Boolean Equation to determine
* 9 Boolean controls, one for each input (A, B, C, D, E, F, G and H), and one to control whether the train is operating in Normal or Reverse mode.
which Sector to use, based on which of the tracks is blocked by railroad cars.</p>
* You will also need a selector switch that will facilitate the selection of the starting track of the train. (Top, Middle, or Bottom)
* 7 Boolean indicators, one for each sector (S1, S2, S3, S4, S5, and S6), and one indicating No Path (N).


<p align=center>[[Image:train4.jpg]]</p>
On the back panel, it is up to you how you will program the VI. You are strongly encouraged to use of case structures.


<p class=caption>Figure 3: Terminal with switch</p>
Please refer to [[#Appendix B|Appendix B]] further down the page for information on how to interface your VI with the Component Testing VI before reading on. It is extremely important that this step be performed before you are ready to component test. Through the use of the nine-node pattern your solution VI will be able to communicate with our tester VI, so make sure to read the instructions on how to configure your VI correctly.


<p align=center>[[Image:train6.jpg]]</p>
[[Image:010.png|frame|right|Figure 7: Nine node pattern]]
So now that you know you need a connector pattern to interface with the Component Testing VI, you will need to use the following nine node pattern:
<br style="clear:both" />
[[Image:011.png|frame|right|Figure 8: Node assignments of the student's digital logic circuit]]
And connect the pattern in the following manner:
<br style="clear:both" />
<b>Milestone 2 Deliverables:</b> A copy of your presentation slides that includes a brief description of the problem, your truth tables, screenshots of your VI, what your goals are, and how you plan to accomplish these goals, a revised cost estimate of the overall project based on your solution, your revised MS Project plan, and your signed Component Testing form. Also, include your Boolean Equation.


<p class=caption>Figure 4: Terminal with locomotive (blue) leaving with a blocking car ahead (yellow)</p>
<i><b>Note:</b> Whenever you revise your drawing(s), your cost estimate, or your MS Project plan, you must include the initial drawing, the initial cost estimate, or the initial MS Project plan, <b>in addition to</b> the revision.</i>


<p>Here are the Boolean Variables you will need to create the equation:</p>
<b><i>Look Ahead:</i></b> What tasks do you plan between now and Milestone 3?


<ol>
=== Milestone 3 ===
<li>Let T represent the track that the train is on at the terminal. If T=0, the
train is on the bottom track, and if T=1 the train is on the top track. </li>


<li>Let A represent a train blocking the bottom track after the switch.</li>
Prepare a VI that will use your Boolean equations to show how the track switches will be set. This includes the entire track utilizing all of the eight sectors, both modes of operation (Normal and Reverse), and both directions of travel (Left to Right and Right to Left). Use Boolean switches in the LabVIEW front panel to indicate which track locations are occupied by cars. Use lights on the front panel to indicate which switches are set to divert trains traveling over them. Refer to the Train Electrical Specifications for more information. Refer to [[#Appendix B|Appendix B]] for more information on how to interface your VI with the Commissioning VI.


<li>Let B represent a train blocking the top track after the switch.</li>
<b>Milestone 3 Deliverables:</b> A copy of your presentation slides that includes a brief description of the problem, what your goals are, and how you plan to accomplish these goals, a revised cost estimate of the overall project based on your solution, and your revised MS Project plan. Also, include the screen shots of front and back panels of your LabVIEW program.


<li>If A or B = 0, the corresponding track is free of obstacles. If A or B = 1, the
<b><i>Look ahead:</i></b> What tasks do you plan between now and the completion of the project?
corresponding track is blocked.</li>


<li>Let S represent the status of the switch. For simplicity, there are only two
== COMPONENT TESTING ==
values. When S=0, any train passing over the switch will stay on course. When
S=1, any train passing over the switch will be diverted to the other
track.</li>


<li>Let C represent whether or not you can proceed through the switch to one track
<p class=MsoNormal><span style='font-size:10.0pt'>Component Testing is a
or the other. When C=1, the right of way is blocked, and the train cannot
benchmark that is used to let students assess their progress in their Semester
proceed. When C=0, the track is clear, and the train can proceed through
Long Design Projects. This is commonly used as a time management tool.</span></p>
the switch.</li>
</ol>


<p>Create a truth table showing every possible outcome. (Hint: How many possibilities
<p class=MsoNormal><span style='font-size:10.0pt'>For Component Testing, you
should there be?) Create a Boolean equation based upon your truth tables. Create a K-Map
will need to interface your VI created from Milestone 2 with the VI located at</span></p>
and use it to simplify the Boolean equation (if possible). See the Digital Logic Lab in
this lab manual for further assistance. Remember, you are solving for S and C.</p>


<p>For the Milestone 1
<p class=MsoNormal align=center style='text-align:center'><b><span
presentation, prepare a brief description of the problem, what your goals are,
style='font-size:10.0pt;color:red'>C:\SLDP Railroad Train Guidance
and how you will accomplish these goals. In addition, write up a cost estimate
System\Component Testing.vi</span></b></p>
of your implementation for leaving Terminal Station L, plus an estimate of the
overall project by multiplying this cost by an appropriate factor based on the
additional complexity of the overall train layout. The presentation should also
include your MS Project chart as well as what you plan to do next.<i></i></p>


<p><b>Milestone 1 Deliverables:</b> A presentation. Prepare a brief description
<p class=MsoNormal><span style='font-size:10.0pt'>on the PC connected to the
of the problem, what your goals are, and how you will accomplish these goals.
train layout. Your TA will test your VI by running your program with various
Calculate a cost estimate of your implementation for leaving Terminal Station L,
combinations of tracks being blocked.</span></p>
plus an estimate of the overall project by multiplying this cost by an appropriate
factor based on the additional complexity of the overall train layout, and an MS
Project plan.Be sure to include any special features and benefits of your design.</p>


<p><i><b>Note:</b> Whenever you revise your drawing(s), your cost estimate, or your
== COMMISSIONING ==
MS Project plan, you must include the initial drawing, the initial cost estimate,
or the initial MS Project plan, <b>in addition to</b> the revision.</i></p>


<p><b><i>Look Ahead:</i></b> What tasks do you plan between now and Milestone 2?</p>
<p class=MsoNormal><span style='font-size:10.0pt'>Load your VI into the PC
connected to the train layout, and interface it with the Commissioning Test VI.
The Commissioning Test VI can be located at</span></p>


<h3>Milestone 2</h3>
<p class=MsoNormal align=center style='text-align:center'><b><span
style='font-size:10.0pt;color:red'>C:\SLDP Railroad Train Guidance
System\Commissioning Test.vi</span></b></p>


<p>In Milestone 1, we created a plan for the train to leave Terminal Station L,
<p class=MsoNormal><span style='font-size:10.0pt'>on the PC connected to the
pass through Sector 1, and proceed to either Sector 2, and Sector 3. For this
train layout. Your TA will then place train cars in various locations, and
milestone, we will be creating another plan. This time, you will need to create
position the locomotive on a track at Terminal Station L. The TA will first
the Boolean logic for the train to travel to, but not through, Sector 4 and
test your program using Normal Mode. Set the Boolean switches on your LabVIEW front
Sector 5, and translate that information into a LabVIEW VI.</p>  
panel so your VI has this information. When the TA is finished, your VI should
read the Boolean switches and locations of the train cars via the VI provided
by the EG staff, calculate the proper track switch positions, and output the
results to the Commissioning Test VI. This VI will set the track switches
according to your specifications. The TA will verify that the path you have
established will work. Once your VI establishes a successful path, the TA will
drive the locomotive from left to right. After the locomotive arrives on the
proper track at Terminal Station R, the TA will rearrange the cars blocking
paths for the return to Terminal Station L. Set the Boolean switches on your
LabVIEW front panel to indicate this information. Your logic should read the
blockage information from the VI provided by the EG staff and set the track
switches to the proper position. The TA will verify that you've established a
good path, and will drive the locomotive back to the Terminal Station L,
arriving on the proper track.</span></p>


<p>Here are the Boolean variables you will need to create the equation:</p>
<p class=MsoNormal><span style='font-size:10.0pt'>After you have tested your VI
with normal running, the TA will then test your VI in Reverse Running Mode. The
procedure will be the same as the Normal Mode, with the exception of Reverse
Running.</span></p>


<ol>
<p class=MsoNormal><span style='font-size:10.0pt'>Finally, your TA will test
<li>Let T represent the track that the train is on at the terminal. If T=0,
your VI such that it indicates no path correctly. If your VI completes all
the train is on the bottom track, and if T=1 the train is on the top track. </li>
tests successfully, you will be commissioned.</span></p>


<li>Let C represent a train blocking input C.</li>
== COMPETITION ==
<li>Let D represent a train blocking input D.</li>
<li>Let E represent a train blocking input E.</li>
<li>Let F represent a train blocking input F.</li>
<li>If C, D, E, or F = 0, the corresponding track is free of obstacles. If C, D,
E, or F = 1, the corresponding track is blocked.</li>


<li>Let S<sub>1</sub> represent the status of the switch at Sector 1. Let S<sub>2</sub> represent the
<p><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>At the
status of the switch at Sector 2. Let S<sub>3</sub> represent the status of the switch at
discretion of the EG staff, you may be competing against other groups in your
Sector 3. When S<sub>1</sub>, S<sub>2</sub>, or S<sub>3</sub> = 0, the train goes straight through.
section. The winner of the competition will be the team that creates the VI
When S<sub>1</sub>, S<sub>2</sub>, or S<sub>3</sub> = 1, the train crosses over on to the other track.</li>
that has the locomotive traverse the shortest distance in its outbound and
return trips combined, with all teams using the same arrangement of blocking
cars. In the event of a tie, the team with the lowest cost will win.</span></p>


<li>Let N represent whether or not you can proceed through the switches to one
== FINAL PRESENTATION ==
track or another. When N=0, the path is clear, and the train can proceed. When
N=1, all paths are blocked, and the train cannot proceed through any of the switches.</li>
</ol>


<p>Just like you did for Milestone 1, create a truth table showing every possible
<p><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>Your final
outcome, a Boolean equation based upon your truth tables, and a K-Map and use it
presentation will be a technical briefing, similar to the milestones, plus a
to simplify the Boolean equation (if possible). Once you have simplified your
sales presentation explaining why MTA New York City Transit should select your
equations, you can transfer your equations to a LabVIEW VI.</p>
company instead of someone else's. Please include the following:</span></p>
 
<p>On the front panel, you will need:</p>
<ul>
<li>5 Boolean controls, one for each input (C, D, E, and F), and one to control whether
the train is leaving Terminal Station L from the top track or bottom track (T).</li>


<li>4 Boolean indicators, one for each sector (S1, S2, and S3), and one indicating No
<ul type=disc>
Path (N).</li>
<li class=MsoNormal><span style='font-size:10.0pt'>A description of the
    problem</span></li>
<li class=MsoNormal><span style='font-size:10.0pt'>An overview of your
    solution</span></li>
<li class=MsoNormal><span style='font-size:10.0pt'>A description of your
    company and why it is qualified to successfully do this job</span></li>
<li class=MsoNormal><span style='font-size:10.0pt'>A sample of the truth
    tables you created</span></li>
<li class=MsoNormal><span style='font-size:10.0pt'>The resulting logic
    equations derived and simplified via your K-Map</span></li>
<li class=MsoNormal><span style='font-size:10.0pt'>Your final LabVIEW programs</span></li>
<li class=MsoNormal><span style='font-size:10.0pt'>The cost estimate</span></li>
<li class=MsoNormal><span style='font-size:10.0pt'>Your MS Project from each
    milestone showing your progress</span></li>
<li class=MsoNormal><span style='font-size:10.0pt'>A video of the locomotive
    traversing the layout from left to right and returning</span></li>
<li class=MsoNormal><span style='font-size:10.0pt'>Why your company is the
    best choice in awarding this contract</span></li>
</ul>
</ul>


<p>On the back panel, it is up to you how you will program the VI.  You may want to
<p><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>After you
consider the use of case structures.</p>
deliver your final presentation, you will proceed to the model shop to have
 
your work commissioned, if you are not commissioned already. A signed
<p>Please refer to Appendix B further down the page for information on how to interface
commissioning statement must be included with the TA copy of your submission.</span></p>
your VI with the Component Testing VI before reading on.</p>
 
<p>So now that you know you need a connector pattern to interface with the Component
Testing VI, you will need to use the following nine node pattern:</p>
 
<p align=center>[[Image:Train10.jpg]]</p>
 
<p class=caption>Figure 5: Nine node pattern</p>
 
<p>And connect the pattern in the following manner:</p>
 
<p align=center>[[Image:Train11.jpg]]</p>
 
<p class=caption>Figure 6: Node assignments of the student's digital logic circuit</p>


<p><b>Milestone 2 Deliverables:</b> A copy of your presentation slides that includes
== Final Submission ==
a brief description of the problem, your truth tables, screenshots of your VI, what
your goals are, and how you plan to accomplish these goals, a revised cost estimate
of the overall project based on your solution, your revised MS Project plan, and your
signed Component Testing form.  Also, include your Boolean Equation.</p>


<p><i><b>Note:</b> Whenever you revise your drawing(s), your cost estimate, or your MS
<p><span style='font-size:10.0pt'>Your project should be submitted as a folder
Project plan, you must include the initial drawing, the initial cost estimate, or the
containing the following deliverables:</span></p>
initial MS Project plan, <b>in addition to</b> the revision.</i></p>


<p><i><b>Look Ahead:</b></i> What tasks do you plan between now and Milestone 3?</p>
<ul type=disc>
 
<li class=MsoNormal><span style='font-size:10.0pt'>Component testing statement</span></li>
<h3>Milestone 3</h3>
<li class=MsoNormal><span style='font-size:10.0pt'>Commissioning statement</span></li>
 
<li class=MsoNormal><span style='font-size:10.0pt'>Hardcopy and CD containing:</span></li>
<p>Prepare a VI that will use your Boolean equations to show how the track switches
  <ul type=square>
will be set. Use Boolean switches in the LabVIEW front panel to indicate which track
  <li class=MsoNormal><span style='font-size:10.0pt'>Final presentation</span></li>
locations are occupied by cars. Use lights on the front panel to indicate which
  <li class=MsoNormal><span style='font-size:10.0pt'>Table of appendices.</span></li>
switches are set to divert trains traveling over them. Refer to the Train Electrical
  <li class=MsoNormal><span style='font-size:10.0pt'>Appendices:</span></li>
Specifications for more information.  Refer to Appendix B for more information on
  <ul type=disc>
how to interface your VI with the Commissioning VI.</p>
  <li class=MsoNormal><span style='font-size:10.0pt'>Truth tables</span></li>
 
  <li class=MsoNormal><span style='font-size:10.0pt'>Simplified Boolean
<p><b>Milestone 3 Deliverables:</b> A copy of your presentation slides that includes
      equations</span></li>
a brief description of the problem, what your goals are, and how you plan to accomplish
  <li class=MsoNormal><span style='font-size:10.0pt'>LabVIEW VI</span></li>
these goals, a revised cost estimate of the overall project based on your solution,
  <li class=MsoNormal><span style='font-size:10.0pt'>Video</span></li>
and your revised MS Project plan. Also, include the screen shots of front and back panels
  <li class=MsoNormal><span style='font-size:10.0pt'>Final MS Project Schedule</span></li>
of your LabVIEW program.</p>
  <li class=MsoNormal><span style='font-size:10.0pt'>Final Cost estimate</span></li>
 
  <li class=MsoNormal><span style='font-size:10.0pt'>Resume(s)</span></li>
<p><i><b>Look ahead:</b></i> What tasks do you plan between now and the completion of
  </ul>
the project?</p>
</ul>
 
<h2>COMPONENT TESTING</h2>
 
<p>Component Testing is a benchmark that is used to let students assess their progress
in their Semester Long Design Projects. This is commonly used as a time management
tool.</p>
 
<p>For Component Testing, you will need to interface your VI created from Milestone 2
with the VI located at</p>
 
<p><b><pre>C:\SLDP Railroad Train Guidance System\Component Testing.vi</pre></b></p>
 
<p>on the PC connected to the train layout. Your TA will test your VI by running your
program with various combinations of tracks being blocked.</p>
 
<h2>COMMISSIONING</h2>
 
<p>For commisioning, since you have to go in both directions, you will need to add a switch
to your VI to determine what direction to use. On the direction switch, traveling left to
right should be a 1 and right to left should be a 0.</p>
 
<p>Load your VI into the PC connected to the train layout, and interface it with the
Commissioning Test VI. The Commissioning Test VI can be located at</p>
 
<p><b><pre>C:\SLDP Railroad Train Guidance System\Commissioning Test.vi</pre></b></p>
 
<p>on the PC connected to the train layout. Your TA will then place train cars in various
locations, and position the locomotive on a track at Terminal Station L. The TA will first
test your program using Normal Mode. Set the Boolean switches on your LabVIEW front panel
so your VI has this information. When the TA is finished, your VI should read the Boolean
switches and locations of the train cars via the VI provided by the EG staff, calculate the
proper track switch positions, and output the results to the Commissioning Test VI. This VI
will set the track switches according to your specifications. The TA will verify that the
path you have established will work. Once your VI establishes a successful path, the TA will
drive the locomotive from left to right. After the locomotive arrives on the proper track at
Terminal Station R, the TA will rearrange the cars blocking paths for the return to Terminal
Station L. Set the Boolean switches on your LabVIEW front panel to indicate this information.
Your logic should read the blockage information from the VI provided by the EG staff and set
the track switches to the proper position. The TA will verify that you've established a
good path, and will drive the locomotive back to the Terminal Station L, arriving on the
proper track.</p>
 
<p>After you have tested your VI with normal running, the TA will then test your VI in Reverse
Running Mode. The procedure will be the same as the Normal Mode, with the exception of Reverse
Running.</p>
 
<p>Finally, your TA will test your VI such that it indicates no path correctly. If your VI
completes all tests successfully, you will be commissioned.</p>
 
<h2>COMPETITION</h2>
 
<p>At the discretion of the EG
staff, you may be competing against other groups in your section. The winner of
the competition will be the team that creates the VI that has the locomotive
traverse the shortest distance in its outbound and return trips combined, with
all teams using the same arrangement of blocking cars. In the event of a tie,
the team with the lowest cost will win.</p>
 
<h2>FINAL PRESENTATION</h2>
 
<p>Your final presentation will be a technical briefing, similar to the milestones, plus a sales presentation
explaining why MTA New York City Transit should select your company instead of
someone else's. Please include the following:</p>
 
<ul>
<li>A description of the problem</li>
<li>An overview of your solution</li>
<li>A description of your company and why it is qualified to successfully do this job</li>
<li>A sample of the truth tables you created</li>
<li>The resulting logic equations derived and simplified via your K-Map</li>
<li>Your final LabVIEW programs</li>
<li>The cost estimate</li>
<li>Your MS Project from each milestone showing your progress</li>
<li>A video of the locomotive traversing the layout from left to right and returning</li>
<li>Why your company is the best choice in awarding this contract</li>
</ul>
</ul>


<p>After you deliver your final presentation, you will proceed to the model shop to have
=== EARLY ACCEPTANCE ===
your work commissioned, if you are not commissioned already. A signed commissioning
statement must be included with the TA copy of your submission.</p>


<h2>Final Submission</h2>
<p><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>If you
<p>Your project should be submitted as a folder containing the following deliverables:</p>
complete your project one week early, you are eligible for a bonus that will be
added to your final semester-long project grade. You must submit all
deliverables by 5PM one week before your section is scheduled to present (see
syllabus for exact date). To commission early, all required information on the
form titled </span><a href="https://egmanual.poly.edu/images/1/1b/Early.doc"
title=Early.doc><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>Project
Submission Form</span></a><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>,
found on the EG web site, must be approved, accepted, and signed by a TA. The
deliverables received early are the ones you will use in your presentation. No
adjustments to the deliverables commissioned will be accepted.</span></p>


<ul>
=== LIQUIDATED DAMAGES ===
<li>Component testing statement</li>
<li>Commissioning statement</li>
<li>Hardcopy and CD containing:</li>
<ul type="square">
<li>Final presentation</li>
<li>Cover page and table of appendices.</li>
<li>Appendices:</li>
<ul type="disc">
<li>Truth tables</li>
<li>Simplified Boolean equations</li>
<li>LabVIEW vi</li>
<li>Video</li>
<li>Final MS Project Schedule</li>
<li>Final Cost estimate</li>
<li>Resume(s)</li>
</ul>
</ul>
</ul>


<h3>EARLY ACCEPTANCE</h3>
<p><span style='font-size:10.0pt'>If you do not complete all your deliverables
and do not commission during the Final Presentation, you will incur liquidated
damages as defined in the grading policy.</span></p>


<p>If you complete your project one week early, you are eligible for a bonus that will be added to your final semester-long project
= Appendix A: Train Electrical Specifications =
grade. You must submit all deliverables by 5PM one week before your section is scheduled to present (see syllabus for exact date).
To commission early, all required information on the form titled [[Media:Early.doc|Project Submission Form]], found on the
EG web site, must be approved, accepted, and signed by a TA. The deliverables received early are the ones you will use in your
presentation. No adjustments to the deliverables commissioned will be accepted.</p>


<h3>LIQUIDATED DAMAGES</h3>
<p class=MsoNormal><a name="Output_control_of_the_track"></a><b><span
style='font-size:13.5pt;font-family:"Times New Roman","serif"'>Output control
of the track</span></b></p>


<p>If you do not complete all your deliverables and do not commission during the Final Presentation, you will incur liquidated damages
<p class=MsoNormal align=center style='text-align:center'><span
as defined in the grading policy.</p>
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><img border=0
width=627 height=146 id="Picture 5"
src="Train%20Write-UP%20Revised%20091309_files/image001.jpg"></span></p>


<h2>Appendix A: Train Electrical Specifications:</h2>
<p class=MsoNormal align=center style='text-align:center'><span
class=MsoSubtleEmphasis>Figure 1: Layout of the eight sectors on the train
track</span></p>


<h3>Output control of the track</h3>
<p class=MsoNormal><span style='font-size:10.0pt'>Each part of the track is
 
<p align=center>[[Image:train1.gif]]</p>
 
<p class=caption>Figure 1: Layout of the eight sectors on the train track</p>
 
<p>Each part of the track is
separated into different sectors. The sectors can be classified into two types,
separated into different sectors. The sectors can be classified into two types,
X and Y (refer to the diagram). Sectors 1, 4, 5, and 8 are X type and Sectors 2,
X and Y (refer to the diagram). Sectors 1, 2, 5, and 7 are X type and Sectors 3,
3, 6, and 7 are Y type.</p>
4, 6, and 8 are Y type.</span></p>


<p>There is a Sub-VI that will be
<p class=MsoNormal><span style='font-size:10.0pt'>There is a Sub-VI that will
provided that will cause the tracks to move depending upon which data is sent
be provided that will cause the tracks to move depending upon which data is
to the VI. Only include this Sub-VI in your their logic VI. The Sub-VI has eight inputs which are Boolean
sent to the VI. Only include this Sub-VI in your their logic VI. The Sub-VI has
named, Sector1 through Sector 8.</p>
eight inputs which are Boolean named, Sector 1 through Sector 8.</span></p>


<p>For the X type sectors, a
<p class=MsoNormal><span style='font-size:10.0pt'>For the X type sectors, a
Boolean value of <i>True</i> will cause the
Boolean value of <i>True</i> will cause the tracks to be oriented for the train
tracks to be oriented for the train to cross.  
to cross. A Boolean Value of <i>False</i> will cause tracks to be oriented for
A Boolean Value of <i>False</i> will
the train to go straight.</span></p>
cause tracks to be oriented for the train to go straight.</p>


<p>For the Y type sectors, a
<p class=MsoNormal><span style='font-size:10.0pt'>For the Y type sectors, a
Boolean value of <i>True </i>will cause the
Boolean value of <i>True </i>will cause the tracks to be oriented for the train
tracks to be oriented for the train to be diverted to the outside track. A
to be diverted to the outside track. A Boolean Value of <i>False </i>will cause
Boolean Value of <i>False </i>will cause the
the tracks to be oriented for the train to be diverted to the inside track.</span></p>
tracks to be oriented for the train to be diverted to the inside track.</p>


<h3>Input from the track</h3>
<p class=MsoNormal><a name="Input_from_the_track"></a><b><span
style='font-size:13.5pt;font-family:"Times New Roman","serif"'>Input from the
track</span></b></p>


<p align=center>[[Image:train7.gif]]</p>
<p class=MsoNormal align=center style='text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><img border=0
width=623 height=143 id="Picture 8"
src="Train%20Write-UP%20Revised%20091309_files/image004.jpg"></span></p>


<p class=caption>Figure 2: Layout of the twelve possible positions of train cars on the train track</p>
<p class=MsoNormal align=center style='text-align:center'><span
class=MsoSubtleEmphasis>Figure 2: Layout of the twelve possible positions of
train cars on the train track</span></p>


<p>There are twelve possible locations for train cars which can be located on positions A to L. A Sub-VI
<p class=MsoNormal><span style='font-size:10.0pt'>There are twelve possible
locations for train cars which can be located on positions A to L. A Sub-VI
will be provided to you that will have twelve Booleans outputs named Input A
will be provided to you that will have twelve Booleans outputs named Input A
through Input L. A <i>True</i> will
through Input L. A <i>True</i> will represent a train car being present and a <i>False</i>
represent a train car being present and a <i>False</i>
 
will represent a car not being present on that position. These outputs will be
will represent a car not being present on that position. These outputs will be
used as the inputs to your digital logic circuit.</p>
used as the inputs to your digital logic circuit.</span></p>


<h2>Appendix B: LabVIEW</h2>
= Appendix B: LabVIEW =


<p><b>Note:</b> The following instructions are for your VI that will interface
<p class=MsoNormal><b><span style='font-size:10.0pt'>Note:</span></b><span
with the commissioning VI. For Component Testing, you will need to use a
style='font-size:10.0pt'> The following instructions are for your VI that will
different pattern. Please refer to the Milestone 2 section for information on
interface with the commissioning VI. For Component Testing, you will need to
what pattern to use, and how to connect the pattern to your VI.</p>
use a different pattern. Please refer to the Milestone 2 section for
information on what pattern to use, and how to connect the pattern to your VI.</span></p>


<p>On the Front Panel, there must be 12 Boolean switches to represent the 12
<p class=MsoNormal><span style='font-size:10.0pt'>On the Front Panel, there
inputs of the train and 8 Boolean lights to represent each of the 8 sectors.</p>
must be 12 Boolean switches to represent the 12 inputs of the train and 8
Boolean lights to represent each of the 8 sectors.</span></p>


<ul>
<ul type=disc>
<li>On the front panel of the LabVIEW program, right click on the connector
<li class=MsoNormal><span style='font-size:10.0pt'>On the front panel of the
icon on the top right hand corner icon. Choose <i>Show Connector</i>.</li>
    LabVIEW program, right click on the connector icon on the top right hand
    corner icon. Choose <i>Show Connector</i>.</span></li>
<li class=MsoNormal><span style='font-size:10.0pt'>Right click on the
    connector icon and select <i>Patterns</i>. Choose the pattern with 28
    nodes.</span></li>
</ul>


<li>Right click on the connector icon and select <i>Patterns</i>. Choose the
<p class=MsoNormal align=center style='margin-left:.5in;text-align:center'><span
pattern with 28 nodes.</li>
style='font-size:10.0pt'><img border=0 width=131 height=134 id="Picture 38"
src="Train%20Write-UP%20Revised%20091309_files/image012.png"></span></p>


<p align=center>[[Image:train8.jpg]]</p>
<p class=MsoNormal align=center style='margin-left:.5in;text-align:center'><span
class=MsoSubtleEmphasis><span style='font-size:10.0pt'>Figure 1: Twenty-eight
node pattern</span></span></p>


<p class=caption><b>Figure 1: Twenty-eight node pattern</b></p>
<ul type=disc>
 
<li class=MsoNormal><span style='font-size:10.0pt'>To assign the Boolean switches
<li>To assign the Boolean switches and displays to a
    and displays to a node, click on the Boolean switch or light on the front
node, click on the Boolean switch or light on the front panel then click on the
    panel then click on the node you wish to assign it to.</span></li>
node you wish to assign it to.</li>
<li class=MsoNormal><span style='font-size:10.0pt'>If you make an error in a
 
    connection, right click the incorrect terminal and select <i>Disconnect
<li>If you make an error in a connection, right
    This Terminal.</i></span></li>
click the incorrect terminal and select <i>Disconnect
<li class=MsoNormal><span style='font-size:10.0pt'>The 8 nodes on the left
This Terminal.</i></li>
    side will be for the Boolean switches representing inputs showing
 
    occupancy for locations A-H. The 4 nodes on the bottom half of the icon
<li>The 8 nodes on the left side will be for the
    starting from the left will be the inputs for locations I-L.</span></li>
Boolean switches representing inputs showing occupancy for locations A-H. The 4 nodes on the bottom half of the icon
<li class=MsoNormal><span style='font-size:10.0pt'>Connect the 8 Boolean
starting from the left will be the inputs for locations I-L.</li>
    outputs that represent the orientation of the sector to the 8 nodes on the
    right side of the icon.</span></li>
</ul>


<li>Connect the 8 Boolean outputs that represent the
<div align=center>
orientation of the sector to the 8 nodes on the right side of the icon.</li>


<table align=center border=1 cellspacing=0>
<table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0
<tr>
style='margin-left:.5in'>
<td><p class=entry>Input<br>A</p></td>
<tr>
<td rowspan=4><p class=entry>&nbsp;</p></td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
<td rowspan=4><p class=entry>&nbsp;</p></td>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
<td rowspan=4><p class=entry>No<br>Path</p></td>
  A</span></p>
<td rowspan=4><p class=entry>Direction<br>of Travel</p></td>
  </td>
<td rowspan=4><p class=entry>Top or<br>Bottom</p></td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
<td rowspan=4><p class=entry>Reverse<br>Running</p></td>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>&nbsp;</span></p>
<td><p class=entry>Sector<br>1</p></td>
  </td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>&nbsp;</span></p>
  </td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>No<br>
  Path</span></p>
  </td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Direction<br>
  of Travel</span></p>
  </td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Top
  or<br>
  Bottom</span></p>
  </td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Reverse<br>
  Running</span></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Sector<br>
  1</span></p>
  </td>
  </tr>
  </tr>
<tr>
<tr>
<td><p class=entry>Input<br>B</p></td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
<td><p class=entry>Sector<br>2</p></td>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
  B</span></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Sector<br>
  2</span></p>
  </td>
  </tr>
  </tr>
<tr>
<tr>
<td><p class=entry>Input<br>C</p></td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
<td><p class=entry>Sector<br>3</p></td>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
  C</span></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Sector<br>
  3</span></p>
  </td>
  </tr>
  </tr>
<tr>
<tr>
<td><p class=entry>Input<br>D</p></td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
<td><p class=entry>Sector<br>4</p></td>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
  D</span></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Sector<br>
  4</span></p>
  </td>
  </tr>
  </tr>
<tr>
<tr>
<td><p class=entry>Input<br>E</p></td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
<td rowspan=4><p class=entry>Input<br>I</p></td>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
<td rowspan=4><p class=entry>Input<br>J</p></td>
  E</span></p>
<td rowspan=4><p class=entry>Input<br>K</p></td>
  </td>
<td rowspan=4><p class=entry>Input<br>L</p></td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
<td rowspan=4><p class=entry>&nbsp;</p></td>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
<td rowspan=4><p class=entry>&nbsp;</p></td>
  I</span></p>
<td><p class=entry>Sector<br>5</p></td>
  </td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
  J</span></p>
  </td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
  K</span></p>
  </td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
  L</span></p>
  </td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>&nbsp;</span></p>
  </td>
  <td rowspan=4 style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>&nbsp;</span></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Sector<br>
  5</span></p>
  </td>
  </tr>
  </tr>
<tr>
<tr>
<td><p class=entry>Input<br>F</p></td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
<td><p class=entry>Sector<br>6</p></td>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
  F</span></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Sector<br>
  6</span></p>
  </td>
  </tr>
  </tr>
<tr>
<tr>
<td><p class=entry>Input<br>G</p></td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
<td><p class=entry>Sector<br>7</p></td>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
  G</span></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Sector<br>
  7</span></p>
  </td>
  </tr>
  </tr>
<tr>
<tr>
<td><p class=entry>Input<br>H</p></td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
<td><p class=entry>Sector<br>8</p></td>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Input<br>
  H</span></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Sector<br>
  8</span></p>
  </td>
  </tr>
  </tr>
</table>
</table>


<p class=caption>Figure 2: Node assignments of the student's digital logic circuit</p>
</div>
 
<li>Replace the faded icon in the program <i>Commissioning Test.vi</i> with your
digital logic VI. Right click on the icon and choose replace. Then choose <i>Select
a VI</i> and find your VI. Replace it as shown in Figure 3.</li>
 
<p align=center>[[Image:train9.jpg]]</p>
 
<p class=caption>The program <i>Commissioning Test.vi</i> for students to insert
their logic circuit</p>
 
<li>Before testing your digital logic circuit, turn on the power to the middle workbench
where the two power supplies are connected.</li>
 
<li>Continuously run the <i>Commissioning Test.vi</i> and ensure that the lights on
the front panel accurately represent the presence or absence of a train.</li>


<li>Flip the <i>Reset</i> switch up and down and the track will be preset to the
<p class=MsoNormal align=center style='margin-left:.5in;text-align:center'><span
specified orientation. </li>
class=MsoSubtleEmphasis>Figure 2: Node assignments of the student's digital
logic circuit</span></p>


<li>Once those parameters are checked, test the digital logic circuit by flipping the
<ul type=disc>
<i>Test Track</i> switch.
<li class=MsoNormal><span style='font-size:10.0pt'>Replace the faded icon in
    the program <i>Commissioning Test.vi</i> with your digital logic VI. Right
    click on the icon and choose replace. Then choose <i>Select a VI</i> and
    find your VI. Replace it as shown in Figure 3.</span></li>
</ul>
</ul>


<h2>Footnotes</h2>
<p class=MsoNormal align=center style='margin-left:.5in;text-align:center'><a
href="https://egmanual.poly.edu/index.php/Image:Train9.jpg"
title="Image:train9.jpg"><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
text-decoration:none'><img border=0 width=474 height=355
src="Train%20Write-UP%20Revised%20091309_files/image013.png"
alt="Image:train9.jpg"></span></a></p>


<p><sup>1</sup> <i>Metropolitan Transportation Authority website.</i> 2005. Retrieved January 21, 2005. <i>
<p class=MsoNormal style='margin-left:.5in'><span style='font-size:12.0pt;
http://www.mta.nyc.ny.us/capconstr/sas/sas_history_1</i></p>
font-family:"Times New Roman","serif"'>The program <i>Commissioning Test.vi</i>
for students to insert their logic circuit</span></p>


<h2>Addendum: Train track terminology</h2>
<ul type=disc>
 
<li class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Before
<p>If you're discussing train technology, it helps your credibility to know the proper
    testing your digital logic circuit, turn on the power to the middle
terms and use them properly. For example, what many people call a railroad
    workbench where the two power supplies are connected.</span></li>
<b><i>siding</i></b> is really called a <b><i>lead</i></b>. This is a list of commonly
<li class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Continuously
used terms:</p>
    run the <i>Commissioning Test.vi</i> and ensure that the lights on the
 
    front panel accurately represent the presence or absence of a train.</span></li>
<ul>
<li class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Flip
<li>Tracks split and merge using <b><i>switches</i></b>, also called <b><i>turnouts</i></b>
    the <i>Reset</i> switch up and down and the track will be preset to the
and <b><i>points</i></b>.</li>
    specified orientation. </span></li>
 
<li class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Once
<li>When a train is approaching a switch, if the track splits, the switch is called a
    those parameters are checked, test the digital logic circuit by flipping
<b><i>facing-point switch</i></b>. Otherwise, with the track merging, the switch is called
    the <i>Test Track</i> switch. </span></li>
a <b><i>trailing-point switch</i></b>.</li>
 
<li>A <b><i>siding</i></b> is a section of track that runs parallel to another track, splitting
from it and rejoining it. A siding is typically used to move a slow-moving train out of the
way of a faster train, allowing the faster train to pass. After the faster train is passed,
the slow-moving train continues on its way.</li>
 
<li>A <b><i>lead</i></b>, also known as a <b><i>stub</i></b>, is a split from the main track that
does not rejoin it, i.e. there is just a single switch to get into and out of the lead.</li>
 
<li>A <b><i>turnaround loop</i></b> is a loop of track that bends back on itself. It has
two switches. A train enters the loop using either switch, continues around the loop, and
exits via the other switch traveling in the opposite direction.</li>
 
<li>A <b><i>wye</i></b> has three tracks connected together. The tracks are connected by
three switches that make a connection that looks like a triangle. A train entering the wye
on any track can leave the wye on either of the other two tracks. Also, if a train enters
the wye on one track, leaves on a track, reenters the wye by backing up, leaves on the
third track still backing up, enters the wye a third time by going forward and leaves on
the original track it first entered the wye, it has reversed direction.</li>
</ul>
</ul>
<p>[[Main_Page | Return to Table of Contents]]</p>

Revision as of 03:26, 15 September 2009

RFP*: Railroad Train Guidance System (RTGS)

*RFP is an acronym for Request For Proposal. Internationally, RFPs are called ITTs, an acronym for Invitation To Tender. Companies and governmental agencies use RFPs to solicit new business.

THE INFORMATION ON THIS PAGE IS CORRECT, BUT MAY BE DISPLAYING INCORRECTLY AND MAY ALSO BE MISSING IMAGE FILES AS IT IS STILL UNDER CONSTRUCTION.

INTRODUCTION AND OVERVIEW

The East side of Manhattan has grown steadily since the early 1940s, when the area began to change from an industrial district into a residential neighborhood. Since the two elevated train lines over Second (1942) and Third (1956) Avenues were taken down, the area has been served by the Lexington Avenue line alone.1 Passenger loads on the 4 and 5 Express trains exceed transportation guidelines. Plans have been proposed to alleviate this congestion since the early 1930s. A plan developed in the 1960s led to the construction of several tunnel segments, but was abandoned during the city's fiscal crisis in the 1970s. Many ideas have been proposed and abandoned, due to strong opposition by various groups. The current project has a high probability of being implemented. Once completed, the project will include a two-track line along Second Avenue from 125th Street to the Financial District in Lower Manhattan. It will also include a connection from Second Avenue through the 63rd Street tunnel to existing tracks for service to West Midtown and Brooklyn. The Second Avenue Line will be a boon to those who live and work on the East Side of Manhattan, finally having an alternative to the frenzied congestion of the Lexington Avenue Subway.

The Metropolitan Transportation Authority (MTA) New York City Transit is responsible for the safe and efficient transportation of hundreds of thousands of New Yorkers each day. The vast and complex subway system is home to dozens of train lines and hundreds of stations. Currently, many capital construction projects are underway, including the East Side Access MTA Long Island Railroad Grand Central Connection, which will connect the Long Island Railroad's Main and Port Washington Lines to a new Terminal under Grand Central Station in Manhattan. Although this will help East Side access for Long Island commuters, It will put even more pressure on the 4 and 5 lines, making completion of the Second Avanue Subway line even more important.

In addition to the two tracks, there will also be places where more tracks will be necessary for connections to other lines, bypass when track work is underway, future growth, connection to maintenance facilities, etc.

The Second Avenue Line is in the planning stages. MTA New York City Transit is requesting proposals for the design of the switches and signals for this project. You are competing for a contract to design and program the logic responsible for safely guiding the trains along the Second Avenue Line. A major part of the competition is to demonstrate your capabilities by using digital logic to efficiently control a section of track specified by MTA New York City Transit. For more information, see http://www.mta.nyc.ny.us/capconstr/.

Your plan must be innovative. The winning proposal will be the one that combines solid engineering with a deep understanding of the problem and its solution.

Prerequisite

If you have not already done the Digital Logic Lab, you will probably find the rest of this document confusing. If you have not already done this lab, stop now and read the following sections in this lab:

1 Overview
5 Sample Problem

Then come back and read this document.

SPECIFICATIONS

As part of this project, you are required to use digital logic to design Boolean equations that will be used to control the track switches along the right of way. This includes creating truth tables, transforming these truth tables into simplified Boolean equations, and implementing your equations with digital logic, using LabVIEW to control the train track, allowing a locomotive to safely navigate the track from left to right, and back again.

The route the train can take is controlled by track switches arranged into 8 sectors, as shown in Figure 1. The sectors are outlined using the dark grey color in the figure underneath. Sectors 1, 2, 5, and 7 are called "X" sectors because the combination of the four track switches make a letter "X", and the train can either travel straight or cross over to another track. Sectors 3, 4, 6, and 8 are called "Y" sectors because the sector consists of a single track switch that looks like the letter "Y", and can choose one of two tracks to merge with one track.

File:002.jpg
Figure 1b: Track Layout Key
File:001.jpg
Figure 1a: Track Layout

Your logic design will throw the track switches to allow a train to travel from any station at Terminal Station L (Include L1, L2, and L3) to any station Terminal Station R (R1,R2,R3), reverse direction, and travel back from the Terminal Station R back to Terminal Station L. The train can leave from any ports of the Terminal Station L, and can arrive on any port of Terminal Station R. Similarly, on the return trip, the train can arrive on any port of Terminal Station L.

This trip can be made in the Normal Mode or the Reverse Running Mode. In Normal Mode, defined by MTA New York City Transit, only the Sectors 2, 3, 6 and 7 tracks are used for travel from left to right. Sectors 8, 5, 4, and 1 are used for travel from right to left. In summary, the train must "keep to the right", like cars on a highway. In Reverse Running Mode, defined by the Northeast Operating Rules Advisory Committee Rule 261, all the tracks can be used to travel in either direction. You are asked to take careful note and know the difference between Normal and Reverse mode as this knowledge will help you in the crucial process of designing your LabVIEW Virtual Instrument. It will also impact several of key decisions for this project down the line. (Following this, Virtual Instrument will referred to as VI in this document.)

Construction and repairs must be taken into account in your design. At this time, all of the sectors are functioning properly. With this being the case, you are asked to utilize all of the switching sectors when navigating the train around the track given Reverse Mode. For Normal Mode rules please refer to the paragraph directly above this one. For this project, please DISREGARD all of the routing stations present on the course (RS-A through RS-H)

For Normal Mode, the train leaves Terminal Station L, and crosses Sector 1, if necessary, to get to Sector 2. At Sector 2, you have a choice of using the inner or outer track. Since the optimal path between two points is a straight line, its ideal path would be the inside tracks of Sectors 2, 4, and Sector 6, crossing Sector 8, if necessary, to arrive on the proper track at Terminal Station R. For the return trip, the train would cross Sector 8, if necessary, to get to Sector 7. Its ideal path would be the inside tracks of Sectors 7, 5, and 3, crossing Sector 1, if necessary, to arrive on the proper track at Terminal Station L.

Your train will not be the only train running on the tracks. As part of the specifications, there will be 12 possible locations for other trains to be on the tracks. These locations are indicated with File:003.jpg and are marked with a letter A – L on the following diagram. Your Boolean equations and LabVIEW programs must compensate for this, and allow your train to get through.

File:004.jpg
Figure 2: Possible Locations for Other Trains

Your task is to design a digital logic system that will allow the train to travel from one end of the track layout to the other, and to return to the starting point using the designated departure and arrival tracks. During testing, your TA will place railroad cars to some of the locations, A through L, shown in Figure 2, blocking paths. Your logic will then throw the train switches (as described below) to allow the locomotive to travel from Terminal Station L to Terminal Station R, where the locomotive will stop. The TA will change the railroad cars to other locations, and your logic will throw the switches for the return trip.

The EG staff has already done much of the work for you, providing Virtual Instruments (VIs) that will tell you which of the locations in Figure 2 are blocked, and accepting outputs from your VI as described below to actually throw the track switches. Design a LabVIEW VI which contains a digital logic circuit that accepts the following inputs:

  • The status of each of the 12 locations, i.e., whether they are occupied or not. This information will come from a VI provided by the EG staff.
  • A switch included in LabVIEW that indicates the direction of the train's travel, i.e., from left to right or right to left.
  • A switch included in LabVIEW that indicates whether the train's travel will be via Normal Mode or Reverse Running Mode.
  • A selection box included in LabVIEW that will indicate on which the train will begin its journey (Top, Middle, Bottom for L1/R1, L2/R2, and L3/R3 respectively.

Your digital logic must provide the following outputs:

  • If one or more paths is available, supply the digital logic outputs for the settings of the track switches for each of the eight sectors to the VI provided by the EG staff. This VI will throw the switches according to your specification, allowing the train to travel from one Terminal Station to the other.
  • A red light included in LabVIEW on the Front Panel that illuminates if there is no path available.

After your VI has set the switches, your TA will drive the train from the Terminal Station L to Terminal Station R, and move the blocking cars. After your VI sets the switches for the return trip, your TA will drive the locomotive back to the Terminal Station L. The TA will perform this procedure several times to ensure that you logic solution is indeed correct.

MICROSOFT PROJECT

Your team must create a time management plan using Microsoft Project (MS Project). You can learn Microsoft Project by doing the MS Project Skill Builder. This plan must include all tasks related to the project. Each task must be named, assigned a duration and assigned to a specific person (or people). You must begin your work by creating an MS Project plan. Follow your project plan throughout the semester. If the team falls behind schedule, explain the reasons for the delays when you present your progress reports, list the steps being taken to get the project back on track, and create a revised MS Project plan.

For help in planning your project, review the How to plan the schedule and calculate costs for a project page in the section called Material to help you with the project elsewhere in this manual.

There should be at least twenty tasks/subtasks and three Milestones. Milestones should be noted with the duration of "0day". Moreover, the copy picture function included in MS Project Software should be used instead of the print screen function of the computer.

COST ESTIMATE

You will need to create a cost estimate using quotes from a reputable vendor. Examples are Digikey, Newark Electronics/Newark In One, and On Semiconductor. You are not limited to these vendors. This cost estimate includes prices for TTL Logic Chips for the various logic gates you use in your LabVIEW VI. When doing your cost estimate, be sure to include specification sheets from the vendors for all of the chips that you may use.

Once your design is complete, a cost estimate must be generated that specifies the cost of all the materials and labor required for the construction of your design. Tabulate this cost information clearly in an Excel spreadsheet, using the materials cost list provided. You can get help in calculating the cost by reviewing the How to plan the schedule and calculate costs for a project page in the section called Material to help you with the project elsewhere in this manual.

Have all the materials and parts used categorized in different groups instead of including individual parts. Make sure to include the units of each part used in a group and total them up for that individual group. Moreover, the cost of labor should be included. You can get help on the labor cost by reading the How to plan the schedule and calculate costs for a project page in the section called Material to help you with the project elsewhere in this manual.

MILESTONES

As you work on your project, you will be required to present periodic reports on your progress. We call these Milestones. All the items assigned in each Milestone are called deliverables. These deliverables often consist of a combination of written submissions, presentations, and demonstrations.

Milestone 1

Introduction to Digital Logic

For this milestone, we will create a plan for the train to leave Terminal Station L. This includes having the logic necessary for train to be able to successfully navigate the first three (3) sectors. You will NOT be physically programming in LabVIEW for this Milestone. When the train leaves the left terminal from middle position, the Sector 1 switch is in place to allow the train to travel outbound via Sector 2 or Sector 3. When the train leaves the terminal from the top position, the Sector 1 switch is in place to allow the train to travel straight. When the train leaves from the terminal from the bottom position, the Sector 2 and Sector 3 switches are set to allow the train to continue towards light sensor C. You will be creating a Boolean Equation to determine which Sector to use, based on which of the tracks is blocked by railroad cars. For this Milestone, your train will operate in REVERSE MODE, meaning it can take any possible path in order to avoid a collision. In the following milestones as well as your semester long design project you will incorporate the logic you create for Milestone 1 into your project.

File:005.jpg
Figure 3: Sample Terminal with switch

Here are the Boolean Variables you will need to create the equation:

  1. Let T represent the track that the train is on at the terminal. T can take on one of three values (Top, Middle, Bottom), which means that 3 separate truth tables have to be generated, each for every starting position. Furthermore, since there are a total of 3 sectors for this Milestone, you will need to generate a truth table for each Sector as well. Finally, there is also NO PATH logic for each sector, this makes a total count of Truth Tables for this milestone equal to 12. (For example: Starting on top position and sector 1 logic, starting on middle position and sector 3 logic.)
  2. Let A, B, C, and D represent a train blocking the respective portion of the track.
  3. If A, B, C, or D = 0, the corresponding track is free of obstacles. If A, B, C, or D = 1, the corresponding track is blocked.
  4. Let S represent the status of the sector. For simplicity, there are only two values. When S=0, any train passing over the switch will stay on course and go straight. When S=1, any train passing over the switch will be diverted to the other track, in other words cross the track.
  5. Let C represent whether or not you can proceed through the switch to one track or the other. This condition is also known as the “NO PATH” condition. When C=1, the right of way is blocked, and the train cannot proceed by using any possible combination. When C=0, the track is clear, and the train can proceed through the switch.
File:006.png
Figure 4: Represents the three sectors that need to be completed for Milestone 1

Create a truth table for each starting position for each sector showing every possible outcome. (See example below) Once you create 12 truth tables, proceed to create a Boolean equations based upon your truth tables. Create Karnaugh-Maps (K-Maps) and use them to simplify the Boolean equations (if possible). See the Digital Logic Lab in this lab manual for further assistance. Remember, you are solving for S1, S2, S3 and C.

File:008.png
Figure 5b: Along with your table make sure to include a legend (key).
File:007.png
Figure 5a: Example truth table, this truth table incorporates 4 sets of logic, S1, S2, S3 and C. Your truth tables can take a similar format or can be split up into separate truth tables.

For the Milestone 1 presentation, prepare a brief description of the problem, what your goals are, and how you will accomplish these goals. In addition, write up a cost estimate of your implementation for leaving Terminal Station L, plus an estimate of the overall project by multiplying this cost by an appropriate factor based on the additional complexity of the overall train layout. The presentation should also include your MS Project chart as well as what you plan to do next.

Milestone 1 Deliverables: A presentation. Prepare a brief description of the problem, what your goals are, and how you will accomplish these goals. Be sure to include examples of the generated truth tables, un-simplified Boolean equations, Karnaugh-Maps and then the simplified Boolean equations. DO NOT INCLUDE all 12 truth tables in your presentation, pick out several as examples to show your understanding and comprehension of the problem. You may however, include all 12 simplified equations to show your progress. Calculate a cost estimate of your implementation for leaving Terminal Station L, plus an estimate of the overall project by multiplying this cost by an appropriate factor based on the additional complexity of the overall train layout, and an MS Project plan. Be sure to include any special features and benefits of your design.

Note: Whenever you revise your drawing(s), your cost estimate, or your MS Project plan, you must include the initial drawing, the initial cost estimate, or the initial MS Project plan, in addition to the revision.

Look Ahead: What tasks do you plan between now and Milestone 2?

Milestone 2

In Milestone 1, we created a plan for the train to leave Terminal Station L, pass through Sectors 1, 2, 3. For Milestone 2, we will be creating another plan. This time, you will need to create the Boolean logic for the train to travel through Sectors 4, 5, 6 making use of light sensors A, B, C, D, E, F, G, H and translate that information into a LabVIEW VI. Furthermore, you will need to accomplish this task for both modes of operation, Normal as well as Reverse. Remember, you work on only the Reverse mode for Milestone 1. In Normal mode travel from left to right, the only sectors that are allowed to be switched are 2, 3, 6, and 7. Since sector 7 is not in the scope of this Milestone you do not need to worry about logic for sector 7. Your milestone MUST incorporate the logic you developed for Milestone 1.

File:009.jpg
Figure 6: Outlines the scope of milestone 2. Light sensors A-H as well as sectors 1-6 will be used in this milestone. Both train operation modes must be completed for this milestone.

Here are the Boolean variables you will need to create the equation. Many of the conventions have stayed the same from Milestone 1 and will stay the same until completion of the project:

  1. Let T represent the track that the train is on at the terminal. As before T can take on 3 possible values, Top, Middle, and Bottom.
  2. Let C represent a train blocking input C.
  3. Let D represent a train blocking input D.
  4. Let E represent a train blocking input E.
  5. Let F represent a train blocking input F.
  6. If C, D, E, or F = 0, the corresponding track is free of obstacles. If C, D, E, or F = 1, the corresponding track is blocked.
  7. Let S1 represent the status of the switch at Sector 1. Let S2 represent the status of the switch at Sector 2. Let S3 represent the status of the switch at Sector 3. When S1, S2, or S3 = 0, the train goes straight through. When S1, S2, or S3 = 1, the train crosses over on to the other track.
  8. Let N represent whether or not you can proceed through the switches to one track or another. When N=0, the path is clear, and the train can proceed. When N=1, all paths are blocked, and the train cannot proceed through any of the switches.

Just like you did for Milestone 1, create a truth table showing every possible outcome, a Boolean equation based upon your truth tables, and a K-Map and use it to simplify the Boolean equation (if possible). Note: Once you write the logic as you have for Sectors 1, 2, 3 you may use those sectors as input on your truth table instead of writing down light sensor names. In other words, you may use the logic you already wrote to help simplify your Boolean equations before you apply Karnaugh-Maps. Once you have simplified your equations, you can transfer your equations to a LabVIEW VI.

On the front panel, you will need:

  • 9 Boolean controls, one for each input (A, B, C, D, E, F, G and H), and one to control whether the train is operating in Normal or Reverse mode.
  • You will also need a selector switch that will facilitate the selection of the starting track of the train. (Top, Middle, or Bottom)
  • 7 Boolean indicators, one for each sector (S1, S2, S3, S4, S5, and S6), and one indicating No Path (N).

On the back panel, it is up to you how you will program the VI. You are strongly encouraged to use of case structures.

Please refer to Appendix B further down the page for information on how to interface your VI with the Component Testing VI before reading on. It is extremely important that this step be performed before you are ready to component test. Through the use of the nine-node pattern your solution VI will be able to communicate with our tester VI, so make sure to read the instructions on how to configure your VI correctly.

File:010.png
Figure 7: Nine node pattern

So now that you know you need a connector pattern to interface with the Component Testing VI, you will need to use the following nine node pattern:

File:011.png
Figure 8: Node assignments of the student's digital logic circuit

And connect the pattern in the following manner:
Milestone 2 Deliverables: A copy of your presentation slides that includes a brief description of the problem, your truth tables, screenshots of your VI, what your goals are, and how you plan to accomplish these goals, a revised cost estimate of the overall project based on your solution, your revised MS Project plan, and your signed Component Testing form. Also, include your Boolean Equation.

Note: Whenever you revise your drawing(s), your cost estimate, or your MS Project plan, you must include the initial drawing, the initial cost estimate, or the initial MS Project plan, in addition to the revision.

Look Ahead: What tasks do you plan between now and Milestone 3?

Milestone 3

Prepare a VI that will use your Boolean equations to show how the track switches will be set. This includes the entire track utilizing all of the eight sectors, both modes of operation (Normal and Reverse), and both directions of travel (Left to Right and Right to Left). Use Boolean switches in the LabVIEW front panel to indicate which track locations are occupied by cars. Use lights on the front panel to indicate which switches are set to divert trains traveling over them. Refer to the Train Electrical Specifications for more information. Refer to Appendix B for more information on how to interface your VI with the Commissioning VI.

Milestone 3 Deliverables: A copy of your presentation slides that includes a brief description of the problem, what your goals are, and how you plan to accomplish these goals, a revised cost estimate of the overall project based on your solution, and your revised MS Project plan. Also, include the screen shots of front and back panels of your LabVIEW program.

Look ahead: What tasks do you plan between now and the completion of the project?

COMPONENT TESTING

Component Testing is a benchmark that is used to let students assess their progress in their Semester Long Design Projects. This is commonly used as a time management tool.

For Component Testing, you will need to interface your VI created from Milestone 2 with the VI located at

C:\SLDP Railroad Train Guidance System\Component Testing.vi

on the PC connected to the train layout. Your TA will test your VI by running your program with various combinations of tracks being blocked.

COMMISSIONING

Load your VI into the PC connected to the train layout, and interface it with the Commissioning Test VI. The Commissioning Test VI can be located at

C:\SLDP Railroad Train Guidance System\Commissioning Test.vi

on the PC connected to the train layout. Your TA will then place train cars in various locations, and position the locomotive on a track at Terminal Station L. The TA will first test your program using Normal Mode. Set the Boolean switches on your LabVIEW front panel so your VI has this information. When the TA is finished, your VI should read the Boolean switches and locations of the train cars via the VI provided by the EG staff, calculate the proper track switch positions, and output the results to the Commissioning Test VI. This VI will set the track switches according to your specifications. The TA will verify that the path you have established will work. Once your VI establishes a successful path, the TA will drive the locomotive from left to right. After the locomotive arrives on the proper track at Terminal Station R, the TA will rearrange the cars blocking paths for the return to Terminal Station L. Set the Boolean switches on your LabVIEW front panel to indicate this information. Your logic should read the blockage information from the VI provided by the EG staff and set the track switches to the proper position. The TA will verify that you've established a good path, and will drive the locomotive back to the Terminal Station L, arriving on the proper track.

After you have tested your VI with normal running, the TA will then test your VI in Reverse Running Mode. The procedure will be the same as the Normal Mode, with the exception of Reverse Running.

Finally, your TA will test your VI such that it indicates no path correctly. If your VI completes all tests successfully, you will be commissioned.

COMPETITION

At the discretion of the EG staff, you may be competing against other groups in your section. The winner of the competition will be the team that creates the VI that has the locomotive traverse the shortest distance in its outbound and return trips combined, with all teams using the same arrangement of blocking cars. In the event of a tie, the team with the lowest cost will win.

FINAL PRESENTATION

Your final presentation will be a technical briefing, similar to the milestones, plus a sales presentation explaining why MTA New York City Transit should select your company instead of someone else's. Please include the following:

  • A description of the problem
  • An overview of your solution
  • A description of your company and why it is qualified to successfully do this job
  • A sample of the truth tables you created
  • The resulting logic equations derived and simplified via your K-Map
  • Your final LabVIEW programs
  • The cost estimate
  • Your MS Project from each milestone showing your progress
  • A video of the locomotive traversing the layout from left to right and returning
  • Why your company is the best choice in awarding this contract

After you deliver your final presentation, you will proceed to the model shop to have your work commissioned, if you are not commissioned already. A signed commissioning statement must be included with the TA copy of your submission.

Final Submission

Your project should be submitted as a folder containing the following deliverables:

  • Component testing statement
  • Commissioning statement
  • Hardcopy and CD containing:
    • Final presentation
    • Table of appendices.
    • Appendices:
      • Truth tables
      • Simplified Boolean equations
      • LabVIEW VI
      • Video
      • Final MS Project Schedule
      • Final Cost estimate
      • Resume(s)

EARLY ACCEPTANCE

If you complete your project one week early, you are eligible for a bonus that will be added to your final semester-long project grade. You must submit all deliverables by 5PM one week before your section is scheduled to present (see syllabus for exact date). To commission early, all required information on the form titled <a href="https://egmanual.poly.edu/images/1/1b/Early.doc" title=Early.doc>Project Submission Form</a>, found on the EG web site, must be approved, accepted, and signed by a TA. The deliverables received early are the ones you will use in your presentation. No adjustments to the deliverables commissioned will be accepted.

LIQUIDATED DAMAGES

If you do not complete all your deliverables and do not commission during the Final Presentation, you will incur liquidated damages as defined in the grading policy.

Appendix A: Train Electrical Specifications

<a name="Output_control_of_the_track"></a>Output control of the track

<img border=0 width=627 height=146 id="Picture 5" src="Train%20Write-UP%20Revised%20091309_files/image001.jpg">

Figure 1: Layout of the eight sectors on the train track

Each part of the track is separated into different sectors. The sectors can be classified into two types, X and Y (refer to the diagram). Sectors 1, 2, 5, and 7 are X type and Sectors 3, 4, 6, and 8 are Y type.

There is a Sub-VI that will be provided that will cause the tracks to move depending upon which data is sent to the VI. Only include this Sub-VI in your their logic VI. The Sub-VI has eight inputs which are Boolean named, Sector 1 through Sector 8.

For the X type sectors, a Boolean value of True will cause the tracks to be oriented for the train to cross. A Boolean Value of False will cause tracks to be oriented for the train to go straight.

For the Y type sectors, a Boolean value of True will cause the tracks to be oriented for the train to be diverted to the outside track. A Boolean Value of False will cause the tracks to be oriented for the train to be diverted to the inside track.

<a name="Input_from_the_track"></a>Input from the track

<img border=0 width=623 height=143 id="Picture 8" src="Train%20Write-UP%20Revised%20091309_files/image004.jpg">

Figure 2: Layout of the twelve possible positions of train cars on the train track

There are twelve possible locations for train cars which can be located on positions A to L. A Sub-VI will be provided to you that will have twelve Booleans outputs named Input A through Input L. A True will represent a train car being present and a False will represent a car not being present on that position. These outputs will be used as the inputs to your digital logic circuit.

Appendix B: LabVIEW

Note: The following instructions are for your VI that will interface with the commissioning VI. For Component Testing, you will need to use a different pattern. Please refer to the Milestone 2 section for information on what pattern to use, and how to connect the pattern to your VI.

On the Front Panel, there must be 12 Boolean switches to represent the 12 inputs of the train and 8 Boolean lights to represent each of the 8 sectors.

  • On the front panel of the LabVIEW program, right click on the connector icon on the top right hand corner icon. Choose Show Connector.
  • Right click on the connector icon and select Patterns. Choose the pattern with 28 nodes.

<img border=0 width=131 height=134 id="Picture 38" src="Train%20Write-UP%20Revised%20091309_files/image012.png">

Figure 1: Twenty-eight node pattern

  • To assign the Boolean switches and displays to a node, click on the Boolean switch or light on the front panel then click on the node you wish to assign it to.
  • If you make an error in a connection, right click the incorrect terminal and select Disconnect This Terminal.
  • The 8 nodes on the left side will be for the Boolean switches representing inputs showing occupancy for locations A-H. The 4 nodes on the bottom half of the icon starting from the left will be the inputs for locations I-L.
  • Connect the 8 Boolean outputs that represent the orientation of the sector to the 8 nodes on the right side of the icon.

Input
A

 

 

No
Path

Direction
of Travel

Top or
Bottom

Reverse
Running

Sector
1

Input
B

Sector
2

Input
C

Sector
3

Input
D

Sector
4

Input
E

Input
I

Input
J

Input
K

Input
L

 

 

Sector
5

Input
F

Sector
6

Input
G

Sector
7

Input
H

Sector
8

Figure 2: Node assignments of the student's digital logic circuit

  • Replace the faded icon in the program Commissioning Test.vi with your digital logic VI. Right click on the icon and choose replace. Then choose Select a VI and find your VI. Replace it as shown in Figure 3.

<a href="https://egmanual.poly.edu/index.php/Image:Train9.jpg" title="Image:train9.jpg"><img border=0 width=474 height=355 src="Train%20Write-UP%20Revised%20091309_files/image013.png" alt="Image:train9.jpg"></a>

The program Commissioning Test.vi for students to insert their logic circuit

  • Before testing your digital logic circuit, turn on the power to the middle workbench where the two power supplies are connected.
  • Continuously run the Commissioning Test.vi and ensure that the lights on the front panel accurately represent the presence or absence of a train.
  • Flip the Reset switch up and down and the track will be preset to the specified orientation.
  • Once those parameters are checked, test the digital logic circuit by flipping the Test Track switch.