LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

repeat array several times

hi all,

how to repeat array several times like [ 1 2 3 4 ] to [ 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 ......]

i know it's so simple because i'm new on labview

0 Kudos
Message 1 of 3
(4,989 Views)

Several options here.

1) Build Array - It is expandable.  Just extend it to the number of times you want to repeat your array.  Right-click on the Build Array to make sure it is set to Cancatinate.

2) Use a FOR loop with a Cancatinating output tunnel.  Make sure the input tunnel is not set to autoindexing.  You then just set N to be the number of times you want your array repeated.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(4,984 Views)

Here is how it can be done.  Using 2012 and newer there is new for loop terminal functions that make it easier.

 

Repeat Array.png

 

If you want more free training on LabVIEW check out some of these links.

 

NI Learning Center

NI Getting Started

-Hardware Basics

-LabVEW Basics

-DAQ Application Tutorials

 

3 Hour LabVIEW Introduction

6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training

 

EDIT:  This is what Crossrulz described

Message 3 of 3
(4,980 Views)