LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Identical Ring Enumerators to be pulled from array, matrix, or cluster

Hello,

I am hoping to be able to create multiple identical ring enumerators ( or text enumerators) which can be used as a control for a variable number of inputs.  In this example, I would like to produce four ring enumerators (ranging from 1 Mhz to 100 Hz and Auto) that can individually be pulled out of the array and then controlled.

 

It is apparent from my example, that creating the area and then pulling elements out of it loses the ring-enumerator data.

 

There is something obvious about the ring enumerator I am not understanding.

 

I us this same architecture for variables, visa addresses, etc., but I understand Ring enumerator is more complex.  Any advice of what type of architecture to use instead would be appreciated.

 

Thank you.

Download All
0 Kudos
Message 1 of 5
(2,470 Views)

I think the problem is that the data type of a ring control is numeric only, so it doesn't include information about the numeric values and strings within the control.  Hence the indexed tunnel on the for-loop in your example creates an array of U16 values.  The contents of the ring list can only be accessed through a property node (Strings [] or Strings and Values []).

 

If you can explain what you want to achieve in a bit more detail, there may be another way of getting there.

 

Andy

0 Kudos
Message 2 of 5
(2,434 Views)

You can use enum instead of ring


0 Kudos
Message 3 of 5
(2,427 Views)

Thank you for your response,

I am wanting to control a variable number of identical instruments.  So far, I have been able to make an array of Visa addresses, and various variables, and then a pass that into a for loop which pulls an indexed value out of the array and performs the operation (say, initialize instrument, or write to instrument).  It works for all of the single items.  In this case, I would like have the program create a variable number of drop down menu's (each identical), which contains a value associated with property they would like. The user would select the value for each instrument they've chosen, and that would pass in an array (or other container), which I could then pull out, and read the value.

 

0 Kudos
Message 4 of 5
(2,419 Views)

I'm afraid that I'm still not clear what you're trying to do (I've probably not had enough coffee today).  It sounds to me like you want to create controls when your VI is running to allow the user to select an operation for each individual instrument.  As far as I know, creating controls when running can't be done directly (see this thread for more information, but it may be out of date).

 

Could you present the instrument information as a list and have the user pick an item to operate?  You would then show a single common VI for entering information for each instrument.

 

Andy

0 Kudos
Message 5 of 5
(2,412 Views)