ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Variable Timestamp

Is there any way to access the timestamp component of a Network Variable from C# Measurement Studio?
In LabVIEW I can access the timestamp by right clicking the Shared Variable node and selecting show timestamp (like the attached picture).
Thanks

0 Kudos
Message 1 of 2
(3,599 Views)
Hi d_sdl,
 
Use the NetworkVariableData<TValue>.TimeStamp property to get the timestamp associated with the data. So you could have some code like:

NetworkVariableData<double[]> data = null;
data = _reader.ReadData();
DateTime timeStamp = data.TimeStamp;

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(3,442 Views)