04-02-2010 07:36 PM
1) How do I add a station gloabl variable to the XML report header? I am using standard expand.xsl.
2) Does the example on this page work to change the displaying execution time in HH:MM:SS format? I am not seeing the expected resutls.
http://zone.ni.com/reference/en-XX/help/370052H-01/tssuppref/infotopics/changing_time_display/
Thanks,
-TC
04-04-2010 12:12 PM
Hi,
Here are the answers to your queries assuming you are using teststand 4.2 or above:
1. Report header modification in expand.xsl is mentioned in the following link: http://zone.ni.com/devzone/cda/epd/p/id/4759
In this explanation, the text which is getting display after the report generation can be replaced by a variable(local or global) in the "Modifyreportheader" callback.
2. The display execution does work as explained by NI in the link provided.
If you want the example for the above two queries please find the attached files and explaination given below.
In the sequence file, in "ModifyReportheader" callback, the first statement includes
"Locals.newstring=" <Prop Name='New_Text' Type='String' Flags='0x0'><Value>"
+Locals.message+"</Value></Prop>
"
where "locals.message" can be replaced by global variable.
and you need to place the "expand.xsl" in stylesheets folder. Please rename the existing "expand.xsl" and place the new one.
Hope this helps.
Regards,
Surya.
04-05-2010 11:58 AM
Thanks much -- I am using Teststand 4.1.1 and the example for modifying the header does not seem to work. Any ideas as to how I can modify it?
Thnx
-TC
04-05-2010 01:53 PM
Try with the sequence attached.