annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

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

Risolto!
Vai alla soluzione

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

 

thanks,

WT

0 Kudos
Messaggio 1 di 5
4.616Visualizzazioni
Soluzione
Accettato da 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

Messaggio 2 di 5
4.614Visualizzazioni

You can use the Build Waveform function.

It is located in the Programming >> Waveform palette

 

Build Waveform.PNG

Cory K
0 Kudos
Messaggio 3 di 5
4.613Visualizzazioni

Ramp pattern function works.

 

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

 

Thanks.

0 Kudos
Messaggio 4 di 5
4.576Visualizzazioni

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
Messaggio 5 di 5
4.543Visualizzazioni