キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/7
3,757件の閲覧回数

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

0 件の賞賛
メッセージ2/7
3,755件の閲覧回数

@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 件の賞賛
メッセージ3/7
3,726件の閲覧回数

Here's one of millions of possibilities.

 

altenbach_0-1706204469003.pngaltenbach_0-1706204469003.png

 

 

0 件の賞賛
メッセージ4/7
3,716件の閲覧回数

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

0 件の賞賛
メッセージ5/7
3,632件の閲覧回数

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 件の賞賛
メッセージ6/7
3,623件の閲覧回数

@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 件の賞賛
メッセージ7/7
3,576件の閲覧回数