**3.1 Visualize your data**

**Figure 7.**

**Figure 8.**

**10**

*Waveform measurements palette.*

*Signal processing palette.*

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

LabVIEW includes tools for charting and graphing, 2D and 3D visualization (**Figure 10**) [2].

LabVIEW has two ways to display data in 2D. These are Chart and Graph (**Figure 11**).

A Waveform Chart remembers and displays a certain number of points by storing them in a buffer. Waveform Chart displays received data in addition to already existing data.

A Waveform Graph accepts arrays of data in various forms, e.g. array, waveform, or dynamic data. It plots all the received points at once.

You can visualize more than one data source on a chart or graph. In the following example **DAQ Assistant** take data from two channels. You can see data from all channels on a chart as shown in **Figure 12**.

A multi-plot chart can be displayed as overlaid plot or stacked plot (**Figure 13**). To select **Stack Plots** or **Overlay Plots** right-click on the chart. **Overlay Plots** mode overlays all plots on the same y-axis. **Stack Plots** mode gives the each plot its own y-axis.

To plot y values in a chart/graph you should wire only the y array data (y values) to the Waveform Chart or Waveform Graph. LabVIEW assumes that you sample y values at regular intervals, and thus creates x values at regular intervals. If you want

**Figure 10.** *2D and 3D visualization palettes.*

to specify x and y values for a plot, you can use **XY Graph**. In the following example we plot multiple circles in a XY Graph (**Figure 14**).

If you want to display both analog and digital signals together in a graph, use a **Mixed Signal Graph** located in the **Graph** palette. A Mixed Signal Graph is made by bundling multiple graphable data types. You can add plot area from the pop-up menu of an existing plot area by selecting **Add Plot Area**. You can also remove a plot area by selecting **Remove Plot Area**. In the following example, you can see both analog and digital signals together in a Mixed Signal Graph with two plot area (**Figure 15**).

LabVIEW allows you to use 3D graphs to plot data in three dimensions. 3D graphs are located in **Controls> > Modern> > Graph> > 3D Graph**. LabVIEW allows you eleven types of 3D graphs: The Scatter, Bar, Pie, Stem, Ribbon, Contour, Quiver, Comet, Surface, Mesh, and Waterfall graphs. You can see some of them in **Figure 16**. However, to study with 3D graphs you must have learned basics of vector and matrix.

**Figure 11.** *Chart and graph.*

**Figure 12.**

**13**

*Visualization of data acquired from 2 channels of a daqcard.*

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

Plot Helper.vi is automatically created in the block diagram when you drop any of the 3D graph. **Plot Helper.vi** is a polymorphic VI and thus it can accept Matrix or Vector inputs according to your selection (**Figure 17**).

You can find the two examples of 3D graphs, below.

In the following example we created a cylinder combining 5 circles whose z axis points are different from each other. Note that **i** (iteration number) generates z matrix (**Figure 18**).

The following VI generates a sphere and visualizes it in **3D Parametric Graph** (**Figure 19**). Here radius of sphere is 5 and sphere is generated by 20 circles. A sphere is a collection of circles. You can see from XY Graph that each circles are individual size.

#### **3.2 Publishing information to the web**

LabVIEW can publish any application to the Web with Remote Panels. Therefore, you can easily make your VI reachable as a Web page. Thus, clients can control *Analyzing and Presenting Data with LabVIEW DOI: http://dx.doi.org/10.5772/intechopen.96130*

to specify x and y values for a plot, you can use **XY Graph**. In the following

If you want to display both analog and digital signals together in a graph, use a **Mixed Signal Graph** located in the **Graph** palette. A Mixed Signal Graph is made by bundling multiple graphable data types. You can add plot area from the pop-up menu of an existing plot area by selecting **Add Plot Area**. You can also remove a plot area by selecting **Remove Plot Area**. In the following example, you can see both analog and digital signals together in a Mixed Signal Graph with two plot area (**Figure 15**). LabVIEW allows you to use 3D graphs to plot data in three dimensions. 3D graphs are located in **Controls> > Modern> > Graph> > 3D Graph**. LabVIEW allows you eleven types of 3D graphs: The Scatter, Bar, Pie, Stem, Ribbon, Contour, Quiver, Comet, Surface, Mesh, and Waterfall graphs. You can see some of them in **Figure 16**. However, to study with 3D graphs you must have learned basics of

