02-06-2025 05:58 AM
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)
02-07-2025 07:29 AM - edited 02-07-2025 07:30 AM
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!
02-07-2025 09:52 AM - edited 02-07-2025 09:54 AM
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!