LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

add constant neumber to an array and form array output

Solved!
Go to solution

Say i have two user input constants , say 0.25 and 0.5

i want to

add 0.25 (which shall also be the first element of my array) to 0.5  =0.75

 

then,

 

i want to add 0.5 to the second element of my array ie, 0.75 and write it as my third element = 1.25

then add 0.5 to my third element ie,1.25 and write it as my fourth element and so on

 

thus generating an array of a fixed number of elements say 720 elements which looks like this

0.25

0.75

1.25

1.75

 2.25

 .

 .

.

.

.

 upto the 720th element ..

 

Please Help

Thanks ..

Avinash

0 Kudos
Message 1 of 4
(5,103 Views)
Solution
Accepted by topic author avinash123

You could do something like this:

increment.png

Message 2 of 4
(5,093 Views)

Thanks a lot Dan_u ...

How silly of me not to think of a logic so simple .. I was doing trying some thing by initializing and indexing arrays ... Any way .. Thanks again ...

 

Avinash

0 Kudos
Message 3 of 4
(5,088 Views)

Here is what I usually use (no coercions or multiplications):

 

 

 

Also don't forget Ramp pattern.

Message 4 of 4
(5,085 Views)