LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a png image in a folder

 Hello,

 

I am able to  to write the png image on the existing images(i mean it is over writing the existing), actually i want png image to be created in a folder, i mean to say when i run my vi every time a new png image has to be created in the given folder path i dont want to overwrite it.

 

Regards,

Ali

0 Kudos
Message 1 of 4
(2,590 Views)

Hi Ali,

 

so you need to create a new file name instead of using the name of an existing file…

 

What is your problem with this?

Best regards,
GerdW


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

I have attached the example code which i got from community.

 

In the below zip file i have used example vi.

 

In this example vi the bar code image am writing it using write png. here when i run my vi i want to be create a new png image, for example if i run code for ten times i need 10 png images to be created in a folder.

 

please help me.

 

Thanks in advance.

 

 

Download All
0 Kudos
Message 3 of 4
(2,566 Views)

HI shaik,

 

In this example vi the bar code image am writing it using write png.

I don't see any code writing PNG files…

 

here when i run my vi i want to be create a new png image, for example if i run code for ten times i need 10 png images to be created in a folder.

You need to use a function like this - available in more recent LabVIEW versions…

But by reading it's help you should be able to implement the same algorithm using the FileFolderExists (or ListFolder) function!

Best regards,
GerdW


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