473,498 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System Time Update using IRIG

Hi,
I am updating system time with IRIG time source which sends irregular
pulses as shown below
11000011111100111111111111111111....(1-IRIG present and 0-IRIG not
present)
I need to update system time when I find a steady pulse or a series of
1's say for a span of 10-15 seconds. Is there a way to implement this
in VB6?
Thanks in advance.
Valiz.
Jul 17 '05 #1
7 4632

"Valiz" <de******@uidaho.edu> wrote in message
news:eb*************************@posting.google.co m...
Hi,
I am updating system time with IRIG time source which sends irregular
pulses as shown below
11000011111100111111111111111111....(1-IRIG present and 0-IRIG not
present)
I need to update system time when I find a steady pulse or a series of
1's say for a span of 10-15 seconds. Is there a way to implement this
in VB6?
Thanks in advance.
Valiz.


Of course it is doable.
How are you getting the info (serial I/O, WAN. etc.) and which IRIG
(A,B,E,H)?

Jul 17 '05 #2
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message news:<ap*******************@nwrdny01.gnilink.net>. ..
"Valiz" <de******@uidaho.edu> wrote in message
news:eb*************************@posting.google.co m...
Hi,
I am updating system time with IRIG time source which sends irregular
pulses as shown below
11000011111100111111111111111111....(1-IRIG present and 0-IRIG not
present)
I need to update system time when I find a steady pulse or a series of
1's say for a span of 10-15 seconds. Is there a way to implement this
in VB6?
Thanks in advance.
Valiz.


Of course it is doable.
How are you getting the info (serial I/O, WAN. etc.) and which IRIG
(A,B,E,H)?


I am using Serial - Com port 17 - Using SaxComm8 OCX and the signal is IRIG-B.
Valiz.
Jul 17 '05 #3

"Valiz" <de******@uidaho.edu> wrote in message
news:eb*************************@posting.google.co m...
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message news:<ap*******************@nwrdny01.gnilink.net>. ..
"Valiz" <de******@uidaho.edu> wrote in message
news:eb*************************@posting.google.co m...
Hi,
I am updating system time with IRIG time source which sends irregular
pulses as shown below
11000011111100111111111111111111....(1-IRIG present and 0-IRIG not
present)
I need to update system time when I find a steady pulse or a series of
1's say for a span of 10-15 seconds. Is there a way to implement this
in VB6?
Thanks in advance.
Valiz.


Of course it is doable.
How are you getting the info (serial I/O, WAN. etc.) and which IRIG
(A,B,E,H)?


I am using Serial - Com port 17 - Using SaxComm8 OCX and the signal is

IRIG-B. Valiz.


OK.. I wasn't sure, your description certainly does not describe IRIG B
since the "IRIG present" is merely a flag in the sixth group (status) and
it's the opposite of what you have ( 0 = present, 1= not present).

I am not familiar with SaxComm8 ocx but if it can handle the speed required
(IRIG B pulse code consist of one frame with 100 elements.and it all comes
within one second per frame with 10 ms for each element.)

Basically I would read it from the buffer and decode it (first element is
seconds, second is minutes, third is hours, fourth is days, etc. etc.)

If you're interested, I have some docs outlining the detail of IRIG packets.
If you want just send me your e-mail address and I'll send it your way.

Jul 17 '05 #4
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message news:<as***************@nwrdny01.gnilink.net>...
"Valiz" <de******@uidaho.edu> wrote in message
news:eb*************************@posting.google.co m...
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message

news:<ap*******************@nwrdny01.gnilink.net>. ..
"Valiz" <de******@uidaho.edu> wrote in message
news:eb*************************@posting.google.co m...
> Hi,
> I am updating system time with IRIG time source which sends irregular
> pulses as shown below
> 11000011111100111111111111111111....(1-IRIG present and 0-IRIG not
> present)
> I need to update system time when I find a steady pulse or a series of
> 1's say for a span of 10-15 seconds. Is there a way to implement this
> in VB6?
> Thanks in advance.
> Valiz.

Of course it is doable.
How are you getting the info (serial I/O, WAN. etc.) and which IRIG
(A,B,E,H)?


I am using Serial - Com port 17 - Using SaxComm8 OCX and the signal is

IRIG-B.
Valiz.


OK.. I wasn't sure, your description certainly does not describe IRIG B
since the "IRIG present" is merely a flag in the sixth group (status) and
it's the opposite of what you have ( 0 = present, 1= not present).

