LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the filename of the .png that is saved when I create an HTML report?

Solved!
Go to solution

I have a report generation .vi that reads in multiple graphs and appends the "picture" to the .html report. Is it possible to control how LabVIEW names the resultant graph .png?

 

I'ver attached a picture of the code snipet and the auto generated file.

 

Thanks!

Download All
0 Kudos
Message 1 of 4
(2,783 Views)

Could you post your entire VI? 

 

Thanks, 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 2 of 4
(2,739 Views)

Hi Patrick,

 

Attached is the .vi.

 

Thanks!

0 Kudos
Message 3 of 4
(2,728 Views)
Solution
Accepted by topic author BenMedeiros

Hello,

 

The naming convention is designed to ensure no conflicts are generated as this Report Generation Class is called. Below, I have attached a screenshot of the functionality that defines the images names.

 

ImageNames.png

 

You can view this block diagram by double-clicking and opening the report generation tools. While you are free to modify this class to implement a new naming schema, I must insert the disclaimer that this process may have ill-effect on additional functions int he report generation toolkit. As you can see in this code the names are randomly generated, and applied based on a randomized number. You might look into implementing a system that gets the control label from the input control reference, and builds the appropriate file path for the PNG images. 

 

I very much appreciate your time. Please post any additional questions. 

 

Sincerely, 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

0 Kudos
Message 4 of 4
(2,704 Views)