LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically Selecting a ring

Solved!
Go to solution

Hello,

 

  I have a ring that I programatically load the the string array that defines the items in the ring for the next selections that I want the user to pick from. How do I programmatically have the new items in the list show up as if the user clicked on the down arrow on the right side of the ring?

 

 

Regards,


Kaspar
0 Kudos
Message 1 of 18
(6,734 Views)

Probably I am thinking that you may want to use dynamic events. Value Signaling can be used to invoke a event and then in that event check the value of the ring for the next selection and use Strings And Values[] property to update the text in the ring to reflect the next selection.

Hope this makes sense.

*************************************************
CLD
*************************************************
0 Kudos
Message 2 of 18
(6,720 Views)

Just wire the item number of the list that you want to show into the terminal (or a local variable).

Each item in the ring has an associated number - if you wire in that number, the item is displayed.

 

Ian

0 Kudos
Message 3 of 18
(6,696 Views)

Hello,

  You are correct about wiring a value to the value property, however this only shows a single items. How do I see all of the items in the rings?

Regards,


Kaspar
0 Kudos
Message 4 of 18
(6,683 Views)

The property node 'Strings[]' will output an array of strings with all of the items shown.

Is that what you are trying to get?

 

Ian

0 Kudos
Message 5 of 18
(6,680 Views)

Hello,

 

  The property node strings[] is what is used to define the items in the ring. What I want to do is to see all of the items in the ring. Just as if someone used the mouse to click on the down arrow on the right side of a menu ring.

 

Regards,


Kaspar
0 Kudos
Message 6 of 18
(6,671 Views)
Solution
Accepted by topic author Kaspar
Message 7 of 18
(6,663 Views)

Hello,

 

  Thanks for the answer, Have a nice day!

Regards,


Kaspar
0 Kudos
Message 8 of 18
(6,653 Views)

Now that I understand what you want to do, I can offer a solution/work around. Pictures would have helped a lot here!

 

 

See the attached vi (in V8.5) which uses the info from here and here to move the mouse onto the control and click the arrow. Excercise caution if using this!

Use will require better control over the origin (i.e. 0,0 coordinates) of the front panel and perhaps the ability to return the mouse to the original position after the ring has been clicked.

(Edit: This will only work on Windows)

 

Is that what you wanted?

 

Ian

0 Kudos
Message 9 of 18
(6,633 Views)

Sorry - duff example. This version runs a bit better.

0 Kudos
Message 10 of 18
(6,622 Views)