LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array Labview

Hello. I have a question how i can build dynamically array of specific size and specific numbers? For example, array with numbers from 70 to 40. SO it will be decremented by 1. Thank you 

0 Kudos
Message 1 of 7
(1,807 Views)

"Ramp Pattern" is a handy function for equally spaced values.

0 Kudos
Message 2 of 7
(1,805 Views)

@Lily3000 wrote:

Hello. I have a question how i can build dynamically array of specific size and specific numbers? For example, array with numbers from 70 to 40. SO it will be decremented by 1. Thank you 


First you need to define what "dynamically" means.

 

Since you only mention integers, I assume you are talking about "blue values", so a simple FOR loop is sufficient and you can calculate your desired ramp based on your range boundaries with simple math. Often you don't even need to build an array, but simply calculate the derived value inside the loop based on [i] for immediate consumption. :D.

 

(The mentioned "ramp patters" will give you DBL that could be useful in different scenarios, but not here)

0 Kudos
Message 3 of 7
(1,776 Views)

Here's one of millions of possibilities.

 

altenbach_0-1706204469003.png

 

 

0 Kudos
Message 4 of 7
(1,766 Views)

I want to create an array with specific values and then feed them 1 by 1 as a duty cycle of my motor.

0 Kudos
Message 5 of 7
(1,682 Views)

What are those specific values?

where you will get (Array Constants/From File)?

You use Loops and Start Indexing the elements from 0...N)

 

Mind to share the Code you have tried....

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 6 of 7
(1,673 Views)

@LilySamchuk wrote:

I want to create an array with specific values and then feed them 1 by 1 as a duty cycle of my motor.


Is this related to the earlier post above or a new question?

0 Kudos
Message 7 of 7
(1,626 Views)