Jump to content

vugie

Members
  • Posts

    393
  • Joined

  • Last visited

  • Days Won

    32

Posts posted by vugie

  1. index.php?app=downloads&module=display&section=screenshot&id=104

    Name: Label Manager

    Submitter: vugie

    Submitted: 05 Dec 2009

    File Updated: 23 Dec 2010

    Category: JKI Right-Click Framework Plugins

    Version: 1.0.0

    LabVIEW Version: 8.2

    License Type: BSD (Most common)

    Label Manager (RCF Plugin)

    Copyright © 2009, Wojciech Golebiowski

    All rights reserved.

    Author: Wojciech Golebiowski (w_golebiowski (at) tlen.pl)

    Name: Label Manager

    Type: Right Click Framework Plugin

    LabVIEW version: 8.2.1

    Description:

    Label Manager is Right-Click-Framework plugin for quick and ergonomic management of text labels styles. Styles are defined as text properties combined with alignment against label owning objects. They may be applied to any text label at block diagram or front panel, also with multiple selection. Once style is set to the label, the assignment is being remembered and may be updated on any change.

    Installation

    Preferably install VIP package with VI Package Manager

    Alternatively you may download ZIP and extract Label Manager folder to <LabVIEW Folder>\resource\JKI\RCF\Plugins\ and restart RCF

    Dependencies:

    OpenG Variant Config

    JKI State Machine

    Functionality

    • - Generate label style from selection (retrieves both text attributes and alignment to label owning object if any)
    • - Apply any style to currently selected text labels (also finding labels belonging to selected objects and showing up hidden labels)
    • - Labels remember their style - when any of text attributes or label relative position has changed, original style may be recovered with single click (even after closing VI and opening it again). This association may be also removed.
    • - Works for both Block Diagram and Front Panel labels
    • - Graphically manage label styles

    Not-so-short video

    Support:

    If you have any problems with this code or want to suggest features:

    http://lavag.org/ind...showtopic=11583

    Version History:

    1.0.0:

    Initial release of the code.

    License (BSD):

    Copyright © 2009 Wojciech Golebiowski

    All rights reserved.

    Redistribution and use in source and binary forms, with or without

    modification, are permitted provided that the following conditions

    are met:

    1. Redistributions of source code must retain the above copyright

    notice, this list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright

    notice, this list of conditions and the following disclaimer in the

    documentation and/or other materials provided with the distribution.

    3. The name of the author may not be used to endorse or promote products

    derived from this software without specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR

    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES

    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.

    IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,

    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT

    NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,

    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY

    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT

    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF

    THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    Click here to download this file

    • Like 2
  2. NI would prefer if you password protect those diagrams. The mystic ini token may not be the most secure gate latch ever, but it does generally keep the kids out of the briar patch. Scripting is being cleaned up for the next release, and at that point most of the operations that the token hides will be exposed but in ways that are closer to safe. Until then, please latch the gate behind you.

    Those kids who are going to browse RCF plugin code, most probably already know this token.

  3. Ok, I made it with even simpler way and withouth the limitation of size:

    post-7450-125936304312_thumb.png

    Respective VIs are located in: <LV_DIR>\resource\plugins\NewDialogFiles\ProjectWizards\IDNPA\CloneIDProject\dependencies\ResManager

    In this case I'm searching only for PNG's header (well, part of). If there are more PNGs within control you have to search for something more specific.

    Rolf, thanks for inspiration...

    buttontest2.zip

    • Like 1
  4. Cross-post

    I found the way how to change image on boolean button without using control editor. Essentially you have to to manually insert a png as button image and then replace it with another png programmatically inside .ctl file. The only condition is that initial png file has to have greater filesize than new one. If you want to make a lot of buttons just create first one using biggest PNG (by file size not dimensions). Technically it should be possible to replace any image inside a control with this method.

    As .ctl file looks exactly like macintosh resource fork, it should be also possible to omit the limitation of smaller size, by updating respective offsets within a file, however I failed with first trials (not many).

    Example attached - LV8.2

    post-7450-125924959571_thumb.png

    buttontest.zip

    • Like 2
  5. When browsing Code Repository, if an entry has a user rating (by number of stars in upper right corner) all of the stars appear grayed until you move mouse over them. Initially the only thing indicating that an entry has user rating is number of votes, but as all stars are initially gray one may think that it is a number of 0-stars votes.

    BTW it would be good if the stars are shown also at category level (in table).

    Firefox 2.0

  6. There is a lot of fun with shape memory (i.e. Nitinol) wires. You can make a knot on a wire, put it into hot water and wire becomes straight again.

    And I confirm that magnets are kind of magic: at my daughter's birthday party I filled very tall bottle with water, put some coins (I had to select them before) inside and gave children neodymium magnets. Getting the coins out using magnets attracted them for half an hour!

  7. You may use common intensity graph but for the pixels outside circle (using circle equation) set value from outside your measurements range and on the color ramp set a different color for that value (gray for example). You'll also have to manually draw color ramp, not to show that color.

  8. Congratulations and best wishes!

    As an instance of child class she'll sooner or later call your "Decrease Sleeping Time" method... Up to now (my daugthers are 2 and 5) I haven't found another access method to my own Sleeping Time property - I just get used not to sleep :)

  9. What is the functional difference between the three controls now posted?

    They all look like they give the same effect to my eye.

    ???

    The difference will be clearly visible when you put something into a cluster, set "Size to fit" and then make an array of clusters. It is a difference between 1 px and 2 px element gap.

  10. ...that using a text display was bad, that it needed to be the icon display or whatever the user had configured in their Tools>>Options for palette displays. Ok, so I made LV build an on-the-fly graphical palette. But then it was shot down because the layout was inconsistent: things in the palette shouldn't move when a new VI is added to the class, but adding new VIs at the end means nothing is ever findable. Can't you make it alphabetical but read my mind and not be alphabetical when I don't want them to be? Shouldn't virtual folders have something to do with it? Why aren't the parent methods folded in? Why are they in sub folders? Shouldn't they be in superfolders? What the heck is a superfolder? Perhaps the palettes should be named in iambic pentameter. Can you make all the icons rhyme?

    Doesn't it apply to project window as well?

  11. 0 px border would be very hard (if no impossible) to do right-click on it. I think the most optimal solution would be to make such cluster control which clips its content with outside rectangle. Then even thick border made transparent would truly appear as no border (not clipping out controls it overlaps with), still being clickable. Also any border thickness (up to 4) might be applied then by "pasting at same size" any rectangular decoration.

    AQ: possible?

  12. You may build simple circuit of resistor and capacitor, and measure RMS of the signal, which will be proportional to frequency. But as these are rather low frequencies better simulate whole frequency range to tune values of elements (using i.e. Qucs as I did for preliminary study):

    post-7450-125317569917_thumb.png

    You may also try (as these are low frequencies) to directly connect the signal to LPT port and catch pin state changes. Single ms resolution should be enough for this. But it depend on minimal pulse width - it cannot be too short.

×
×
  • Create New...

Important Information

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