04-03-2006 02:58 PM
04-03-2006 04:52 PM
04-04-2006 07:30 AM
That is simple and clean, Thanks. For display purposes works great, but I need more.
How to take only the seconds from there and make it a numeric expression or pot? It looks like the numeric format option works only for the display of the object, hence I can not use text functions to "separate" the seconds. I need the seconds as a plain integer, shyncronized with the minutes.
Any other suggestions?
04-04-2006 01:21 PM
04-04-2006 01:58 PM - edited 04-04-2006 01:58 PM
That's a good idea Matt. Here's another option: use the following statement in an Expression:
right(text(now(Pulse (true, 0:01, 0)),"MM:SS"),2)
-Khalid
Message Edited by Khalid on 04-04-2006 02:00 PM
04-05-2006 03:39 PM
Good tries folks!
For any average application, both suggestions are good. In my application a Spreadsheet object makes a 'csv' data collection running 20 samples per second. I can survive with +/- 1 or 2 data samplings (+/- 0.1 seconds max). Time synchronization is really important here.
Taking as a reference 'NOW(Pulse (true, 0:01, 0))', Matt's suggestion is almost one second ahead. The second '0'th is too short. Khalid's suggestion is almost one second behind. All the seconds have the same duration but there is a 0.7....0.8 sec delay. No one works well for me.
Is there any other "under the sleeve trick"?
04-05-2006 06:28 PM
You can try increasing the pulse rate:
right(text(now(Pulse (true, 0:0.01, 0)),"MM:SS"),2)
See if that helps. We will never be _exactly_ in sync with the system time because we are essentially polling the system time and then getting the seconds from it.
-Khalid
04-06-2006 02:31 PM
04-08-2006 10:25 AM