How to code a clock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to code a clock
minutes go from 1 to 60 min and then reset incrementing Hour which goes from 1 to 24 and after that the day count is incremented and hour is reset.
How to do this in mathcad?
Solved! Go to Solution.
- Labels:
-
Other
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Do you want this to actually show real time? Mathcad is not suited to such a task. Programming the counters would be easy enough, but they will not run in real time (more like several weeks per microsecond of real time!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
no not real time. i just need it to track the sun under arbitrary days and hours. not anything real time.
i need accuracy of 1min only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can use the modulo function for determining when something is repeat its cycle. However, you've not said what format your time data is in, so it's not possible to give you a better answer.
TTFN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Ziyad Saeed wrote:
no not real time. i just need it to track the sun under arbitrary days and hours. not anything real time.
i need accuracy of 1min only.
Something weird in your proposal . The matter is to transform the swept angle in the equivalent clock time. Maybe I don't understand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
its the opposite given a clock time where is the sun in the sky.
I have the plot of the sun per day, i want to add the hourly variation to it.
i just need a counter that goes from 1 to 24, resets and increments the day counter. thats it.
How do you program a counter in mathcad?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Bingo
just add minutes.
I guess i over explained what i wanted to do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sorry, but it's not clear to me what you want. Do you want a function that converts an arbitrary number of days and hours into minutes?
