LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

function: create an array through initial/step/number of elements

Solved!
Go to solution

Does LabVIEW have the function which directly creates an array by giving intial value, step and number of elements?

 

thanks,

WT

0 Kudos
Message 1 of 5
(3,564 Views)
Solution
Accepted by weitong

Look at the Ramp Pattern.vi in the Signal Processing palette.  Also, check the Ideas board.  I think someone has posted an idea there about adding a step option to the standard For loop.

 

Lynn

Message 2 of 5
(3,562 Views)

You can use the Build Waveform function.

It is located in the Programming >> Waveform palette

 

Build Waveform.PNG

Cory K
0 Kudos
Message 3 of 5
(3,561 Views)

Ramp pattern function works.

 

the waveform function works for graph function. But I need an array data for numerical operation.

 

Thanks.

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

Hi weitong,

 

You can unbundle the waveform cluster and just extract the dbl array of data.

 

Paul M

National Instruments | Applications Engineer | www.ni.com/support
Message 5 of 5
(3,491 Views)