ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(4,677 Views)
Solution
Accepted by topic author 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
(4,675 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
(4,674 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
(4,637 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
(4,604 Views)