LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Train running graph

Hello,

I apologize in advance for my English.

In case of a wrong section, please move the topic.

 

I am rather new to the LabVIEW environment, although I want to start my adventure with LabVIEW with this project.

I am using NI LabVIEW 2021 SP1.

 

GRDJPI781.gif

Sample photo from: https://www.railforums.co.uk/proxy.php?image=http%3A%2F%2Fwww.2d53.co.uk%2Fgraph%2FGRDJPI781.gif&has...


In my engineering project, I want to create a program that will show the user whether it is possible to add another train to those already routed.

 

As I think the program should work as follows:

  1. The program loads routed trains from Excel.
  2. The user provides the time of arrival / departure for a new train.
  3. The program checks whether it is possible to route such a train.
  4. In case of complications, he provides possible solutions to the problem.
  5. The Excel file is updated with the new train.

 

I don't know how to perform:

  1. The graph would look similar to the picture above (stages of the route on the Y axis, time on the X axis, points and the connection between them).
  2. A way to detect if the graphs do not intersect with each other in forbidden sections.

 

These are my introductory questions.

 

Thank you very much for your advice.

0 Kudos
Message 1 of 3
(1,265 Views)

So you have several basic problems

 

  1. Read the data from the file (does it really have to be excel?)
  2. Graph the data (?)
  3. Provide controls to add a train (from, to, departure time, arrival time, etc.)
  4. Calculate feasibility. (What exactly are the parameters, algorithms, and complications?)
  5. Who is "he" that provides solutions to complications (user? program?)
  6. Update excel file (or write a new excel file).

 

How far did you get? What is the format of the excel file? One complication with step 2 is that you apparently want text labels for the Y scale (see also this idea ). It would be easier to just do it in distance units. What are the feasibility parameters? (max speed, no crossover, etc.)

0 Kudos
Message 2 of 3
(1,252 Views)

Thank you very much for your answer.

 

  1. It doesn't necessarily have to be excel (no better ideas).
  2. Only displaying the final result to the user. I got permission to use the existing train running graph. Somehow, I would have to write it down (I was thinking about Excel) so that the program, after being properly loaded, would use it as a basis for introducing the next train.
  3. Program operation modes - the user chooses (Departure time - arrival time is given as a result; Arrival time - departure time is given as a result).
  4. As for the algorithms, I am not yet decided; The main complication will be that the trains will not cross in forbidden places and the distance between successive trains will be correct.
  5. The program checks if it is possible to "shift" any other train to fit the one I want to route. If so, it displays a possible solution, if not, it also displays the appropriate information.
  6. In the case of correct routing, it updates the file, which makes it possible to route one more train (the previous one is already routed on the graph).

What are the feasibility parameters? - I try to simplify it as much as possible. So I would like to enter a "fixed" value for the drive time. After marking the points in time at which it would be in a given place, connecting them and checking the collisions, the program will make corrections until the result is obtained or it finds that there is no solution.

 

At the moment, I am just starting, I want to find out whether it is possible to implement in the LabVIEW environment at all, or whether there will be too many problems with it.

0 Kudos
Message 3 of 3
(1,192 Views)