10-06-2009 04:44 AM
Hi,
I was trying to get The hyperlink for some of The files in The teststand(4.0) report for a particular custom step made in labview 8.5. I was able to get The link correctly when The path specified does not contain any tokens(\N, \T,\R,\n,\t,\r,etc).
For example if my Folder name is "New" inside which my file is present(C:\NEW\test.txt). The teststand automatically converts "\N" and "\t" in The path to tokens.
I am not able to resolve this.
Can anyone help me in this regard.
Thanks,
Praveen
Solved! Go to Solution.
10-06-2009 06:10 AM
Hi,
You need convert your \ to \\.
Regards
Ray Farmer
10-06-2009 06:39 AM
Praveen,
this is called Escape Characters (search for ecape characters in the link), which is common for (nearly) all programming languages as well. TestStand uses a syntax derived from ANSI C in expressions.....
hope this helps,
Norbert
10-06-2009 06:50 AM
hi Ray,
replacing "\" with "\\" did not solve my problem.
The path which comes from labview VI is :C:\Testing\New Folder\REPORT\test.txt
10-06-2009 07:13 AM
Ray,
I was wrong, sorry. Your solution worked good. Need to test more.
10-06-2009 07:15 AM
Praveen,
you have to exchange every '\' into '\\'. So your path-string has to look like:
"C:\\Testing\\New Folder\\REPORT\\test.txt".
hope this helps,
Norbert
02-25-2010 11:39 AM
02-25-2010 01:15 PM
I have another query : How to make relative paths working in Teststand report instead of giving absolute path?
This query is because if I want to open the report in another PC, it opens good, but when I try to double click to open the link in report it does not, even if the file is placed in the same place where it was to be. So I wanted the link given to the relative instead of absolute.
Surya.
02-26-2010 11:52 AM
I got the soultion for my query, working on it for an hour.
Solution:
If the path for the text file which was linked in report was :C:\Testing\New Folder\REPORT\test.txt
and if the report file is parallel to the test.txt file: C:\Testing\New Folder\REPORT\test.xml.
then for the link for absolute path in report : C:/Testing/New Folder/REPORT/test.txt
link for the relative path in report : "test.txt"
If the path for the text file which was linked in report was :C:\Testing\New Folder\REPORT\files\test.txt
and if the report file is parallel to the test.txt file: C:\Testing\New Folder\REPORT\test.xml.
then for the link for absolute path in report : C:/Testing/New Folder/REPORT/files/test.txt
link for the relative path in report : "../test.txt"
This is working for me, hope this works in every case.
Praveen.