Example Code

Sending Time Stamp Data Through DataSocket

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

Coding that uses a producer consumer architecture to generate a DataSocket communication to send a time stamp.

 

Description

The DataSocket VIs do not directly provide the functionality to send time stamp data through DataSocket items. However, we can define a custom datatype that will include this information. In order to make this VI work, we need to start the DataSocket Server by going to Start >> All Programs >> National Instruments >> Datasocket >> DataSocket Server.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Ensure the DataSocket Server is started.
2. Run the VI

 

Additional Information or References

Capture.PNG

Misha

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