Example Code

IMAQdx Grab with Custom Timestamp in Milliseconds

Code and Documents

Attachment

This VI performs a simple grab while taking custom timestamps with each iteration of the while loop.

The VI opens an IMAQ session, opens and configures a camera with IMAQdx and then takes a grab within a while loop. With each iteration, a timestamp taken from tick counts in ms is taken. The tick count is then subtracted from the original tick count and the final values are written to a text file. The final step is to close both the IMAQdx camera and text files.

This VI was written in LabVIEW 2011 and you will need IMAQdx to run the program.

To run the program, open the attached VI, select your camera name, click run, and select the file path in which you want your timestamp data to be saved.

Grab with Timestamp Front Panel.PNGGrab with Timestamp Block Diagram.PNG

Applications Engineer
National Instruments

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

Contributors