Example Code

Configuring the Time Synchronization Service Without Lookout or the LabVIEW DSC Module

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates how configure the Time Synchronization Service without installed DSC or Lookout module.

 

Description

In order to keep data properly time stamped in Lookout and LabVIEW DSC you need to ensure the clocks on the computers are synchronized. The NI Time Synchronization (lktsrv.exe) offers the ability to do that. NI Time Synchronization allows a computer to keep its time synchronized with a master time server, or to act as a time server for other machines.

You can configurate the NI Time Synchronization in the LabVIEW Development Environment, if you select Tools > Options and select the Shared Variable Engine category.

Shared Variable Engine Time Server.png

This Example shows how to configure the NI Time Synchronization Server on the remote client computer that doesn't have the LabVIEW or DSC Development Enivronment Installed.

 

Requirements

 Software

  • LabVIEW Base Development System 2012 (or compatible)

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Download and open the attached VI
  2. Run the program

 

Additional Information or References

Configurate Time Synchronization Service - Front Panel.png

 

Configurate Time Synchronization Service - Block Diagram.png

 

 

How Do I Synchronize Time Settings on Networked Computers when using Lookout or LabVIEW Datalogging ...

 

How Can the NI Time Synchronization be Configured Without Lookout or the LabVIEW DSC Module?

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ben Sisney
FlexRIO V&V Engineer
National Instruments
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.