Loco Setup A (very) Brief Overview Of Simugraph

Discussion in 'PC Editor Discussion' started by pwilson79, Apr 1, 2026 at 4:11 AM.

  1. pwilson79

    pwilson79 Well-Known Member

    Joined:
    Apr 18, 2021
    Messages:
    407
    Likes Received:
    553
    So since I'm starting to get a little comfortable working with my subway car's Simugraph, I thought I'd share a bit of what I've learned.

    Preface: This will all be based on my 3-rd rail powered rail vehicle. Not every aspect of what I demonstrate is going to apply to your situation. I wouldn't know where to begin with steam, for instance. Also, I've only just started on my braking system, so I won't discuss any specifics there.

    Credit where credit is due; Simugraph seems to be a pretty comprehensive system for simulating the specific components of the electrical, mechanical and pneumatic systems on a rail vehicle, and the connections between them.

    You will have to have a pretty good idea what the system you are trying to simulate looks like. For help with that, I can recommend a website I recently came across:
    http://www.railway-technical.com/trains/rolling-stock-index-l/train-equipment/


    And for examples of some of the nodes and setups you may need in the Simugraph, we do have a few examples to refer to:

    https://forums.dovetailgames.com/threads/example-simugraph-setup-for-ac-traction.79898/

    https://train-sim-world.fandom.com/wiki/Simugraph

    In short, by communicating with our Simugraph from our RVM we can do many useful things, like flipping switches! We can also get feedback on how individual components are behaving. I'll try to show you how.

    Powering motors:


    First, let's Go into the SA (Simulation Asset) and have a motor connected to an axle, with a switch in the circuit:
    ScreenHunter_337 Mar. 31 19.42.jpg
    Please note that this is a simplified version, as You'll want to have a more appropriate number of axles set up, and maybe a bogie or two :)

    You will probably want to have a VHID component in your Driver Environment for the player to manipulate, and to provide events that we can use to make a change to a Simugraph Node's Parameter. (That's what we're doing when we communicate with the Simugraph, if you want to be technical about it.)

    I suggest something like a PushButtonComponent, at least to begin with. Here is the vhid (in the RVV) that I'm using:
    ScreenHunter_336 Mar. 31 19.34.jpg
    Note that the Interaction Model Component should be set to the PushButtonComponent in the RVM, for this example.

    This provides the event I use: (I can't include another image because of forum rules, but it's "On output value changed," found at the bottom of the details panel for the PushButtonComponent in the RVM)

    We'll be using it to connect and disconnect our motor to a current source (like from a power shoe or pantograph component in our RVM, or otherwise Simugraph has a handy node for a permanent current source we can use for demonstration purposes.)



    now for the "special sauce!" This is how we access and set a Simugraph node's parameter from the RVM: I present the "Set Simulation Node Parameter As Int by Ref" and "Make SimulationComponentParameterReference" Nodes:

    ScreenHunter_335 Mar. 31 19.21.jpg

    (In the SA this is taken from, I renamed my "1P2TSwitch" node in the Simulation Asset to "LineBreaker.") When you get this simple setup working, you should see your Rail Vehicle move!

    You may find yourself becoming emotional about your success. When I first saw my subway car leap (backwards) under its' own power, this is how I reacted:
    200.gif

    (Ahem.) Now then, getting the value of a parameter out of the Simugraph is also easy! Here you can see a part of my RVV where I read the speed-at-rail of an axle, in Miles Per Hour:
    ScreenHunter_334 Mar. 31 19.14.jpg

    Well, that should hopefully be enough to get you started in Simugraph! Best of luck!
     
    Last edited: Apr 1, 2026 at 4:23 AM
    • Helpful Helpful x 2
    • Like Like x 1

Share This Page