LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

split 1D array

Hi,

I would like to programmatically split a one dimensional array such that each element of the array is displayed on a separate indicator. For instance, if i have a 1-D array: 10 25 35 42 56 61, then i would like to display 10 on indicator # 1, 25 on indicator # 2 and so on. I would like to this operation programmatically. By this, I mean that if the array has 20 elements,I would like to display 20 indicators with each element per indicator.

Thanks in advance.
0 Kudos
Message 1 of 8
(4,442 Views)
It looks that you are thinking of Programmatically Creating Controls.

Hope this helps
0 Kudos
Message 2 of 8
(4,442 Views)
Not really. That's not what I want to do. I want to just split the one dimensional array so that each element in the array appears in their respective indicators.
0 Kudos
Message 3 of 8
(4,442 Views)
If you don't know the maximum number of indicators and since you can't create indicators programaticaly, you'll have to do what Lab Viewer suggested. If you know the maximum number, you can simply use the index array function or array to cluster and make unused indicators invisible.
0 Kudos
Message 5 of 8
(4,442 Views)
Well Lab Viewer, my LabVIEW skills had evolded since that post of mine... Take a look at the more recent :Dynamic Controls


LabVIEW, C'est LabVIEW

0 Kudos
Message 6 of 8
(4,442 Views)
You can set the number of elements displayed in an array. You do this manually, enlarging the array control when the cursor on the array looks like the corner of a matrix. You can also do this programmatically using the array property nodes "NumCols" and "NumRows".


LabVIEW, C'est LabVIEW

0 Kudos
Message 4 of 8
(4,442 Views)
I have already done that part. I am able to programmatically control the size of my arrays. But what I am not able to do is to match the size of the array with the indicators. That is, if i have a one dimensional array with 10 elements, then i would like to have 10 different indicators with 1 element of the array in each indicator.Thus, I would finally have 10 indicators and each indicator will hold 1 element of the array upto 10 elements. Note that I would like to perform this operation programmatically. That is, I would like to do this operation assuming that I do not know the size of the array.

Thanks
0 Kudos
Message 7 of 8
(4,442 Views)

Could anybody please link the present link for the links in the previous posts since they are very old links and not present now.

 

Thanks,

Mathan

 

[Edit: Also any short and sweet solution Smiley Surprised for that problem?] Smiley Wink

Message Edited by mathan on 11-26-2008 02:39 AM
0 Kudos
Message 8 of 8
(3,893 Views)