I am not familiar with SaxComm8 ocx but if it can handle the speed required
(IRIG B pulse code consist of one frame with 100 elements.and it all comes
within one second per frame with 10 ms for each element.)

Basically I would read it from the buffer and decode it (first element is
seconds, second is minutes, third is hours, fourth is days, etc. etc.)

If you're interested, I have some docs outlining the detail of IRIG packets.
If you want just send me your e-mail address and I'll send it your way.


Thanks for getting back. At this point I am able to decode the signal
and get the required data but the point is I would like to make sure
it is a series of 1's at the time when I decode. Say, if I want to
update the clock every 10 minutes or say even 10 seconds. I want to
make sure I don't fall on a "0" every time I hit 10 seconds. Any
ideas?
Thanks,
Valiz.
Jul 17 '05 #5

"Valiz" <de******@uidaho.edu> wrote in message
news:eb************************@posting.google.com ...
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message

news:<as***************@nwrdny01.gnilink.net>...
"Valiz" <de******@uidaho.edu> wrote in message
news:eb*************************@posting.google.co m...
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message

news:<ap*******************@nwrdny01.gnilink.net>. ..
> "Valiz" <de******@uidaho.edu> wrote in message
> news:eb*************************@posting.google.co m...
> > Hi,
> > I am updating system time with IRIG time source which sends irregular > > pulses as shown below
> > 11000011111100111111111111111111....(1-IRIG present and 0-IRIG not
> > present)
> > I need to update system time when I find a steady pulse or a series of > > 1's say for a span of 10-15 seconds. Is there a way to implement this > > in VB6?
> > Thanks in advance.
> > Valiz.
>
> Of course it is doable.
> How are you getting the info (serial I/O, WAN. etc.) and which IRIG
> (A,B,E,H)?

I am using Serial - Com port 17 - Using SaxComm8 OCX and the signal is

IRIG-B.
Valiz.


OK.. I wasn't sure, your description certainly does not describe IRIG B
since the "IRIG present" is merely a flag in the sixth group (status) and it's the opposite of what you have ( 0 = present, 1= not present).

I am not familiar with SaxComm8 ocx but if it can handle the speed required (IRIG B pulse code consist of one frame with 100 elements.and it all comes within one second per frame with 10 ms for each element.)

Basically I would read it from the buffer and decode it (first element is seconds, second is minutes, third is hours, fourth is days, etc. etc.)

If you're interested, I have some docs outlining the detail of IRIG packets. If you want just send me your e-mail address and I'll send it your way.


Thanks for getting back. At this point I am able to decode the signal
and get the required data but the point is I would like to make sure
it is a series of 1's at the time when I decode. Say, if I want to
update the clock every 10 minutes or say even 10 seconds. I want to
make sure I don't fall on a "0" every time I hit 10 seconds. Any
ideas?
Thanks,
Valiz.


A time code frame begins with a reference marker (this should be your goal).
When you need a time reference I suggest you poll for at least 10 seconds
looking for reference marker. You can also look for a known variable, for
example the days or days * 100. When you find this bit combination, do a
validation check by checking the previous or next word to ensure that it is
not by chance the bit combination exist. If you're polling satellite, you
need to make sure you have the receiver locked to at least one satellite
(status "0").

I'm not sure about the question, if the question is how do you test a
certain bit, here is a function that will help you do that:

' Test bit position "bit" in the value "InByte"
' returns true / false

Private Function TestBit(ByVal InByte As Byte, ByVal bit As Integer) As
Boolean
If bit >= 0 And bit <= 7 Then
TestBit = ((InByte And (2 ^ bit)) > 0)
End If
End Function

Jul 17 '05 #6
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message news:<Tf**************@nwrdny03.gnilink.net>...
"Valiz" <de******@uidaho.edu> wrote in message
news:eb************************@posting.google.com ...
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message

news:<as***************@nwrdny01.gnilink.net>...
"Valiz" <de******@uidaho.edu> wrote in message
news:eb*************************@posting.google.co m...
> "Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message news:<ap*******************@nwrdny01.gnilink.net>. .. > > "Valiz" <de******@uidaho.edu> wrote in message
> > news:eb*************************@posting.google.co m...
> > > Hi,
> > > I am updating system time with IRIG time source which sends irregular > > > pulses as shown below
> > > 11000011111100111111111111111111....(1-IRIG present and 0-IRIG not
> > > present)
> > > I need to update system time when I find a steady pulse or a series of > > > 1's say for a span of 10-15 seconds. Is there a way to implement this > > > in VB6?
> > > Thanks in advance.
> > > Valiz.
> >
> > Of course it is doable.
> > How are you getting the info (serial I/O, WAN. etc.) and which IRIG
> > (A,B,E,H)?
>
> I am using Serial - Com port 17 - Using SaxComm8 OCX and the signal is IRIG-B. > Valiz.

