LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need your idea to make the routine simply

Dear all
 
I am trying to make a sub VI of a complicated main VI.
 
Please see my attachment, a data array is extracted in the "4>C.vi".
Here, 2/6/10/14(with constant width, 4i+2) are the index of the data array.
 
I used a "For" routine but the array is converted to a scalar inside "For" routine automatically.
(I want to control only the index number binding to iteration number.)
 
Please give your idea to make this example to a single sub VI.
 
Thank you in advance.   
 
0 Kudos
Message 1 of 4
(2,663 Views)

Hi Master,

      If I understand correctly, you probably want to "Disable Indexing".  The place where the Array enters the For Loop is called a "tunnel".  Right-Click on the tunnel and choose "Disable Indexing".  Bmp shows both kinds of tunnel.

Is it morning where you are?

Cheers.

 

     

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 2 of 4
(2,655 Views)
... the .bmp shows both kinds of tunnel...
When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 3 of 4
(2,654 Views)


@labmaster wrote:
Dear all
 
I am trying to make a sub VI of a complicated main VI.
 
Please see my attachment, a data array is extracted in the "4>C.vi".
Here, 2/6/10/14(with constant width, 4i+2) are the index of the data array.
 
I used a "For" routine but the array is converted to a scalar inside "For" routine automatically.
(I want to control only the index number binding to iteration number.)
 
Please give your idea to make this example to a single sub VI.
 
Thank you in advance.   
 


I am also not sure if I correctly understood what your goal is, but as 'Dynamik' answered already, you can disable autoindexing.
F
or the constants 2, 6, 10, 14 in your code, however, autoindexing is exactly what you need, as shown in the example attached.
For the display I used a chart with 4 stacked curves, and I made the index displays of the charts visible. (Both these properties  are activated by right clicking on the chart and select the appropriate. Also be sure to right click in the BD on the 'Array to Cluster' Function and select 4 for the array size)



-Franz
0 Kudos
Message 4 of 4
(2,636 Views)