Title Virtual Instrumentation Using Labview Array Data Structure Data Acquisition String (Computer Science) Electrical Engineering Digital & Social Media 13.3 MB 414
```                            Page 1
Page 1
```
##### Document Text Contents
Page 2

VIRTUAL INSTRUMENTATION
USING LabVIEW

New Delhi-110001
2010

Jovitha Jerome

Department of Instrumentation and Control Systems Engineering
PSG College of Technology

Page 207

Structures 185

Figure P8.4

Problem 8.5 Build a VI to find the roots of a quadratic equation. Input the coefficients of x2, x and
constant as a, b and c respectively. Display the roots and the message if the roots are real or imaginary.

Solution The front panel and the block diagram to solve the problem are shown in Figures P8.5(a)
and P8.5(b).

Figure P8.5 (Contd.)

Page 208

186 Virtual Instrumentation Using LabVIEW

Figure P8.5

Problem 8.6 Build a VI to find the roots of a quadratic equation with complex roots. Input the
coefficients of x2, x and constant as A, B and C respectively. The LED should glow when roots are
real and different or roots are real and equal or when the roots are complex. Display the message
‘A’ should not be zero for quadratic expression” is the coefficient of x2 is zero.

Solution The front panel and the block diagram to solve the problem are shown in Figures P8.6(a)
and P8.6(b).

Figure P8.6 (Contd.)

Page 413

392 Index

VISA, 223, 230
Vision, 293, 313
Vision assistant, 313

Wait function, 55
Wait until next ms multiple function, 77
Waveform chart, 133
Waveform graph, 131, 132
While loop, 65, 67, 160
Wires, 35

Write LabVIEW measurement file, 208
Write to spread sheet file, 207
Write to/read from measurement file, 207

Xmath script, 179
XY graph, 131, 135

Z plane, 149