LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to send 12byte timestamp with labview tcp

OK so I need to send a 12 byte timestamp along with my data using Labview TCP. I enabled RFC 1323 Timestamps on the windows 7 machine with netsh. And using wireshark I can see that the timestamps options are being sent for seperate functions but the 12byte timestamps not added to the 20 byte header when the labview app sends its data. How can I turn on this function for the labview write data?

Download All
0 Kudos
Message 1 of 6
(3,017 Views)

You will most likely need to do this yourself with calls into the stack. This thread may help to point you in the right direction.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 6
(2,984 Views)

So I might be able to enable the timestamp using the GetRawSocketFromConnectionID.vi. But how do I know what to input into the Call Library Function without screwing up the rest of the connection?

0 Kudos
Message 3 of 6
(2,970 Views)

You will have to lookup Microsoft's documentation on their socket library.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 6
(2,965 Views)

I think I've become more confused than when I started. This link doesn't say anything about how to enable the timestamp on a per socket case using setsockopt( ). But how to enable it on the machine. Which I have verified. So why is it that when labview sends data the timestamp isn't included?

 

0 Kudos
Message 5 of 6
(2,946 Views)

TCP Wiki this has some info that might help. "Some options may only be sent when SYN is set; they are indicated below as [SYN]. Option-Kind and standard lengths given as (Option-Kind,Option-Length)"  

 

One option being the timestamp. So how can I set the SYN bit to 1?

0 Kudos
Message 6 of 6
(2,945 Views)