LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an Array of Rings Programmatically

Solved!
Go to solution

What if all ring elements in the array has the same properties? I've been trying to put a ring data into my cluster; which failed me so far. 

 

ring data into cluster.png

 

asd.png

 

In this short demonstration, string input works quite well where ring doesn't... Any thoughts?

 

Palazzo

0 Kudos
Message 11 of 35
(3,167 Views)

Hi Palazzo,

 

do you just try to input a string to a ring indicator, which doesn't know of that string before? Did you enable "undefined" entries for your ring?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 35
(3,156 Views)

Hi GerdW,

 

I did it after your reply but couldn't get any progress still. I can set a ring without a problem but when I am trying to put it into a cluster, the problem happens.  After allowing undefined values:

 

asd.png

 

Kind of confused here actually Smiley Indifferent Do you need me to post the code? 

 

BR, Palazzo

 

 

0 Kudos
Message 13 of 35
(3,152 Views)

Palazzzo wrote:

I have my own version of this approach also; positioning the ring to active cell's position and writing the input to the cell afterwards. Works fine but I couldn't deal with the bothersome UI issues here, clicking the ring twice to open down, some blinking cursors while opening ring etc... I think you've had the same issues but it seems only way to do this now... Thanks for the reply...


I didn't have any issue with blinking cursors; in my version the interface experience was quite smooth. There is the issue of needing to click twice on the ring but the users never complained; in general I think they used the keyboard navigation (I implemented tabbing through fields, including in reverse with shift-tab).

 

Over the weekend, I started experimenting with some code to eliminate the "click twice" problem with rings, but didn't get a chance to finish it yet. If I do, I'll post it here, if you're interested. My plan is to create a large, transparent ring containing no items and place it on top of the correct column of the table. This makes it effectively invisible. Catch "Mouse Down?" filter events for that ring. When the event occurs, fill in the Strings[] property with the desired items (this much I implemented and it works), and resize the ring so it covers only the correct cell of the table. When a value change event occurs for the ring, grab the string, put it in the table, resize the ring back to the full column size, and clear the Strings[] property so the ring vanishes.

0 Kudos
Message 14 of 35
(3,131 Views)

Hello Nathand, 

 

Thanks for the reply. I would be really interested in your new study about this tables, so please post it here if this is also OK for you. 

 

Making it big seems a good idea to eliminate clicking the "right spot". 

 

Thanks,

 

Palazzo

0 Kudos
Message 15 of 35
(3,107 Views)

Hi Palazzo,

 

what kind of ring do you use in your "short demonstration"?

Rings have a numeric datatype, yet you store a string in your "ring"?! So I guess you use a combobox instead…

 

Comboboxes accept undefined values nicely:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 35
(3,110 Views)

Hello GerdW,

 

I was using numeric data while using ring. I've also tried combobox since it might be suitable for my work as well. Combobox seems OK while using a string constant as you suggested, but doesn't work out if I use a multi-item constant or control.

 

asd.png

 

Cheers,

 

Palazzo

0 Kudos
Message 17 of 35
(3,098 Views)

Hi Palazzo,

 

in your example VI the cluster shows whatever I choose (or input) in the combobox constant.

So what's your point with the VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 35
(3,093 Views)

Hello GerdW,

 

The purpose is to assign multi-items into a combobox, not a single value chosen from my constant or control. I need to see both "a" and "b" values in my combobox.

 

Is this somehow possible?

 

BR, Palazzo

0 Kudos
Message 19 of 35
(3,090 Views)

Hi Palazzo,

 

when you want to set properties of your combobox you need to use property nodes!

 

Using a constant and a wire (like in your image/VI) will only set the current value of the combobox - THINK DATAFLOW!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 20 of 35
(3,085 Views)