LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change Report.vi unique name in images?

Solved!
Go to solution

I have a VI that generates a HTML with the Report.vi which is intended to be uploaded for monitoring some values via internet, and I generate the html every 15 minutes.  My problem is that even though the report.htm file is replaced the images from the graphs are not. So after a day or 2 I have many jpg files in my folder with only 1 htm file. Is there anyway to make the report.vi change this and just use the same name for the graphs? So I just end up with 3 files instead of many after a couple of days.

 

Thanks for the help

0 Kudos
Message 1 of 9
(3,024 Views)

Hi -L-,

do you mean the express vi? You can work on it, to change it to what you need. With a right click on it you can unlock the front panel to open the source of it.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 9
(3,019 Views)

Hi Mike,

    thanks for the answer. And yes I have tried this. The problem is once you get into the front panel and its corresponding diagram block you only have access to the same options that the properties menu has. Even when you go deeper into the diagrams there is no option to name the graphs. I was able to go deeper into the diagrams until one called ReportGraphTable.vi which i was unable to change because it's password protected. I will suppose that this is the vi that names the graphs.

The vi I'm refering to is in Programming->Report Generation->Report.vi  which is the same of Express->Output->Report

 

Thx again.

 

 

0 Kudos
Message 3 of 9
(2,995 Views)

Hi -L-,

the name is generated in different vi's depending on the picture you will store. One of these is "Generate_pseudo_unique_filename.vi" it creates the filename for the FrontPanel image.

 

Mike

0 Kudos
Message 4 of 9
(2,990 Views)

Hi Mike,

 

   thanks again for the quick response. I can't really seem to find this "Generate_pseudo_unique_filename.vi" is it in inside the report.vi or is it elsewhere? I even looked it in the search option of labview and couldn't find it. Also what do you mean by "creates the filename for the FrontPanel image". Maybe we are not talking about the same thing. I use only the features on the report.vi, I'm not adding any other image or data or anything. I attach the two signals i'm monitoring to signal 1 and 2 to the report.vi and then click on "include graph" on the data input 1 and 2. This then automatically creates this files I'm refering to. 

The names are saved correctly in the path I have given and then I get the following files

report.html

ct1261844721.jpg

ct0261844178.jpg

which are the two graphs displayed on my htm file.

The ct...jpg files are the ones that are constanlty added. 

 

Thanks again.

 

0 Kudos
Message 5 of 9
(2,978 Views)

Hi -L-,

see the attached picture please. It shows where your filenames were generated.

 

Mike

0 Kudos
Message 6 of 9
(2,974 Views)

Hi Mike,

   well sorry, might be obvious for you but I can't really manage to find where this vi (append image to report) is in the report.vi . I have found it using the search option and it is under the report generation menu, but obviously when you open it is empty.

So how exactly can I modify this part of the vi? If I can acces the part that you show I think I can manage but, somehow I'm not able to find it. I have attached to pictures of what I can acces without a problem and where I'm stuck because of the password protected part.

report1.png shows the report vi and what i can acces.

report2.png shows the part in the vi that says its password protected.(inside red square)

 

 Thanks again and thanks for the patience as well.

 

Note I'm using labview 8.6 and chose HTML for Web Page in Destination option at the report.vi. Also signal 1 and signal 2 controls are to emulate the signal I get in my vi.

 

Download All
0 Kudos
Message 7 of 9
(2,959 Views)
Solution
Accepted by topic author -L-

Hi -L-,

you can change the name of your file in the following function (see attachment). 

 

Mike

0 Kudos
Message 8 of 9
(2,941 Views)

Mike,

   thanks for the help, I finally managed to change the names where you mentioned. Took a while because I couldn't link the html with the new file names but I managed at the end.

 

-L-

0 Kudos
Message 9 of 9
(2,916 Views)