Displaying times using the IRIG time display

208 views
Skip to first unread message

Mike Delaney

unread,
Nov 30, 2012, 1:42:40 PM11/30/12
to ia...@googlegroups.com
I've got multiple times coming in from a system (elapsed time, GPS time, etc.).  I have separate int parameters for hours, minutes, seconds and milliseconds.
Thanks,
Mike

Jim Bretz

unread,
Nov 30, 2012, 1:58:56 PM11/30/12
to ia...@googlegroups.com
Hi Mike,
 
The easiest way to display IrigTime is to create a derived parameter with the equation:  CurrentTimeOfYear(). Set the ParamType column to ‘double’ and the UpdateRate column to 1000. Once you have this derived parameter, drop it into an ActiveX Text object (into the ‘Value’ property) and set the ‘ValueFormat’ property of the ActiveX text object to %T. This will display Irig time in the format DDD:HH:MM:SS.MS. The function CurrentTimeOfYear() derives it’s time from the server’s (CDS) notion of current time, so as long as the server is getting proper time in it’s accepted format (which is a prerequisite for processing data), then this function should suffice.
 
If you want to decode and use some ‘embedded time’ value, then you’ll need to convert that time into a count of elapsed nanoseconds since Jan 1st. I can help with that equation if you get stuck.
 
As for using the ‘Irig time display’ ActiveX object, I think that is a specific display with inputs from the Acra instrumentation system. We probably should have named it something more descriptive (or allowed general purpose usage). Kathy would have to explain it’s details.
 
Hope this helps,
Jim
--
You received this message because you are subscribed to the Google Groups "IADS" group.
To post to this group, send email to ia...@googlegroups.com.
To unsubscribe from this group, send email to iads+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/iads/-/67-IgJHVgT4J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kathy Rodittis

unread,
Nov 30, 2012, 2:01:42 PM11/30/12
to ia...@googlegroups.com

Hi Mike

 

The IadsClocks.IadsIRIGClock ActiveX control will accept time in 4 formats: IRIG Binary, IRIG BCD, Acra BCD and IADS Native Time which is really total seconds since the beginning of the year.  If you can make a derived parameter to express your time time in total seconds, you can drop it into the display as “IADS Native Time” and change the type to “TimeFormat” in the display’s format to “IADS Native Time”.

 

You can also drop your total seconds parameter in an IADS text primitive as the Value and set the ValueFormat to %T and that will also display time.

 

When you make your total seconds parameter make sure you set it to type “double”. 

 

If you have another specific format you’d like to see represented in the IadsIRIGClock control, please let me know.

 

-Kathy

 

From: ia...@googlegroups.com [mailto:ia...@googlegroups.com] On Behalf Of Mike Delaney
Sent: Friday, November 30, 2012 10:43 AM
To: ia...@googlegroups.com
Subject: [IADS] Displaying times using the IRIG time display

 

I've got multiple times coming in from a system (elapsed time, GPS time, etc.).  I have separate int parameters for hours, minutes, seconds and milliseconds.

Thanks,

Mike

--

Reply all
Reply to author
Forward
0 new messages