NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

teststand automatic test report printing using LabView workaround

 

I tried the LabView workaround for the automatic printing of test reports in TestStand (see email message below). 

 

It will work if I set the URL to a specific HTML TempReport.  However, TestStand is configured to generate a unique test report for each UUT.  So, in the test report directory there are xml reports and the occasional HTML report, example TestReport_00104.html.  Not sure then what to set the URL to?

 

 

 

______________________________________________________________________________________________

 

 

Note:  Your reference number is included in the Subject field of this message.  It is very important that you do not remove or modify this reference number, or your message may be returned to you.

Hi Bill,

Thanks you for your reply.

Right ok. Well, if you are interested in the LabVIEW workaround, I can send this to place it in your modified sequential model.

The workaround works as desired. It does it all automatically. I have set it to not prompt the user for the print dialogue but this can be easily changed. Therefore, for any example program in Teststand, if it is based on the modified sequential model, an HTML style report will be printed on the default printer automatically.

It needs to be placed in the following location:

Within the Sequential Model, within 'Single Pass>>Print Report' do the following:

- Replace all the 'Main' steps (Navigate to HTML, Print HTML File & Close IE Browser) with the LabVIEW function call.

- This one function call will do all the steps above at once.

NOTE: In the LabVIEW VI, you will need to select the correct directory where the new html files are being created. Otherwise the print function will not work. This is called URL. Make you sure you have checked this.

For ease of understanding I have included these steps in a word document with screen shots.

As I do not know which version of LabVIEW you might have, I have attached three versions of the .vi file; 2012, 2011 and 2010.

In regards to the mention of Teststand not having built in functionality for automatic printing of reports, unfortunately this is the case.

I hope this will be a sufficient workaround for you.

If you problems implementing this solution, please ask me for further information. However, it should be fairly simple to do.

Just to inform you, I will be out of the office from 12.45pm today for the rest of the week on annual leave.

I will be back in the office on Monday 14th January 2013, should you have any further queries.

Kind Regards,


Dominic Clarke
National Instruments
Applications Engineering
www.ni.com/support

0 Kudos
Message 1 of 2
(4,375 Views)

Hi Bill,

 

I managed to implement this.

 

In the sequential model I added a LabVIEW action after 'Add Root Tags To XML Report'

 

As URL I use a sequence local: Locals.ReportFilePath

 

I points to the ML report in my case and then the VI works fine.

 

However I'm looking for extra functionality and that is waiting untill printing is completed.

 

Can you help me on that ?

0 Kudos
Message 2 of 2
(4,101 Views)