Plot Helper.vi is automatically created in the block diagram when you drop any of the 3D graph. **Plot Helper.vi** is a polymorphic VI and thus it can accept Matrix or

In the following example we created a cylinder combining 5 circles whose z axis points are different from each other. Note that **i** (iteration number) generates z

The following VI generates a sphere and visualizes it in **3D Parametric Graph** (**Figure 19**). Here radius of sphere is 5 and sphere is generated by 20 circles. A sphere is a collection of circles. You can see from XY Graph that each circles are

LabVIEW can publish any application to the Web with Remote Panels. Therefore, you can easily make your VI reachable as a Web page. Thus, clients can control

example we plot multiple circles in a XY Graph (**Figure 14**).

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

Vector inputs according to your selection (**Figure 17**). You can find the two examples of 3D graphs, below.

**3.2 Publishing information to the web**

vector and matrix.

**Figure 10.**

*2D and 3D visualization palettes.*

matrix (**Figure 18**).

individual size.

**12**

**Figure 12.** *Visualization of data acquired from 2 channels of a daqcard.*

#### **Figure 13.**

*Overlay plots (left) and stack plots (right) modes.*

**Figure 14.** *Multiple plots in a XY graph.*

the VI or view generated data by using their web browsers. Clients must use a version of the LabVIEW Run-Time Engine compatible with the version of LabVIEW. NI recommends that customers use the supported browser (Internet Explorer). Google Chrome version 42 and later, Mozilla Firefox 52 and later, Safari 12.1 in macOS Mojave 10.14, and Microsoft Edge are **not** supported browsers. Before view and control a front panel remotely, the Web Server must be enabled on the server computer where the VI or application wanted to view and control is

2.Open block diagram and click to **Tools»Options»Web Server**

1.Create a VI. We created a VI named Remote Panel Example.vi (**Figure 20**).

3.Under the Remote Panel Server section, check **Enable Remote Panel Server**

located. Follow the steps below to learn how you can do it.

(**Figure 21**).

*Mixed signal graph with three plots.*

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

**Figure 15.**

**15**

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

**Figure 15.** *Mixed signal graph with three plots.*

the server computer where the VI or application wanted to view and control is located. Follow the steps below to learn how you can do it.


the VI or view generated data by using their web browsers. Clients must use a version of the LabVIEW Run-Time Engine compatible with the version of LabVIEW. NI recommends that customers use the supported browser (Internet Explorer). Google Chrome version 42 and later, Mozilla Firefox 52 and later, Safari 12.1 in macOS Mojave 10.14, and Microsoft Edge are **not** supported browsers. Before view and control a front panel remotely, the Web Server must be enabled on

**Figure 13.**

**Figure 14.**

**14**

*Multiple plots in a XY graph.*

*Overlay plots (left) and stack plots (right) modes.*

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

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

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**). 11.Click **Connect** button in **Document URL** window (**Figure 26**). Ensure that default browser is Internet Explorer. If not, copy URL address and paste it to

You will see the following Internet Explorer page (**Figure 27**). In this page,

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

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

clients must click Run button to control the VI from their computer.

**Functions> > Report Generation** palette (**Figure 28**).

*3.3.1 Microsoft office word and excel reports*

Internet Explorer.

*Creating a cylinder in 3D counter.*

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

**3.3 Report generation**

**Figure 18.**

**17**


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

**Figure 18.** *Creating a cylinder in 3D counter.*

11.Click **Connect** button in **Document URL** window (**Figure 26**). Ensure that default browser is Internet Explorer. If not, copy URL address and paste it to Internet Explorer.

You will see the following Internet Explorer page (**Figure 27**). In this page, clients must click Run button to control the VI from their computer.
