LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of numeric sequences

Hi,

I have a problem creating an array of numeric sequences.

I would obtain an array containing a sequence of numbers repeated n times.

I managed a simple for loop to generate one time the sequence and store it into an array (attached). But I am a newby with labview and I can't understand how to generate the final array of sequences. Ideally, I would also convert the final array into a string (I think I could use something like number-string conversion at the end).

Many thanks for any tips

Download All
0 Kudos
Message 1 of 3
(844 Views)

Hi Principles,

 


@Abstract_Principles wrote:

I have a problem creating an array of numeric sequences.

I would obtain an array containing a sequence of numbers repeated n times.


So you want something like 123412341234 (each digit is an element of an array) by first generating 1234 and then repeating this step 3 times?

What about using two FOR loops, one inside the other?

 

This sounds like a very simple example to have you learn LabVIEW concepts!

 

I made this using LV2011, with recent LabVIEW versions you should use their improved output tunnel options!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(818 Views)

I would use a concatenating tunnel (look it up!). 😄

 

 

altenbach_0-1619627300130.png

 

 

0 Kudos
Message 3 of 3
(779 Views)