Jump to content

Welcome to 2022


 Share

Recommended Posts

I have two items for a little help please...

1) Can I add, say, 1 minute to the current time and use this result to make an event trigger at that time.   Complicated?  Train released from Depot.  Arrives at Signal at 14:27.  Need to notify user a train will arrive at 14:30.  Then release train into system at 14:30.

2) Can I display the system timers on a "TEXT" panel ?

 

Thanks in advance

 

George

 

Link to comment
Share on other sites

vor 3 Stunden schrieb georgeb:

Can I add, say, 1 minute to the current time

Yes George, you can.
And it's really easy too:

Insert the action "deferr execution" from the time control category at the appropriate place

1685271464_delaytime.jpg.06f4d1ef191dee4550701e2c843025ac.jpg

 

vor 3 Stunden schrieb georgeb:

Can I display the system timers on a "TEXT" panel ?

Yes, you can do that too.

585724021_timetolabel.thumb.jpg.1780461b95d3e055d9f2f116a96b4b62.jpg

 

Kind regards
Goetz

Link to comment
Share on other sites

Thanks for "defer execution" suggestion.  So obvious but .......

It was a TIMER I wish to display not the TIME.  Any ideas.:D

 

Thanks for all your help.  It makes my hobby so much easier to enjoy.

 

George

 

 

Link to comment
Share on other sites

 

Hi George, Happy New Year!

I think this question was already answered?

I don't think it's possible to put the value of a timer onto a display in the layout. But if all you want to do is monitor it to make sure it's working, you can use the Event Analysis tool:

Capture.JPG.a07d574eb89940187b203a2b8783fda4.JPG

Add the timers to the list using the + symbol

Capture.thumb.JPG.3155a6f046c56ac635877b5db9e081fc.JPG

The only reason I can think of to put a timer display into a layout is if you are releasing trains manually "against the clock"?

In this case, I have come up with a rather complex solution that works

Create two number variables, Mins and secs. Set each to your start values.

Create a timer that expires every second and restarts automatically. When it expires, if secs is 0, then if mins is 0, do whatever you want to do when the full timer expires. If secs is zero but mins is not, subtract 1 from mins and set secs to 59, otherwise subtract 1 from secs.

Create three labels: Label-M, Colon and Label-S. Colon, you set to ":", line all three up, and at the end of the the event add actions to set Label-M = Mins and Label-S = Secs.

It's not elegant, but it will do what you want

Capture.JPG.df1b8b01c77a8f8a069a4774d14b0caa.JPG

Link to comment
Share on other sites

vor 5 Stunden schrieb georgeb:

It was a TIMER I wish to display not the TIME.

I'm sorry, George.
I didn't pay enough attention.

There's no direct means by which you can read out the remaining time of a timer.
Simon already said so. And offered a solution too.

Personally, I would use two timers to achieve what you asked for.
One for the actual event. A second one (with a period of 1 second) for the countdown until the first timer has expired.

Here's an example:  7563B6DE-7D2C-43CC-BACF-01407F057322

Kind regards
Goetz

 

Link to comment
Share on other sites

vor 4 Stunden schrieb georgeb:

What are these referencing please?

I'm sorry, George - didn't realise that you cannot know this

The number is the content ID of the demo layout which I uploaded for you.

On the start page of the 3D train studio, select the online catalog.
Then transfer the Content ID into the search field at the top right:

16142813_layoutcontentID.jpg.6b87ffc3587f14a9a82492ebedae2c29.jpg

 

Kind regards
Goetz

Edited by Goetz
typing errors corrected
Link to comment
Share on other sites

This system never ceases to surprise me - like your knowledge.

Can I ask another??   When creating a User defined event, there is a reference to parameters at the top of the screen.  If I set a parameter, how do I include it in the User defined event??

 

 

Thank you again.

 

George

 

Link to comment
Share on other sites

Hello George,

 

vor 52 Minuten schrieb georgeb:

If I set a parameter, how do I include it in the User defined event??

When you create a user-defined event ...

 

2102655145_userevent1.jpg.6b8b3f0f311c8cd69d7e6303c3f00743.jpg

 

... you'll typically want to call this event at another place.

 

1319337851_userevent2.jpg.e232126a8554b4ffe5a2441d837ebd25.jpg

Here is where you pass your specific information on to the parameters that you established in the event's description

Inside the user defined event, you can access the parameters via the "trigger" entry:

918138993_userevent3.jpg.5aad3800c76b77740d3b1ae35d833cef.jpg

And if you're wondering where the name "trigger" comes from, here's the answer.   :D
Sorry, I couldn't resist ... 

Kind regards
Goetz

 

 

Edited by Goetz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...