OK.. I wasn't sure, your description certainly does not describe IRIG B
since the "IRIG present" is merely a flag in the sixth group (status) and it's the opposite of what you have ( 0 = present, 1= not present).

I am not familiar with SaxComm8 ocx but if it can handle the speed required (IRIG B pulse code consist of one frame with 100 elements.and it all comes within one second per frame with 10 ms for each element.)

Basically I would read it from the buffer and decode it (first element is seconds, second is minutes, third is hours, fourth is days, etc. etc.)

If you're interested, I have some docs outlining the detail of IRIG packets. If you want just send me your e-mail address and I'll send it your way.


Thanks for getting back. At this point I am able to decode the signal
and get the required data but the point is I would like to make sure
it is a series of 1's at the time when I decode. Say, if I want to
update the clock every 10 minutes or say even 10 seconds. I want to
make sure I don't fall on a "0" every time I hit 10 seconds. Any
ideas?
Thanks,
Valiz.


A time code frame begins with a reference marker (this should be your goal).
When you need a time reference I suggest you poll for at least 10 seconds
looking for reference marker. You can also look for a known variable, for
example the days or days * 100. When you find this bit combination, do a
validation check by checking the previous or next word to ensure that it is
not by chance the bit combination exist. If you're polling satellite, you
need to make sure you have the receiver locked to at least one satellite
(status "0").

I'm not sure about the question, if the question is how do you test a
certain bit, here is a function that will help you do that:

' Test bit position "bit" in the value "InByte"
' returns true / false

Private Function TestBit(ByVal InByte As Byte, ByVal bit As Integer) As
Boolean
If bit >= 0 And bit <= 7 Then
TestBit = ((InByte And (2 ^ bit)) > 0)
End If
End Function


Thanks for the info. I am sorry for not being clear with the question.
I am looking at the Time Quality bit (every second) in the IRIG-B
signal and it shuffles or toggles back and forth (0 and 1)randomly and
there's no regularity whatsoever. If it is a "1", an embedded
microcontroller (Atmel) takes in the signal and from there I update my
system clock. And, if it is a "0" I need to write system time to the
microcontroller (which serves as clock for some other serially
connected devices). My primary concern is that every time I use a
timer say for 10 seconds to update the system clock, I do not want to
hit a "0" for every cycle. Although it does not hit every time, there
is certainly a possibility that I might hit "0". Hence, am looking for
a method to eliminate that possibility, like for example a sliding
window that keeps checking for the Time Quality bit status or
something like that.
Thanks again for the info.
Valiz.
Jul 17 '05 #7

"Valiz" <de******@uidaho.edu> wrote in message
news:eb************************@posting.google.com ...
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message

news:<Tf**************@nwrdny03.gnilink.net>...
"Valiz" <de******@uidaho.edu> wrote in message
news:eb************************@posting.google.com ...
"Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message

news:<as***************@nwrdny01.gnilink.net>...
> "Valiz" <de******@uidaho.edu> wrote in message
> news:eb*************************@posting.google.co m...
> > "Raoul Watson" <Wa*****@IntelligenCIA.com> wrote in message

news:<ap*******************@nwrdny01.gnilink.net>. ..
> > > "Valiz" <de******@uidaho.edu> wrote in message
> > > news:eb*************************@posting.google.co m...
> > > > Hi,
> > > > I am updating system time with IRIG time source which sends

irregular
> > > > pulses as shown below
> > > > 11000011111100111111111111111111....(1-IRIG present and 0-IRIG not > > > > present)
> > > > I need to update system time when I find a steady pulse or a

series of
> > > > 1's say for a span of 10-15 seconds. Is there a way to implement
this
> > > > in VB6?
> > > > Thanks in advance.
> > > > Valiz.
> > >
> > > Of course it is doable.
> > > How are you getting the info (serial I/O, WAN. etc.) and which
IRIG > > > (A,B,E,H)?
> >
> > I am using Serial - Com port 17 - Using SaxComm8 OCX and the signal is IRIG-B.
> > Valiz.
>
> OK.. I wasn't sure, your description certainly does not describe
IRIG B > since the "IRIG present" is merely a flag in the sixth group (status) and
> it's the opposite of what you have ( 0 = present, 1= not present).
>
> I am not familiar with SaxComm8 ocx but if it can handle the speed

