Example Code

Add the Current Time And Date as Overlay to An Image

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

  • Vision Development Module
  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates how to add the current date and time as overlay to an image. 

 

Description

It is sometimes useful to add the data and time of the aquisition or other information to an image. This can be done using the Vision Development Module. This examples add the date and time, but can also easily modified to display other information.

 

Requirements

 Software

  • LabVIEW Base Development System 2012 (or compatible)
  • NI Vision Development Module 2012 (or compatible)
  • If running in a Real-Time context, you will need the LabVIEW Real-Time Module 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 ZIP-file
  2. Run the VI

 

Additional Information or References

Add Overlay With Timestamp To Image - Front Panel.png

Add Overlay With Timestamp To Image - Block Diagram.png

 

 

**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.**
With warm regards,

David D.

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

Comments
JL2010
Member
Member
on
Doiron
NI Employee (retired)
on

Hi JL2010,

In order to save an image with overlay you must first merge the overlay. You can see this in another example posted here: http://decibel.ni.com/content/docs/DOC-4372

I found this by searching "save overlay" at ni.com, it was the 9th result.

With Warm Regards,

David Doiron

Applications Engineer

National Instruments

With warm regards,

David D.