Jump to content

X___

Members
  • Posts

    415
  • Joined

  • Last visited

  • Days Won

    28

Posts posted by X___

  1. For the record, text wrapping in the context Help window has been confirmed by NI support to work as "expected" which means in the following way:

    1) if you have a single paragraph with NO carriage return, the text will wrap:

     

    Screen Shot 2018-05-09 at 11.43.01.png

    2) If you have a single (isolated) carriage return ANYWHERE in the text (as after the first sentence in the original post), wrapping is suppressed (that's the "expected" behavior according to NI R&D).

    For instance, if I press return after the first sentence in the Description above, wrapping is suppressed:

    Screen Shot 2018-05-09 at 11.47.45.png

    3) You have to introduce carriage returns IN PAIRS, in order to get a new line AND preserve wrapping:

    Screen Shot 2018-05-09 at 11.46.50.png

    Of course then you get an empty line that you may not necessarily wanted...

    • Like 2
  2. I need some help recovering the trick to use so that a long control description is wrapped properly when resizing the Context Help window (which is not the case in the attached example).

    I couldn't find anything about this in the Help or in the intertubes, although I can see that I have used some kind of trick in the past to get it to work in some controls.

    Thanks.

    non-wrapped description.png

  3. For those who have been playing with malleable VIs, the Type Specialization Structure has probably become a common sight and much abused tool.

    The basic use of it is that if the action it performs is meaningless given one of the inputs, the included code will break and the next case will be tried.

    This is great, but sometimes, it can be difficult to think of all possible variants of an action, and in particular, if the action needs to be different for two or more types, but two or more types are compatible with different codes, how to make sure which code will be executed with what type?

    Enters the Types Must Match function:

    Types Must Match.png

    I found this little gem in... Hidden Gems, within an odd-looking VI which I felt compelled to check out, Debug Write.vim

    Hidden Gems.png

    Open its diagram and light will shine, opening grandiose vistas and parallel universes remaining to be explored.

    Of course, as the comment on the diagram says:

    "This structure and the type-testing primitive functions it contains are not public LabVIEW features. They are experimental and should not be edited, copied, or used in other VIs without conducting extensive testing. See Context Help for details."

    Here is the context help for Types Must Match:

    Context Help.png

     

    My apologies if this all well-known among expert users, but I couldn't find it mentioned otherwise on the site...

    • Like 2
  4. Oh, no... You forced me to dig in old, rusty and not commented (!!!) code, which was made only for fun.

    My first shot is that I don't handle the case of an endpoint which is also a junction. Select wire segment which is selected on your first picture, tap right arrow once an it should work again.

    It does indeed work. Nice workaround.

    Feel free to correct this bug as scripting exercise :)

    Well that would require me to get into scripting first! But if I ever did and worked on it, I think there is one thing I'd tried to improve on this otherwise amazing toolbox: I'd make sure that wires don't originate necessarily from the "center" of the object, but rather from a natural starting point, such as one of the object's borders, for instance.

    Kudos anyway!

    PS: actually there is one more thing, which I think would be a nice addition: when modifying a "weirded" wire, it would be nice to reset the former "weirding" in order to avoid having crooked connections. "Cleaning up" the wire is not a very reliable solution, as NI's "cleaning" algorithm has some uncontrollable tendencies to whip wires around.

    PPS: and this: allow selecting multiple wires and apply the "weirdiness" to all selected branches.

  5. I have installed the RCF plugin and it is quite amazing.

    However, I have discovered this little bug.

    In this situation:

    RCF Weird Wires Bug case, Image 1

    Choosing "Round Corners" will result in this:

    RCF Weird Wires Bug case, Image 2

    No other "Weird Wire" choice results in an error, so I suppose that there is some weird calculation somewhere, although I could not spot one after a cursory glance at the code.

×
×
  • Create New...

Important Information

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