Professional Documents
Culture Documents
=
2
1
0
a
a
a
a and
( )
( )
( )(
(
(
=
2
1
0
b
b
b
b then the dot product is ( ) ( ) ( ) ( ) ( ) ( ) 2 2 1 1 0 0 . b a b a b a b a + + =
59. Create a VI that calculates the cross product of two 3-dimensional vectors.
Hint: If the two vectors are denoted by a and b where
( )
( )
( )(
(
(
=
2
1
0
a
a
a
a and
( )
( )
( )(
(
(
=
2
1
0
b
b
b
b then the cross product is given by
( ) ( ) ( ) ( )
( ) ( ) ( ) ( )
( ) ( ) ( ) ( ) (
(
(
=
0 1 1 0
2 0 0 2
1 2 2 1
b a b a
b a b a
b a b a
axb
60. Create a VI that performs matrix multiplication for two input matrices A and B. Let matrix A be
a 4x2 matrix and matrix B be a 2x3 matrix.
61. Build a cluster containing two numeric controls and an array. Build a VI to multiply all the
numeric values in the cluster by a given number.
62. Build a VI to create a new cluster using bundle function, from three inputs: a floating point real
number, an integer and an array of numbers generated by a For Loop.
63. Build a VI to change the already existing cluster of three controls: a floating point, a numeric
and an array with different numbers and random numbers generated by a For Loop.
64. Build a VI to unbundle the elements of a cluster. The cluster has four elements: a numeric
control, toggle switch, a string indicator and a knob control. Each element should indicate the
values in its own individual indicator outside the cluster.
65. The logistic difference equation x
k+1
= r x
k
(1 x
k
) where k = 0,1,2,, r is the rate of
population growth and x
o
is the given initial value, has been used as a model to study population
growth patterns. The model has been scaled so that the values of the population vary between 0
and 1, where 0 represents extinction and 1 represents the maximum conceivable population.
Build a VI using a formula node containing the logistic difference equation as y = r x(1 x) and
calculate 30 values and plot on a waveform graph. Let x
o
be 0.02. If the population falls below
zero, set it to exactly zero ie. population is extinct. Write your conclusion by changing the
values of r (rate of growth), (i) for value of 1< r < 3 (ii) for 3 < r < 4 (iii) for r > 4
66. Build a VI to plot a unit circle by using a sine and cosine function. Use Express XY graph
67. Build a VI to plot the following on a single plot (i) a sine curve (ii) a cosine curve (iii) e
-0.1x
for
0 x 41.
68. Create a VI that graphs the function sin x where x = 0nt, and the integral
}
=
t n
xdx y
0
sin
.
The value of n should be an input on the front panel.
Strings
69. Create a VI to find the length of a string
70. Create a VI to concatenate three strings and make a single string
71. Create a VI to cut apart a part of a string, by specifying the point at which it is to be cut and the
length to be cut
72. Create a VI for the following string operations (i) to convert a string to uppercase characters (ii)
to convert a string to lowercase characters (iii) to rotate a string (iv) to reverse a string
73. Create a VI that concatenates a message string, a numeric and a unit string, eg., Set to 10.24
volts by specifying formats
74. Using Build Text Express VI, create a VI to build a text by getting inputs from numeric
controls. Eg. Speed is 1500 rpm and voltage is 230 volts.
75. Create a VI which prompts for user inputs to get two input strings. Compare each character of
string1 with each character of string2. Display the number of mismatches