**3.3 Report generation**

LabVIEW includes **Report Generation** toolkit to present your data in a Microsoft Office Word and/or Excel file. To use LabVIEW Report Generation Toolkit, it must be installed. Then corresponding functions will be located in **Functions> > Report Generation** palette (**Figure 28**).

### *3.3.1 Microsoft office word and excel reports*

Report Generation palette contains many functions. Therefore, it is not easy to understand their properties. We recommend that you examine first the report generation example VIs in LabVIEW (**Help>> Find Examples>> Search**). You can modify them according to your purpose. These VIs generally generate reports based on templates. Using a template, allows you to generate standard reports for

4.Under the **Visible VIs** section, enter the name of the VI (Remote Panel Example.vi) in the **Visible VI** field and press the **Add** button (**Figure 22**).

selected (**Figure 22**).

dialog box.

**Figure 16.** *3D graph examples.*

**Figure 17.** *Plot helper.Vi.*

(**Figure 25**).

**16**

6.Click OK and exit out of the **Options** dialog box.

*LabVIEW - A Flexible Environment for Modeling and Daily Laboratory Use*

appropriate **Viewing Mode** click Next (**Figure 23**).

5.Under the **Browse Access** section, enter the network name of the computer and press the **Add** button. Allow viewing and controlling option must be

7.Navigate to **Tools»Web Publishing Tool** to open the **Web Publishing Tool**

8.Under **Select VI and Viewing Options** section, select the VI. After selecting

9.Fill Document title, Header and Footer sections and click **Next** (**Figure 24**).

10.Under the **Save the New Web Page** section, select where to save the HTML file and choose the file name and press **Save to Disk** button

each execution of a VI. In the following example we generate a report for Microsoft Office Word (**Figure 29**). The example draws a circle and paste the circle to a Ms. Office Word document (**Figure 30**). You can determine color, size, graph type, marker style etc. by using the functions in Word Specific palette (**Figure 31**). Similarly, you can use **Excel Specific** palette to generate programmatically an Excel report (**Figure 31**).

file. Because reading an html file is not effected by version of web browsers. On the contrary, current version of Microsoft Office Word or Excel in your computer may

The following VI generates an html report (**Figure 32**). Here, **Random Number**

Report Generation toolkit also contains **Report** Express VI and **MS Office Report** Express VI (**Figure 34**). These Express VIs allow you to present data in

not be compatible with LabVIEW **Report Generation** toolkit you installed.

function generates Y array. X Array is generated by absolute time values. When you execute the VI above the following report will be generated

(**Figure 33**).

**19**

**Figure 22.**

*Visible VIs and browser access list.*

**Figure 21.** *Options»web server.*

*Analyzing and Presenting Data with LabVIEW DOI: http://dx.doi.org/10.5772/intechopen.96130*

form of html, MS Office Word or Excel.

When you execute the VI you see the following picture in an automatically created Word document.

#### *3.3.2 HTML report*

LabVIEW has the ability to programmatically create html reports. Html files can be read by web browsers. We highly recommend you to present your data as a html

## *Analyzing and Presenting Data with LabVIEW DOI: http://dx.doi.org/10.5772/intechopen.96130*


#### **Figure 21.** *Options»web server.*


#### **Figure 22.**

each execution of a VI. In the following example we generate a report for Microsoft Office Word (**Figure 29**). The example draws a circle and paste the circle to a Ms. Office Word document (**Figure 30**). You can determine color, size, graph type, marker style etc. by using the functions in Word Specific palette (**Figure 31**). Similarly, you can use **Excel Specific** palette to generate programmatically an Excel

*LabVIEW - A Flexible Environment for Modeling and Daily Laboratory Use*

When you execute the VI you see the following picture in an automatically

LabVIEW has the ability to programmatically create html reports. Html files can be read by web browsers. We highly recommend you to present your data as a html

report (**Figure 31**).

*Remote panel example.Vi.*

**Figure 20.**

**Figure 19.** *Drawing a sphere.*

*3.3.2 HTML report*

**18**

created Word document.

*Visible VIs and browser access list.*

file. Because reading an html file is not effected by version of web browsers. On the contrary, current version of Microsoft Office Word or Excel in your computer may not be compatible with LabVIEW **Report Generation** toolkit you installed.

The following VI generates an html report (**Figure 32**). Here, **Random Number** function generates Y array. X Array is generated by absolute time values.

When you execute the VI above the following report will be generated (**Figure 33**).

Report Generation toolkit also contains **Report** Express VI and **MS Office Report** Express VI (**Figure 34**). These Express VIs allow you to present data in form of html, MS Office Word or Excel.

