Video Test Reference Architecture: Digital Video Analysis and Stream to Disk

Publish Date: May 14, 2008 | 0 Ratings | 0.00 out of 5 | Print | Submit your review

Overview

The Example programs demonstrates a simple digital video pixel test with the data being streamed to disk as it is tested. This works well due to the high speed of the PXIe bus.

1. Digital Video Pixel Test and Stream to Disk

There are two main operations in the code.  One in each while loop.

The stream to disk loop is the same as in all of our other data acquisition and streaming examples.  The key being to use the win32 file API library.  This turns off windows caching. This allows for the data to be streamed into the RAID array at a much higher rate than using the traditional LabVIEW file I/O functions. 

The upper acquisition loop is written to acquire the digital data.  Then using the LabVIEW Vision Module image acquisition VIs displays the image and performs a pixel test on it.  Currently the test is a comparison of the current frame with an image from file.  This test image could also be acquired from the board before hand, or from another device with minor modification to the code.

In this example the analysis being done is simple enough that the data acquisition is being called often enough to avoid buffering problems.  If the image analysis become more complicated it would be better split this loop into two parallel loops one for data acquisition.  The other for image processing and analysis.  This would take advantage of LabVIEW's inherent parrallelism.

Back to Top

Bookmark & Share


Downloads

Attachments:

Digital Video Pixel Test Strea
m to Disk

Requirements


Ratings

Rate this document

Answered Your Question?
Yes No

Submit