Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

NetworkTimeProtocol


mcginwil_17 Oct 24, 2024 09:48 PM

I am trying to include the instruction NetworkTimeProtocol in a program to ensure the data from two separate stations have synchronized timestamps. 

So far, the instruction returns a connectivity error (-2.147484e+09) and the station clock does not change. 

The code I have been adjusting is:

BeginProg

Scan (60,Sec,0,0)
PanelTemp (PTemp,60)
Battery (Batt_volt)

CurrentSE (Analog1824_Ch1_Temp,1,mV2500,1,1,0,60,1.0,0) 'Read analog signal from card 1824 channel 1
VoltSe(Analog1824_Ch2_Flow,1,mV2500,4,True ,0,60,1.0,0) 'Read analog signal from card 1824 channel 2
VoltSe (Analog1821_Ch1_Velocity,1,mV2500,6,1,0,60,1.0,0) 'Read analog signal from card 1821 channel 1
CurrentSE (Analog1821_Ch2_Level,1,mV2500,2,1,0,60,1.0,0) 'Read analog signal from card 1821 channel 2

'NEXT: Bench test sesnor to build multiplier/offset relationships between mA/mV output and parameter values
'Figure out reasonable upper limits to program into Signature


NextScan

'Synchronize datalogger clock To NIST Internet Time Server (IP )
SlowSequence
Scan(10,Sec,0,0)

TimeOff = NetworkTimeProtocol("132.163.97.1",0,1000)

NextScan

EndProg

I would appreciate any insight into why this is not working

Will 

  

Log in or register to post/reply in the forum.