LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving multiple IMAQdx images

Hi, I wanted to ask for help in implementing my program. I want to save the image from my camera when I click on the button, so that I can save the image, but when I save it again, it will be replaced with the current one. How do I create a new name with the current time name?

(For example: Image_12:30, Image_12:35..)

2) Is there a way to capture video from a camera and save it to a file not as an image, but as a video?

3) Is there a way to record the entire virtual instrument? (For example: A video showing the inodes, camera, and other interface elements)

Download All
0 Kudos
Message 1 of 3
(122 Views)

Hi Seth,

 


@SeraphimSeth wrote:

How do I create a new name with the current time name?

(For example: Image_12:30, Image_12:35..)


Like this:

Read the help for format codes to learn about the possible options!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(67 Views)

Hello,

1. GerdW already showed you a more scalable way (especially since you can also add fractional seconds) to name your file, but even in your code you could connect True to "want seconds?" (EDIT: to "Get Date/Time String") in your code :).

2. Yes, as .AVI file. Check this example: C:\Program Files\National Instruments\LabVIEW <version>\examples\Vision\Files\Read AVI File.vi. You'll figure out how to write frames to AVI based on that.

3. Would overlays on the image work for you? Check this example on how to handle overlays, just remember you'd likely need to use IMAQ Merge Overlay function before writing to a file. C:\Program Files\National Instruments\LabVIEW <version>\examples\Vision\Contour Analysis\Contour Defect Inspection.vi. Of course there is IMAQ Overlay Text, so you can add info you need in the image.

Hope that helps!

0 Kudos
Message 3 of 3
(54 Views)