LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get save option of a camera image on front panel and automatic save option

Solved!
Go to solution

Hi, I have a Labbview program of a USB3 machine vision camera with an image file saving path and an option for file saving with date and time. These functions are working well but are not displaying on the front panel. Also, I can't save images automatically. The VI is attached. can someone help me?

 

rd2024_0-1728107088079.png

 

0 Kudos
Message 1 of 8
(383 Views)

Your image of part of a LabVIEW VI cannot be edited, examined closely, or executed.  Can you create a new LabVIEW Project that contains a small Demo illustrating the problem you are facing, and attach the entire Project?  Note that many experienced LabVIEW Developers are not using LabVIEW 2024 -- you will reach a larger group with IMAQdx experience if your Demo is in LabVIEW 2021 or 2019.

 

Bob Schor

0 Kudos
Message 2 of 8
(331 Views)
Solution
Accepted by topic author rd2024

@rd2024 wrote:

Hi, I have a Labbview program of a USB3 machine vision camera with an image file saving path and an option for file saving with date and time. These functions are working well but are not displaying on the front panel. 

 

 

 


When downloaded and opened, then Front Panel of your VI appeared "empty"  like this:

Screenshot 2024-10-07 16.30.47.png

 

Is this your problem?

 

If so, then just scroll Front Panel to the left, you will see your controls and indicators:

Screenshot 2024-10-07 16.31.57.png

 

What I would like to recommend is to move all your visible GUI elements to the right, relative to Origin Point here as shown below:

Screenshot 2024-10-07 16.33.10.png

 

Then in such case you can simply use "Reset to Origin" Quick Drop keyboard shortcut (Strg+Space/Strg+O) to reset Origin to zero. Save your VI, then Origin will be saved as well. Or you can also set it programmatically:

Screenshot 2024-10-07 16.40.06.png

You can also using this setting in the VI's Properties:

Screenshot 2024-10-07 16.46.33.png

Hope this helps (if this is exactly your trouble).

Message 3 of 8
(308 Views)
Solution
Accepted by topic author rd2024

Hi,

Thank you very much for your time and reply. I want a file path, and a saving option on the front panel, along with user inputs (test name, specimen name, etc.). The VI contains a concatenate string with file-related information, but not displayed on the front panel. VI is attached.

rd2024_0-1728711086051.jpeg

 

 

Download All
0 Kudos
Message 4 of 8
(267 Views)
Solution
Accepted by topic author rd2024

@rd2024  a écrit :

Hi,

Thank you very much for your time and reply. I want a file path, and a saving option on the front panel, along with user inputs (test name, specimen name, etc.). The VI contains a concatenate string with file-related information, but not displayed on the front panel.

 


To turn constant to Front Panel's Control you can use context menu:

 

Screenshot 2024-10-12 08.25.39.jpg

 

Then you will get it:

 

Screenshot 2024-10-12 08.26.31.jpg

 

In your case probably better to use Path Control (you can adjust options if you prefer to select file or folder, etc)

 

Screenshot 2024-10-12 08.26.51.jpg

 

To convert path to strings you can use Path To String, and Build Path could be also useful for you:

 

Screenshot 2024-10-12 08.29.13.jpg

 

0 Kudos
Message 5 of 8
(259 Views)
Solution
Accepted by topic author rd2024

Thank you for the help. I implemented them following the suggestions. How can I activate the auto-save option (e.g. 1 image in every 5 s) after running the VI without clicking the capture option? 

0 Kudos
Message 6 of 8
(236 Views)
Solution
Accepted by topic author rd2024

@rd2024  a écrit :

Thank you for the help. I implemented them following the suggestions. How can I activate the auto-save option (e.g. 1 image in every 5 s) after running the VI without clicking the capture option? 


Use snippet like this:

 

snippet.png

0 Kudos
Message 7 of 8
(231 Views)

Thanks for the consistent support. I implemented the auto-capture option in the camera. Next,  if I want to trigger the auto-capture with a rotational motor in the same VI, suppose the camera will capture the image at every 5-degree rotation of the motor (at motor position: 5, 10, 15, and so on)

The VI image of the motor,

 

rd2024_0-1728822533193.jpeg

The VI image of the camera,

 

rd2024_1-1728822665150.jpeg

The project and VI files are attached.

 

Can you please help me?

 

 

 

0 Kudos
Message 8 of 8
(187 Views)