LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

html report naming

Hello All

My question is related to the two attached pdf files.

 

The Report_BD file shows how I am saving a html report. There is no problem with the vi, it works fine. The issue I have is with the naming convention.

 

The second pdf shows a directory listing of the report files that are generated.....a html file....and a jpeg file.

 

I am unaware of the naming convention used for the jpeg file, but its name has no relation to the vi.....example shown LVtemp0337868190917.

 

Now, most readers are going to say......what's wrong with this...it's only a temp file, but I have a need (believe me) to be able to name the file according to my own convention.

 

The question.....can somebody enlighten me on how I might be able to PROGRAMMATICALLY change the name as it is created....a name such as "SecondPage"

 

Thanks for any assistance with this.

 

Best regards

Ray

Download All
0 Kudos
Message 1 of 3
(2,609 Views)

Hi Ray,

there are different solutions. The first is you can change the internal code from the library where the file is generated. Another solution is to go through all files, check if it's an image and if yes change the filename to what you need. Remember the original name, open the html report and search for your remembered name inside a <img src=""></img> tag. If you've found it, replace the new name with the old one.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 3
(2,590 Views)

Thanks Mike

I've drilled down to the vi that generates a random number and adds it to the LVtemp string, and creates a path to the temp directory.

 

I've made a copy of these vi's and started to modify. It looks simple enough.

 

Thanks again for the tip

 

Regards

Ray

0 Kudos
Message 3 of 3
(2,551 Views)