LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

represent various typed elements in an array

Dear
 
In a dialog which has a limited space on monitor, I like to present many states of the measurement and data.
Therefore, I have to give an option to scroll the array by its property node.
The state, hopefully presented by boolean color indicatior, and data has a 1 to 1 corresponding relation; 1. on(blue), 1.0, 2 off(red), 1.2, ... etc.
 
I know the array has the same data type for every elements.
When I give a input to one of scrolls in each (ex. state) array, other (data) array should be scrolled.
This mean I want to use an array which has different type elements.
 
Is this possible by using 2 arrays or one other thing?
 
Thank you in advance.
 
Lee
0 Kudos
Message 1 of 8
(2,789 Views)
I'm not quite sure I understand what you mean, but it seems like you could use an array of clusters. A cluster can contain several different data types, it's like a struct in C. Make a cluster with a boolean for the state and a numeric value, then create an array of these. let me know if you need more info or an example if you haven't used them before.
0 Kudos
Message 2 of 8
(2,786 Views)

Thank you for your reply.

I will try the cluster of arrays in my office.

Would you please show your example??

0 Kudos
Message 3 of 8
(2,772 Views)
Dear Marc A,
Is there some property node to scroll down programetically in cluster like Index values property in array?
Or how to scroll down it? 

메시지가 04-11-2007 06:28 PM에 labmaster에 의해 편집되었음

0 Kudos
Message 4 of 8
(2,768 Views)

Well since you have an array of clusters, you can still use the index values property. It is an array after all, the only difference between this and an array of numbers is the datatype. Attached is an example in 8.2 of a simple array of clusters. I don't really know what you're doing with it, so the VI doesn't really do anything except show you what it looks like.

Message Edited by Marc A on 04-12-2007 08:52 AM

Download All
Message 5 of 8
(2,749 Views)
Thanks Marc A,
 
If you see this message, please convert LV8.0.
 
Very thanks again.
 
0 Kudos
Message 6 of 8
(2,735 Views)
I seeee...
 
I misunderstood your solution as a cluster of two arrays.
It is one array of two clusters. It's okay.
 
Thanks.

메시지가 04-12-2007 08:31 AM에 labmaster에 의해 편집되었음

0 Kudos
Message 7 of 8
(2,729 Views)
0 Kudos
Message 8 of 8
(2,725 Views)