Graphing Digital Data
Complete the following steps to display a digital signal in a digital waveform graph.
- Acquire a digital signal. Refer to Chapter 8, Digital I/O, in the LabVIEW Measurements Manual for information about acquiring digital signals.
- Build a front panel with the following objects:
- Digital waveform graph located on the Controls»Graphs palette.
- Digital control, located on the Controls»Numeric palette, with representation of double-precision, floating-point and a label of X0.
- Digital control with representation of double-precision, floating-point and a label of dx. Enter a value of at least >0.
- Digital control with representation of I16 and a label of Ports. Enter a value of 1.
- Select the Bundle function located on the Functions»Cluster palette, and place it on the block diagram.
- Expand it to include four inputs and label the Bundle node Digital Graph Bundle.
- Wire the front panel objects to the Bundle inputs in the following order:
- Wire X0 to the first (top) input.
- Wire dx to the second input.
- Wire the digital signal to the third input.
- Wire Ports to the fourth (bottom) input.
- Wire the resulting output cluster of the Bundle function to the digital waveform graph. You also can mask the digital data.
- Run the VI.
Refer to the Simple Digital Waveform Graph VI in the examples\general\graphs\DigitalWaveformGraph.llb for an example of graphing digital data.