Use NI LabVIEW as a program, please.
Construct a VI with one numeric input n that builds an array containing n Fibonacci numbers, beginning with Fi. Fibonacci numbers are the sequence of numbers, denoted by F, defined by the relation: Fn = Fn-2 + Fn-1, with F1 = 1 and F2 = 1. The Table 2 shows the values of Fn you should obtain for the first 10 values of n (all inputs are positive integers).
Before deciding what type of loop to use in your VI, you may want to consider an important difference between the For Loops and While Loops: A While Loop always executes at least once because the VI checks the conditional terminal at the end of each iteration. However, a For Loop does not possess this attribute; if a value less than one is wired to the count terminal, the For Loop will not execute. Keep this in mind when initializing the output array.
Consider carefully how to connect your VI so that the output array is accurate for n=1 and n=2, as well as the values computed using the formula.
06_3 Fibonacci Numbers VI Front Panel Edit Project Operate Tools Window Help
ISpt Application Font
Table: First Ten Fibonacci Numbers
Fibonacci Numbers
1: 1
2: 1
3: 2
4: 3
5: 5
6: 8
7: 13
8: 21
9: 34
10: 55