Jump to content

Wouter

Members
  • Posts

    129
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Wouter

  1. VI Name:

    String equal length

    Total VIs:

    2

    Description:

    There are 2 VIs for checking the length of 2 or more strings, after fetching the length it compares the length and returns true if the length of the strings are equal.

    Note:

    Maybe there is need to trim whitespaces before fetching the length but this should be a optional feature in my opinion.

    Blockdiagram:

    2 string inputs:

    gallery_17774_56_4060.png

    Array string input:

    gallery_17774_56_12230.png

    Code:

    String Equal Length.zip

    What are you thoughts on this VI?

    • Would you like to see such a function in OpenG?
    • Can you optimize the code?
    • In which package should it be included?
    • Should it be rejected?

  2. Hmmm I just checked it out. It looks good but I don't really like the codes... such as **bold** etc... rather would have

    [b]bold[/b]

    , with a clear opening and closing bracket but that can proberbly be changed easily. Also I would have implemented differently because now you loop threw the whole text each time for every style element and afterwards applying the style, you can do all of this in just 1 loop.

  3. This is a crosspost from the forums @ ni; http://forums.ni.com...ry/td-p/1542096

    Hey everyone.

    I can remember a GOOP example which illustrated GOOP with the use of set theory. It had VI's for subset, complement, union, intersection etc...

    Unfortunately I can not find it anymore. I was wondering if anyone knows where I can.

    Regards,

    Wouter

    Hopefully anyone here knows which example it was or where I can get it.

  4. You can use "Owner Refum" input on create object vi, or move method of invoke node.

    post-17903-0-34259200-1290924795_thumb.p

    Yes but I would like to switch the two blocks in your diagram... So what I want to do:

    - Select the constant/indicator/controller from the diagram

    - Create the array and put that existing constant/indicator/controller in the array (without losing wire connections).

    So basically wrapping the existing controller with a array.

  5. Does anyone know if it is possible to change the "owner" of a control? For example...

    I have a numeric control. Now I want to change that to a array of numeric controls. Now what I want to do is kind of "encapsulate" the numeric control by a array so that I don't have to replace/delete control for the array and then insert the numeric control.

  6. Ah a shame the replace thing doesn't work on all cases. If you want to replace a control, for example, you can only replace it by a other control but not by a constant or indicator. There are some few exceptions however... for example you can replace a constant by a control... this is the result:

    1290859377-660.png

    xD

  7. Hello,

    I have a "numeric control" wired to a "build array function". Now what I want to achieve is to get the reference of the wire which is connecting the "numeric control" with the "build array function". When I have this reference I delete the "numeric control" and re-route the now broken wire to a new control.

    My question... How do I do this? I tried all sort of combinations with the available reference that were provided to me by the property node.

    vi_script.vi

    1290793911-10.png

    test.vi

    1290793941-240.png

    -edit- the vi snippets don't seem to work...

    test.vi

    vi_script.vi

    vi_script_control_get_position.vi

    vi_script_delete.vi

  8. I think that is a great idea, hopefully it will get more active then, I have a bunch of VI's which I think are handy and would like to share with everyone threw OpenG. I think the project must come from it's feet again... but there seems no one to really pick it up.

×
×
  • Create New...

Important Information

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