キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Programatically Selecting a ring

解決済み
解決策を見る

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 件の賞賛
メッセージ1/18
7,565件の閲覧回数

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 件の賞賛
メッセージ2/18
7,551件の閲覧回数

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 件の賞賛
メッセージ3/18
7,527件の閲覧回数

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 件の賞賛
メッセージ4/18
7,514件の閲覧回数

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 件の賞賛
メッセージ5/18
7,511件の閲覧回数

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 件の賞賛
メッセージ6/18
7,502件の閲覧回数
解決策
トピック作成者Kasparが受理
メッセージ7/18
7,494件の閲覧回数

Hello,

 

  Thanks for the answer, Have a nice day!

Regards,


Kaspar
0 件の賞賛
メッセージ8/18
7,484件の閲覧回数

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 件の賞賛
メッセージ9/18
7,464件の閲覧回数

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

0 件の賞賛
メッセージ10/18
7,453件の閲覧回数