04-11-2014 06:28 AM
I am looking to display images from an image folder containing mostly jpg images. I want to be able to display the images on the front panel and cycle through them through a button. How would I do this?
LabVIEW 2013
Solved! Go to Solution.
04-11-2014 06:33 AM
You can use file functions to list the image files and load them using image functions (graphics and sounds).
Point is, that LV is not prepared to work with thumb nails, like e.g. the windows file explorer nowadays. So you will load all images completly before displaying the images. This can easily create out of memory issues....
OK, manually implementing functions building previews is possible (essentially reducing image size, unloading the origrinal image after that keeping the thumb nail), but depending on the result you want to have in the end it will be simple overhead....
Norbert
04-11-2014 06:37 AM - edited 04-11-2014 06:44 AM
Hey Norbert_B thanks for the reply. Would it be possible to see an example I am a total newbie to labVIEW? I am looking to build a basic program that just reads the image folder and cycles through the images by means of a button.
This is what I have so far it will read the image folder and display the matching format image but I don't know how to cycle through them with a button?
04-11-2014 06:50 AM
You should work with Recursive File List to get the paths to the JPG-files.
Using an Event Structure or a State Machine architecture enables you to swap image only when the user presses a button. Refer to the template browser (File >> New) for a basic concept.
Norbert
04-11-2014 08:36 AM - edited 04-11-2014 08:36 AM
Thats "File>>New..." right below "File>>New" the frameworks Norbert suggested you should look at are Here:
(Some of those choices will not be available to you I add some custom stuff there)
04-11-2014 09:35 AM
This is the solution if anyone needs it
04-11-2014 01:10 PM
@PauldePaor wrote:
This is the solution if anyone needs it
I answered this topic in the cross post on LAVA. The only chagnes appear to be making the BD full screen, repositioning controls, adding a second 2D picture control (that is always blank and unlabeled), and resaving to 2013.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-11-2014 01:21 PM
Yes Hooovahh answered this on a cross post on LAVA. Full credit goes to him for this solution. I uploaded my tweaked version for my needs instead of the original VI that was provided. Apologies for this.
04-11-2014 02:02 PM
@PauldePaor wrote:
Yes Hooovahh answered this on a cross post on LAVA. Full credit goes to him for this solution. I uploaded my tweaked version for my needs instead of the original VI that was provided. Apologies for this.
No problem I didn't think you were trying to take credit, just wanted to give a more full picture by linking back to where the original solution was posted.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-14-2019 11:46 PM
I am doing my DST project work in Labview. Thanks for the .vi. Its made my work simpler.