LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Vision - Failure Event Capture

Hi, I just got the NI Vision add-on and would like to use it to capture failure events.  Basically, I have a test that is running for an extended period of time.  When the test unit fails, I want to capture the event.  I want to have the camera save a video of the event, probably a few seconds before and after.

 

I wrote a program in Python to do this by continuously recording and using a buffer to capture the time before and after the event.  But I am sure someone has already done this with NI Vision.  Are there any examples? 

 

Any advice is appreciated.

 

Thank you

0 Kudos
Message 1 of 3
(2,089 Views)

How experienced are you with LabVIEW Vision?  Do you know if your camera is compatible with LabVIEW Vision?  Have you been able to "see" a live Video stream in MAX?  If you can see a video stream in MAX, you should be able to develop IMAQdx code to "Grab" a video stream from the Camera and display it on an Image Display.  Once you've gotten it this far, you can research what you need to do to create an AVI file from the images streaming from the Camera.

 

If you get stuck, feel free to come back here, post your VI, and describe what doesn't work.  Be sure to mention the camera you are using.

 

Bob Schor

 

 

0 Kudos
Message 2 of 3
(2,048 Views)

I have no experience with Vision.  My USB webcam is compatible.  I have been able to see video in MAX.  

 

I found an example for how to create an AVI file from images streaming here:

 

https://forums.ni.com/t5/LabVIEW/how-can-i-save-video-file-from-USB-camera-in-labview/td-p/3628740?p...

 

How can I program the VI such that when triggered by a boolean, it will save x seconds before and after that instant?

 

Thank you!

0 Kudos
Message 3 of 3
(2,000 Views)