required
> (IRIG B pulse code consist of one frame with 100 elements.and it all

comes
> within one second per frame with 10 ms for each element.)
>
> Basically I would read it from the buffer and decode it (first
element is
> seconds, second is minutes, third is hours, fourth is days, etc.
etc.) >
> If you're interested, I have some docs outlining the detail of IRIG

packets.
> If you want just send me your e-mail address and I'll send it your way.
Thanks for getting back. At this point I am able to decode the signal
and get the required data but the point is I would like to make sure
it is a series of 1's at the time when I decode. Say, if I want to
update the clock every 10 minutes or say even 10 seconds. I want to
make sure I don't fall on a "0" every time I hit 10 seconds. Any
ideas?
Thanks,
Valiz.


A time code frame begins with a reference marker (this should be your

goal). When you need a time reference I suggest you poll for at least 10 seconds looking for reference marker. You can also look for a known variable, for example the days or days * 100. When you find this bit combination, do a
validation check by checking the previous or next word to ensure that it is not by chance the bit combination exist. If you're polling satellite, you need to make sure you have the receiver locked to at least one satellite
(status "0").

I'm not sure about the question, if the question is how do you test a
certain bit, here is a function that will help you do that:

' Test bit position "bit" in the value "InByte"
' returns true / false

Private Function TestBit(ByVal InByte As Byte, ByVal bit As Integer) As
Boolean
If bit >= 0 And bit <= 7 Then
TestBit = ((InByte And (2 ^ bit)) > 0)
End If
End Function


Thanks for the info. I am sorry for not being clear with the question.
I am looking at the Time Quality bit (every second) in the IRIG-B
signal and it shuffles or toggles back and forth (0 and 1)randomly and
there's no regularity whatsoever. If it is a "1", an embedded
microcontroller (Atmel) takes in the signal and from there I update my
system clock. And, if it is a "0" I need to write system time to the
microcontroller (which serves as clock for some other serially
connected devices). My primary concern is that every time I use a
timer say for 10 seconds to update the system clock, I do not want to
hit a "0" for every cycle. Although it does not hit every time, there
is certainly a possibility that I might hit "0". Hence, am looking for
a method to eliminate that possibility, like for example a sliding
window that keeps checking for the Time Quality bit status or
something like that.
Thanks again for the info.
Valiz.


I am afraid I will have to retreat. In all my years I have never heard an
IRIG-B "Time Quality" bit. I am assuming there is something proprietary
about this data so I don't dare to even guess or suggest what you should do.
However, examining the buffer and testing for certain bits as I have outline
in previous e-mail certainly can be used. Good luck.
Jul 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2426
by: Jan Wieck | last post by:
Dear community, for some reason the post I sent yesterday night still did not show up on the mailing lists. I have set up some links on the developers side under...
3
2208
by: Travis | last post by:
I am trying to display a query like this in my windows form: SELECT workordernumber, date, firstname, lastname FROM customer_db; I am using a rich text box to display the data but it only...
0
1180
by: Scott Hamlin | last post by:
I have created an ASP.NET application that has a series of TextBox and Label controls inside a DataList. I need to determine what the Label Control is (it will hold the primary key of the DB record...
2
4558
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
6
6390
by: Biva | last post by:
Hello All, Please help. I get the following error from my webpage: System.InvalidCastException: Specified cast is not valid. at Time.MaintAtRiskProjects.UpdateProject(String Project, String...
5
9853
by: Michael C# | last post by:
Hi all, I set up a System.Timers.Time in my app. The code basically just updates the screen, but since the processing performed is so CPU-intensive, I wanted to make sure it gets updated...
1
3152
by: Franklin M. Gauer III | last post by:
I create a simple DATAADAPTER in a webservice project. It creates the UPDATE, INSERT, DELETE commands for me - no problem. In vS2005 it creates these commands as RESOURCES in the RESX file (i.e....
3
11227
by: SugarDaddy | last post by:
Here's my problem. I have an NT service (really a .NET service) running as local system. I have a .NET form running on the user account. The form and the service communicate via an IPC Channel...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7205
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.