selective repeat

martinvk

since 10 Aug 2002
Is it possible to have an AI driver repeat only some commands?

I have 4 AI trains driving to the same schedule and starting from the same station / yard. I would like the first to start the schedule as soon as the session starts. the other three should wait, starting at 15 minute intervals. Once the initial wait is done, it should not be repeated while the other commands should be repeated for the life of the session.
 
Yes, but you'll have to use the schedule library with all the commands in with repeat as the last one.
Except the wait commands which are placed before the schedule and therefore not repeated.
I think I've got that right.
 
Enable Repeat driver command

@ Martin - The method that fran1 suggests is a good idea, especially if the number of commands in the schedule is large or there are many trains using the same schedule.

There is another way to do it using <kuid2:192081:2:3> Enable Repeat.
It has an icon with an infinity sign (figure 8 on its side) and you can use this in the driver schedule to start repeating at a particular position.
In your case it would be just after the wait command.

It is interesting that I have a version of the command which also allows the repeat feature to be switched off (Repeat disable). It was downloaded long ago when I only had TRS2004, but carries the same version number as I quoted above. The files have a date of May 15, 2006.

The strange thing is that the latest version (as above) does not have that facility. I tried downloading the two earlier versions and CMP will not allow me to do this. Does that mean that the obsolete versions have been removed from the DLS database?
 
@ Martin - The method that fran1 suggests is a good idea, especially if the number of commands in the schedule is large or there are many trains using the same schedule.

There is another way to do it using <kuid2:192081:2:3> Enable Repeat.
It has an icon with an infinity sign (figure 8 on its side) and you can use this in the driver schedule to start repeating at a particular position.
In your case it would be just after the wait command.

It is interesting that I have a version of the command which also allows the repeat feature to be switched off (Repeat disable). It was downloaded long ago when I only had TRS2004, but carries the same version number as I quoted above. The files have a date of May 15, 2006.

The strange thing is that the latest version (as above) does not have that facility. I tried downloading the two earlier versions and CMP will not allow me to do this. Does that mean that the obsolete versions have been removed from the DLS database?

Got it, you need to insert the repeat command for the stop repeat to appear in the list.
 
I put the repeat command at the end of the list of commands in the library. Then using the copy command, I appended the library to each train, the first by itself and in the subsequent trains after progressively longer waits times. The problem is that when the library icon is expanded in Driver, all the commands appear on the command ribbon except the repeat.

Is this by design, a quirk of TS12 or did I do something wrong? :o
 
I put the repeat command at the end of the list of commands in the library. Then using the copy command, I appended the library to each train, the first by itself and in the subsequent trains after progressively longer waits times. The problem is that when the library icon is expanded in Driver, all the commands appear on the command ribbon except the repeat.

Is this by design, a quirk of TS12 or did I do something wrong? :o
It's only a tiddly thing like 2 bent arrows, not much bigger that the green arrow.
 
It's only a tiddly thing like 2 bent arrows, not much bigger that the green arrow.

This is the end of the command sequence in the library, including the repeat.
martinvk_20120107_0000.jpg


This is what it looks like in Surveyor, just two waits and the library icon.
martinvk_20120107_0001.jpg


This is the what it looks like in Driver before the library icon is expanded.
martinvk_20120107_0003.jpg


This is what it looks like in Driver after the library icon is expanded. Note the lack of the repeat at the end.
martinvk_20120107_0002.jpg
 
Last edited:
Hi Martin - The Enable repeat command that I referred to in post 3 was designed to overcome the problem you are having.

It is a while since I have played with it but I think you need to place an enable repeat command as the first one in the library schedule. This will switch on the repeat at the end.

If that doesn't work then I will have to try to find the correct way to use the command.

Regards - Trevor
 
Got it, you need to insert the repeat command for the stop repeat to appear in the list.

@fran1 When you say "got it" do you mean that you have the asset?

What I mean is that the code in the script of <kuid2:192081:2:3> no longer contains the option to disable the repeat command.

Regards - Trevor
 
Thanks for all the hints and advice. By using the Enable Repeat command, I was able to get all the Schedule Library commands to repeat. I added it to the list of driver commands, outside the library list, after the start delay command (Wait until minute). That way, the delay is only used once and all the library commands repeat.
 
Back
Top