LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create 1D array of cluster

Hi all,
How is it possible to create a control that is 1D array of the same cluster?
 
There is a cluster control, but it is impossible to add 1D dimention.
 
I am using LabView 7.1.1
 
With best regards,
 
Mikhail Kozlov
0 Kudos
Message 1 of 8
(4,502 Views)

You should be able to drag and array into a cluster or place a cluster inside of an array.  The only restrictions are that arrays are built from all the same type.  What are you trying to do?

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 8
(4,500 Views)

If I place 1D array first and than drag a cluster than I get 1D array control (not 1D array of cluster). If I at first step put cluster and than drag 1D array I receive a cluster with 1D array inside.

My task to design a cluster for oscilloscope channel data (sensitivity, coupling, etc). This means I need a 1D array of  clusters.

It is possible to build such a array of cluster by "build cluster array" object + create indicator and than execute "change to control"

I am looking for a simple way.

With best regards,

Mikhail Kozlov

 

Message Edited by kozlov on 08-19-2005 07:31 AM

0 Kudos
Message 3 of 8
(4,493 Views)

Actually you are getting a 1D array of cluster when you do this.  In order to better understand this, put cluster control on the front panel with all of the compentents inside first.  Next, insert a 1D array on the front panel "outside" of your cluster.  Finally, drag the cluster into the 1D array.  You have a 1D array of cluster.  When you place the 1D array on the front panel and then place a cluster inside that 1D array it is ready for you to put the cluster components in that array.  In order to create an array control you always have to place the array and then place the desired data type inside the array.

0 Kudos
Message 4 of 8
(4,485 Views)
Perhaps, it would be easy if you would see my example.
 
If I design an array of cluster by putting cluster inside 1D array I get another data type than data type of array of clusters.
0 Kudos
Message 5 of 8
(4,479 Views)
Hello kozlov,

you have been using a "build cluster array". Thats completely different! See the help for this (Ctrl-H)!
Thats the reason for getting a different wire...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(4,468 Views)
You have a mixture of data types in your vi.  When you use the "Build cluster array" function you are making an array of cluster of cluster.  In order to make an array of cluster you should just use the "Build array" function.  If you do this the wires will look the same.  See the attached example.
 
In order to see the datatype of a wire turn on the context help and move the wiring tool over the wire.  This will give you a complete description of the datatype of the wire. 
0 Kudos
Message 7 of 8
(4,465 Views)

Thanks a lot for assistance. I realize my fault.

With best regards,

Mikhail

0 Kudos
Message 8 of 8
(4,454 Views)