Labview Programming
Labview Programming
ASSIGNMENT – 01
Question 01. The length and breadth of a rectangle and the radius of a circle are inputs. Build
a VI to calculate the area and perimeter of the rectangle, and the area and circumference of
the circle.
(ii) Multiply Function: Returns the product of the inputs. If you wire two
waveform values or two dynamic data type values to this function, error
in and error out terminals appear on the function.
(ii) AND Function: Computes the logical AND of the inputs. Both inputs must be
Boolean values, numeric values, or error clusters. If both inputs are TRUE,
the function returns TRUE. Otherwise, it returns FALSE.
(iii) Merge Signal Function: Merges two or more supported signals, such as scalar
numerics, 1D or 2D arrays of numerics, scalar Booleans, 1D or 2D arrays of
Booleans, waveforms, or 1D arrays of waveforms, into a single
output. Resize the function to add inputs. This function automatically appears
on the block diagram when you wire a signal output to the wire branch of
another signal.
(ii) AND Function: Computes the logical AND of the inputs. Both inputs must be
Boolean values, numeric values, or error clusters. If both inputs are TRUE,
the function returns TRUE. Otherwise, it returns FALSE.
(ii) White Space? Function: Returns TRUE if char represents a white space
character, such as Space, Tab, Newline, Carriage Return, Form Feed, or
Vertical Tab. If char is a string, this function uses the first character in the
string. If char is a number, this function interprets it as the ASCII value of a
character. If char is a floating-point number, this function rounds to the
nearest integer. Otherwise, the function returns FALSE.
(iv) Hex Digit? Function: Returns TRUE if char represents a hex digit ranging
from 0 through 9, A through F, or a through f. If char is a string, this function
uses the first character in the string. If char is a number, this function
interprets it as the ASCII value of a character. If char is a floating-point
number, this function rounds to the nearest integer. Otherwise, this function
returns FALSE.
(v) Decimal Digit? Function: Returns TRUE if char represents a decimal digit
ranging from 0 through 9. If char is a string, this function uses the first
character in the string. If char is a number, this function interprets it as the
ASCII value of a character. If char is a floating-point number, this function
rounds to the nearest integer. Otherwise, this function returns FALSE.
(vi) Octal Digit? Function: Returns TRUE if char represents an octal digit ranging
from 0 through 7. If char is a string, this function uses the first character in the
string. If char is a number, this function interprets it as the ASCII value of a
character. If char is a floating-point number, this function rounds to the
nearest integer. Otherwise, this function returns FALSE.
Question 08. Form a complex number using two inputs x and y. For that complex number,
find the complex conjugate and polar components.
(iii) Complex To Polar Function: Breaks a complex number into its polar
components.
Question 09. Check whether the given number is in limit (specify upper and lower limits).
(iii) Select Function: Returns the value wired to the t input or f input, depending on
the value of s. If s is TRUE, this function returns the value wired to t. If s is
FALSE, this function returns the value wired to f.
(iv) Display Message to User Express VI: Displays a standard dialog box that
contains an alert or a message for users.
Question 10. The population of a town is 80,000 and the percentage of men is 52. The
percentage of total literacy is 48. If the total percentage of literate men is 35 of the total
population, build a VI to find the total number of illiterate men and women.
(ii) OR Function: Computes the logical OR of the inputs. Both inputs must be
Boolean values, numeric values, or error clusters. If both inputs are FALSE,
the function returns FALSE. Otherwise, it returns TRUE.
(iii) AND Function: Computes the logical AND of the inputs. Both inputs must be
Boolean values, numeric values, or error clusters. If both inputs are TRUE, the
function returns TRUE. Otherwise, it returns FALSE.
Question 14. Design a decoder for two binary inputs.
(ii) AND Function: Computes the logical AND of the inputs. Both inputs must be
Boolean values, numeric values, or error clusters. If both inputs are TRUE, the
function returns TRUE. Otherwise, it returns FALSE.
Question 15. Find logarithmic values for inputs x and y(log(x)and log(y)). Add the log
Values and find 10^(log(x)+log(y)).Verify that the result is equal to the product of x and y.
(iii) Multiply Function: Returns the product of the inputs. If you wire two waveform
values or two dynamic data type values to this function, error in and error
out terminals appear on the function.
(i) Property Node Function: Gets (reads) and/or sets (writes) properties of
a reference. Use the property node to get or set properties and methods on local or
remote application instances, VIs, and objects. You also can use the Property
Node to access the private data of a LabVIEW class. The Property Node
automatically adapts to the class of the object that you reference. LabVIEW
includes Property Nodes preconfigured to access XML Properties, VISA
properties, .NET properties, and ActiveX properties.