LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write PNG file

Hi Fred,

 

have you tried it? It's a snippet!

 

You get an array of file paths...

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 21 of 38
(344 Views)

For some reason, I can't drag the snippet into my block diagram. Okay so it retrieves all the png images in the folder that I specify so is there any way for me to display all the png images that I retrieve on a indicator?

0 Kudos
Message 22 of 38
(339 Views)

Hi Fred,

 

"to display all the png images ... on a indicator?"

Yes, there is a way...

 

One after the other: FOR loop with autoindexing (and maybe a small wait for each iteration)

All together: Look at the examples for the picture indicator. Then "append" the pictures to build a big one...

 

For the snippets: searching the forum may help...

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 23 of 38
(337 Views)

To be more exact can I display them one after another on a picture ring? This is because I need these images to create an animation.

0 Kudos
Message 24 of 38
(330 Views)

Hi Fred,

 

I'm afraid there is no property to set the images in a picture ring at runtime - atleast I did not find one in a quick search...

 

So you have to use a picture indicator - you still can show the pics as an animation.

 

Have you searched the forum for "animated gifs" or like?

 

Do you get the point on continuing in this thread? "All information in one place"...

You ask something, I provide an answer. You ask again and provide more details of your first question.

Maybe you should learn to ask with providing all neccessary information in the first place?

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 25 of 38
(327 Views)

Hi Fred,

 

About your snippet issue. Have you saved the snippet on your hard drive before dragging it or have you just tried to drag it directly from the forum?

Otherwise, the snippet is in 2009 version, so you can open it with any LabVIEW version from 2009. Wich version of LabVIEW are you using?

 

Regards,

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 26 of 38
(323 Views)

You said that it was possibe to display all the png images one after another on a indicator. After trying for some time, I still counldn't achieve it. Could u give me some idea on how to do it?

Thanks.

0 Kudos
Message 27 of 38
(309 Views)

Hi Fred,

 

it's the same as showing one pciture, but with a loop around it:

check.png

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 28 of 38
(307 Views)

For the snippet, I just drag it directly from the forum and I am using LabVIEW 2009.

0 Kudos
Message 29 of 38
(278 Views)

png error2.png

 

Hi. I connected according to your snippet but when I run it, the VI generated an error ( Screenshot below).

 

png error1.png 

 

So may I know what are the possible causes of this error?

Thanks.

0 Kudos
Message 30 of 38
(277 Views)