Jump to content

ichsw

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by ichsw

  1. Thank you everybody for your help...

    ...but I don't have time to experiment any further because of that "little" feature.

    I would have tried the xControl approach to implement my own control behavior, but I don't use the professional version of labview.

    In general I would prefer a seperation of data and view, but it's too much work to change the main concept of the program I was ordered to adapt.

    That's my solution:

    I used the "Strings and Values[]"-property with every ring that doesn't have too much elements.

    For the critical rings I build my own "Values[]"-array once at the beginning of the program. With the help of the "Strings[]"-property I can search the index and with the generated "Value[]"-array I can get the corresponding value.

    Not nice, but it works.

    Thank you for your time, again.

    Best,

    ichsw

  2. Got you...I know about the seperation of data and view (mvc) in object oriented programming. But I thought labview does this itself with the controls and indicators. When I use the LV2 solution, I have to synchronize the gui and the data elements all the time, right?

    I think, it's a good idea to describe why I need the index handling. Maybe you can suggest an approach that doesn't use the ring arrays.

    I want to change the standard behavior of a ring, so it can be incremented/decremented with the up/down-keys and does not overflow and underflow. Therefor I have to filter the key event and check if the increment/decrement is allowed.

    Remeber that the values are non-sequential.

    I figure it's not a good idea to change the behavior of a standard labview element, but I really need to implement this function.

    What about creating a whole new control? Does anyone has experience with that?

    Any ideas welcome.

    Best,

    ichsw

  3. Hi everybody,

    I have a problem with a ring-control in my labview program.

    The ring has many items (65536) and non-sequential values.

    I need to find the actual index of the ring array and set a new calculated index afterwards.

    As I couldn't find a way to get the actual index directly, I started a for loop and compared every "Strings[]"-array element with the "Ringtext.Text"-property. So far, so good.

    But when I want to set a new index to the ring, I need to use the "Set Value"-property.

    Here comes the problem: Every time I use the "String and Value[]"-property to get the index corresponding value, labview needs about 10 seconds to build it. Why is that? Labview doesn't have problems building the "Strings[]"-Array.

    Is there a way to handle the ring index seperatly I couldn't find?

    Can the "Strings and Values[]" operation be accelerated?

    Thank you for your time and your ideas.

    Best,

    ichsw

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.