LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

html report generation save to same VI folder

Solved!
Go to solution

Hi all,

            Im creating a sample html report using labview6.1. my question is i want to save my report html file to the current directory where the vi is located instead of giving some path like " C:\Folder1\Folder2\..." etc . My intention is to put the VI in a zip file so that i can send it to my friend and when he runs it its easy to locate the report since VI and report are in same directory..

Any methods to do so??

Steve.

Message 1 of 6
(3,503 Views)
Solution
Accepted by topic author ku637

Get directory path

 

 

 

 

 

 

 

 

Try this

Message Edited by Baji on 05-13-2009 11:08 AM
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 2 of 6
(3,494 Views)

Just aside...

 

Balaji, can you give your email ID for me to contact you? Or, can you mail to my email ID found in my profile page?

 

I need to have an offline discussion with you...

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 6
(3,478 Views)

I am not found ur email ID in profile page

my email id is-usicbala@gmail.com.

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 4 of 6
(3,473 Views)

thank you very much a little addition to ur suggestion solved my problem

 

0 Kudos
Message 5 of 6
(3,462 Views)

When you build your VI into an EXE, it wont work.

 

To make it work in an EXE, you need to strip the path twice before appending your report filename.

 

Another good approach is take the Application Kind property (node) from the Application pallette& wire it to a case structure. You ll get many types of the application. In Development System case, put this single-stripped path code. In Run-time System, directly wire the Application Path property (from the node kept connected to the case structure) thro' this case & to the build path terminal kept outside the case structure (common to all cases)...

- Partha ( CLD until Oct 2027 🙂 )
Message 6 of 6
(3,445 Views)