Reuse of the custom controls in a model of VI

Hello

My question is do my Subvi more reusable modules using templating.

I am writing a message in queue manager application to control many different instruments running asynchronously.

A super nice feature of the models that I recently discovered, is that if you include a control or a Subvi as a model in your file LIVES.

If you create a new VI using this file LIVES it automatically prompt you to re - register these files, which would allow me to save a lot of time during duplication

My managers of messages queued for the different modules. (I know that the actor model eliminates this, but it is important that I get this done soon, and I won't change my project too at this point).

My question is that, with the model of control, I seem to be unable to use a file the same way TTC. That said, I can have one instance of a TTC but when I try to create a copy of it I am asked to re-record it as a .ctl file, so if I created a new VI from the model I'm unable to update all instances of the control in this way convenient.

Is there a work around for this?

Thank you in advance!

Ah, actually, I solved my problem; just does not allow quick selection because then it will use the model to create a new ctl file.

To remove a TTC, I need select file .ctt via browser. Oops.

Tags: NI Software

Similar Questions

  • update to hold outside the custom control

    Hello

    I do a custom control similar to the slider.

    When I tap on the native cursor and go out with the finger, the cursor still have the focus and therefore the handle to continue to move.

    I'd like to get this behavior with my custom control, but when I move the finger outside it, it loses focus.

    No idea how to do this?

    Thanks in advance

    resolved using TouchBehavior.

    Adding it to the root of the custom control container, it will be receive touch events also when the finger is out of the bounduaries:

    m_rootContainer->addTouchBehavior(     TouchBehavior::create()           .addTouchReaction(TouchType::Move,                                       PropagationPhase::Bubbling,                                       TouchResponse::StartTracking));
    
  • During the installation of Flash Player, I get the prompt to close the customer control panel. What is and how it close?

    During the installation of Flash Player, I get the prompt to close the customer control panel. What is and how it close?

    This link to a thread on this forum about Adobe Flash Player explains how to kill (strong word) the customer dashboard:

    Client dashboard

    I assume you are using a Mac.

  • How to bind ResourceBundle to FXML that describes the custom control?

    What follows is FXML that describes the custom control:

    <fx:root type="javafx.scene.layout.VBox" xmlns:fx="http://javafx.com/fxml">
      <TextField fx:id="textField"/>
      <Button text="Click Me" onAction="#doSomething"/>
    </fx:root>
    

    Can we use the resource group as:

    <fx:root type="javafx.scene.layout.VBox" xmlns:fx="http://javafx.com/fxml">
      <TextField fx:id="textField"/>
      <Button text="%buttonText" onAction="#doSomething"/>
    </fx:root>
    

    with the choice of locale like ResourceBundle.getBundle ("database name", local); If regional settings are specified in the main Application that uses this custom control.

    Thanks for the explanation to anyboby who has related knowledge.

    The problem is the synchronization between the local parameter that defines the main application and the locale for the custom control to use in FXML. Thanks for help

  • Not the custom control based on existing controls

    For my UI I need a directional Panel control 8, somewhat like a D - Pad or a digital arcade stick, as seen on the left side here:

    Or this:

    His output would ideally be an Enum, identifying the direction in which it is proposed:

    0: Center

    1: left

    2: right

    3: to the top

    4: bottom

    5: left upwards

    6: left down

    7: top right

    8: right down

    The order doesn't really matter. In fact, nor the data type as long as it works. He must also be able to respond to the keys on the keyboard for example the arrow keys.

    The problem I have is that I can't do this control. To the best of my knowledge, a control like this does not natively exist in LabVIEW. So I looked in the creation of custom controls, but all the resources that I found only show you how to take a control existing (for example a cursor) and change its appearance. Absolutely nothing about creating controls that behave differently than the default, the controls made NEITHER.

    I spent enough time looking for resources that I have to ask: is it still possible?

    Edit: I would reluctantly with a cluster with 4 Boolean controls, each corresponding to one of left, right, up, down. But then, can I do their people in charge of the graphics from the other? If not, can I at least prevent press left and right at the same time?

    Do some research on the XControls - they allow you to create custom with custom behaviors controls: http://www.ni.com/tutorial/3198/en/

  • is it useful to make the custom control custom/indicator icons?

    I was doing custom icons (finally not very personal, but it is still at least somet ext) are for the controls and indicators, when I realized the only time where you see when you open the control itself, ot if you go over it in the project with the help on.

    So the question is:

    It is useful to create a custom for each custom control icon that you perform, if we see that very rarely?  (The exception being a cluster, since in later versions of LabVIEW, you can actually represent your cluster on the BD as the icon that you have done for her, so it IS definitely worth making an icon for it.)

    Thank you!

    You said correctly, very often (I won't say RARELY) we see the icons to a custom... control but I prefer to create icon for each custom control because it certainly adds value.
    I often use the VI hierarchy, context help window window and here a custom icon help.

  • Add id number to the custom control

    Revive this thread. I have to add created ID dynamically controls too.

    (1) how to add ID to the dynamically created controls

    (2) is there a method to dynamically children created list of controls in a container?

    (3) select / change the properties of the dynamic controls from outside their parent container?

    MOD EDIT: Subject changed to reflect a new topic

    Please create your own thread for your questions (next time).

    (1) the easiest way would be to add the properties you need in the definition of the element of the dynamic control
    (2) you can use the count() and at() in the container
    (3) If you have a reference to the control, for example using 2), you can access its properties.

  • OS 6.0 - Bug in the user interface for the custom control

    Hello

    I discovered a bug of UI on OS 6.0 with one of my UI controls. It seems to be linked to the control itself and how it is the calculation of the width. If my screen is full screen, painted correctly control, but as soon as I change the subLayout of the screen, the control still has a full screen width

    I spent a few hours trying to understand this one... but I can't seem to get their hands on the issue. I am sure that he as to do with the way in which it is the calculation of the width of the control of 99%... If someone could point me in the right direction would be appreciated...

    Thank you

    See the code snippet below

    UITest class

    public class UITest extends MainScreen
    {
      public UITest(long style)
      {
        super(style);
    
        add(new ButtonField("This is my test button", ButtonField.USE_ALL_WIDTH));
        TextBoxField ActionLog = new TextBoxField(0, 75, TextBoxField.USE_ALL_WIDTH);
        HorizontalFieldManager hfm = new HorizontalFieldManager(Manager.USE_ALL_WIDTH);
        hfm.setBorder(BorderFactory.createSimpleBorder(new XYEdges(), Border.STYLE_SOLID));
        hfm.add(ActionLog);
        hfm.add(new ButtonField("This is my test button", ButtonField.USE_ALL_WIDTH));
        add(hfm);
      }
    
      protected void sublayout(int width, int height)
      {
        layoutDelegate(width - 40, height - 40);
        setPositionDelegate(10, 10);
        setExtent(width - 20, Math.min(height - 20, getDelegate().getHeight() + 20));
        setPosition(10, (height - getHeight())/2);
      }
    }
    

    Class TextBoxField

    // http://na.blackberry.com/eng/devjournals/resources/journals/jul_2005/creating_textbox_field.jsp
    public class TextBoxField extends VerticalFieldManager
    {
    
      private static int PADDING = 2;
      private static int DEFAULT_WIDTH = 100;
      private int _managerWidth;
      private int _managerHeight;
      private String _pattern;
      private EditField _editField;
    
      public TextBoxField()
      {
        this(0, 0, Manager.USE_ALL_WIDTH);
      }
    
      public TextBoxField(long style)
      {
        this(0, 0, style);
      }
    
      public TextBoxField(int width, long style)
      {
        this(width, 0, style);
      }
    
      public TextBoxField(int width, int height, long style)
      {
    
        super(Manager.NO_VERTICAL_SCROLL | style);
        _managerWidth = width;
        _managerHeight = height;
    
        VerticalFieldManager vfm = new VerticalFieldManager(Manager.VERTICAL_SCROLL | style);
        _editField = new EditField(style)
        {
          public void paint(Graphics g)
          {
            super.paint(g);
          }
        };
    
        vfm.setPadding(PADDING, PADDING, PADDING, PADDING);
        vfm.add(_editField);
        add(vfm);
      }
    
      public int getPreferredHeight()
      {
        int fontHeight = getFont().getHeight() + (2 * PADDING);
        return (fontHeight > _managerHeight) ? fontHeight : _managerHeight;
      }
    
      public int getPreferredWidth()
      {
        if (_pattern != null)
        {
          return getFont().getAdvance(_pattern);
        }
        else
        {
          if (_managerWidth == 0)
            return DEFAULT_WIDTH;
          else
            return _managerWidth;
        }
      }
    
      public void paint(Graphics g)
      {
        super.paint(g);
    
        // BUG FIX: 17-08-2010
        // Before drawing the border, save the current color, after
        // change the color for the border, paint the border and re-set
        // back to the original color.
        int prevColor = g.getColor();
        g.setColor(Color.BLACK);
        g.drawRect(0, 0, getWidth(), getHeight());
        g.setColor(prevColor);
      }
    
      public void sublayout(int width, int height)
      {
        if (_managerWidth == 0)
          _managerWidth = width;
        else
          _managerWidth = getPreferredWidth();
    
        _managerHeight = getPreferredHeight();
    
        super.sublayout(_managerWidth, _managerHeight);
        setExtent(_managerWidth,_managerHeight);
      }
    
      public String getText()
      {
        return _editField.getText();
      }
    
      public void setText(String text)
      {
        _editField.setText(text);
      }   
    
      public int getTextLength()
      {
        return _editField.getTextLength();
      }
    
      public void setTextWidthPattern(String pattern)
      {
        _pattern = pattern;
      }
    };
    

     

    No, PopupScreen was still available. We have certainly used it in 4.2.1 but it was available before that as well.

    With PopupScreen, create it with your manager custom as a delegate.  In this handler, override sublayout to do most of the work. Sublayout of PopupScreen can contain a single functional element, if you wish: setPosition (x, y) (after the call to super.sublayout). SetExtent of the delegated manager will have an impact on the parent company PopupScreen fine (the screen apply the theme to the Manager and take more room, but it's OK).

  • LabVIEW FPGA. Where should I put the custom controls - or type defs in a project

    Hello

    Maybe this is a stupid question - but I'm a little confused on where within a project I should put the controls (or type defs) used in FPGA screws.  If you put in the bit "module FPGA" project, so they come up as "dependencies" - as if they are not in the project within the project when you read/write values in the target FPGA.  Also, it seems that if you copy the project to a different location folder then the FPGA vi can be distributed in a way that she needs to be recompiled - even if you don't change anything - that's not cool if it takes an hour or two to compile.

    I had the controls in the external project for awhile - but seems not ideal from the point of view modular programming, and also, it seems that it may also cause the recompilation unnessary - although perhaps less often that put them in the FPGA subproject.

    Any thoughts?

    I've seen the same behavior and it is a fact that the code must be recompiled if you move a project even if the FPGA code is unchanged. From my point of view, it's a real BUG. This is independent of any file source or target FPGA.

    The other point of your question is not clear relly. Of course, you will get the dependencies if you place the necessary files outside the structure of the target project. But I see no problem to reference them twice because it won't double the source itself. So I suggest to refer to these files several times in the project structure. Actually I'm doing this because I manage a project file LV with different targets CRIO where the complete code for the target FPGA is double referenced under each target.

    It may be useful

    Christian

  • Placing the control in a custom control file

    Hi all

    I'm new to LabView and have a simple question. I customize an example of LV for my purpose. There is a custom control used in the example file. I'm setting up a new (combobox) control and want to place this control in the file of custom control so that I can move on to various sub - vi for various purposes (e.g. initialization).

    Chart attached shows the ComboBox (Model DUT) on a front panel and custom control file (TestStand UI Data.ctl). My questions are the following:

    1. What are these symbols with the pink arrow (that is the button stop/restart, etc...) in the TestStand UI Data.ctl file? (see attached diagram). They are symbol of data type of references?

    2. How can I place my combobox was forced TO model in the file of custom control so that I can pass through the different slot control file - vi? I tried to do a right-click on the control and use create-> constant or reference, but they don't it has not changed the pink arrow symbol element.

    I hope someone can help solve my problems. Thanks in advance.

    Yours,

    Chati

    chati wrote:

    Hi all

    I'm new to LabView and have a simple question. I customize an example of LV for my purpose. There is a custom control used in the example file. I'm setting up a new (combobox) control and want to place this control in the file of custom control so that I can move on to various sub - vi for various purposes (e.g. initialization).

    Chart attached shows the ComboBox (Model DUT) on a front panel and custom control file (TestStand UI Data.ctl). My questions are the following:

    1. What are these symbols with the pink arrow (that is the button stop/restart, etc...) in the TestStand UI Data.ctl file? (see attached diagram). They are symbol of data type of references?

    2. How can I place my combobox was forced TO model in the file of custom control so that I can pass through the different slot control file - vi? I tried to do a right-click on the control and use create-> constant or reference, but they don't it has not changed the pink arrow symbol element.

    I hope someone can help solve my problems. Thanks in advance.

    Yours,

    Chati

    You do want to overwrite the "custom controls" that are part of LabVIEW.  However, you can create your own "custom" by a fall control, say, TestStand UI Data.ctl on your diagram, right click and choose Open Type Def (who opens the definition OR one you do want not change), make some additions or changes, then do a file/save under and save it in your project file with a custom name, that you make up.

    These pink arrow symbols are references - you can find them by looking in the Refnum palette.  I'm not sure what they are references to, however.

    As a suggestion, rather than send us just a picture with circled items, send the actual control so that we can watch and maybe tell you more details.

    Bob Schor

  • Components customized QML: management of the events of the child controls

    The tutorial here:

    https://developer.BlackBerry.com/Cascades/documentation/UI/custom_components/custom_components_tutor...

    Shows how to use the alias so that you can read the values of the properties of the child controls.

    It would be good to have a code example that shows how to hang children change events. For example, if your custom control has a control segment, how to make the custom control user be notified when there is a click on segment control event or when the value of this control is changed.

    Signals can be easily created in QML and exposed from a QML file that is customized to be listend to another. The following article explains the basic process:

    https://developer.BlackBerry.com/Cascades/documentation/UI/signals_slots/index.html

    In its simplest form, a signal is created in QML using the following format:

    signal signalName (variableType variable1,...)

    In the QML implementation of this custom control file, you will now have a manager of signal onSignalName created automatically for you.

    I covered this topic in my last webcast and created a sample file that looks like this:

    https://developer.BlackBerry.com/Cascades/documentation/videos/index.html

    Beta 1: Astonishing UIS using the new framework of BlackBerry 10 - part 2

    The sample was created against the Beta 1 of the NDK for BlackBerry 10 but the QML (TaskControl.qml) file should work fine in the beta 2 release. If you are having trouble please post it here and I will consider.

    Kind regards

  • VeriStand custom controls

    I'm just starting to use the evaluation copy Veristand to see if it can do what I need it to do.  It seems very customizable, and I tried to create controls in the workspace personalized with Labview.  I would like to make things like radio buttons, lists and menus in the workspace to control my drop-down model.  I have tried everything just by taking one of the digital controls and its replacement by one of the controls mentioned previously, but it gave me an error message saying they were not supported.  It seems that I'd be able to do this using the free label template, but I'm not sure how to do this.  I was able to find an example of a custom indicator (min/max one), but could not find everything related to custom controls.  Are there examples or tutorials, that I could look at?  How could I go for some of these controls of Labview in things that I could use the Veristand workspace?

    -Eric

    Hello Junior, I have some answers for your problem.

    1. I have attached a zip file that contains your renamed control and build a project in it. You should be able to unpack, check the construction features and make sure that the output destination is C:\Documents and Settings\All Users\Documents\National Instruments\VeriStand\Display models. Trigger a build on that and you should get EricHettlerSample - Radio.vi and EricHettlerSampleControlSupport.llb in there. Once you have this launch a workspace, you will be able to drop the EricHettlerSample - Radio in the control list control.

    2. for the explanation. I think that when you perform a save as on the example of the min - max you download the Web of LabVIEW cross link on the screws that the llb with that of the vi.lib. Do a save as will not work. What works, it is that you create a project and setup a source distribution to generate the custom control. Here are the steps that I have take based on your attached file:

    1. Rename in windows Explorer, the attached digital indicator - radio.vi to EricHettlerSample - radio.vi
    2. Open LabVIEW convert the .llb you connected to a directory.
    3. Create a new project file.
    4. Radio.vi open EricHettlerSample - under my computer, when LabVIEW invites me to some VI I search in the directory to convert llb. Note that LabVIEW search more files under vi.lib because these are the files that NI VeriStand install labview directory.
    5. Once I added some of the screws, I mass compile the project.
    6. Create a source distribution. Add the EricHettlerSample - radio.vi. Go to setting source file main vi for the folder models and all otherwise go to a folder of llb.
    7. Trigger the build, LabVIEW will do a better job in creating an isolated component which is properly connected.

    In General, you always want to create a project to create a custom, control given that Save As not always worked with the LabVIEW VI link in NI VeriStand.

    To create a completely custom control project base what you do is:

    1. Copy C:\Documents and Settings\All Users\Documents\National Instruments\VeriStand\Display Templates\Decoration - free Label.vi in Explorer windows in a directory of your choice.
    2. Make a change of name on VI in Windows Explorer.
    3. Open LabVIEW to create new project add the renamed VI in my computer. This will create an empty project to customize the custom controls.

    I hope this helps, let me know if it still does not for you.

    Also if you still embarrassed by the error messages appears so you will want to clean directory C:\Documents and Settings\All Users\Documents\National Instruments\VeriStand\Screens this directory being where NEITHER VeriStand puts all the controls that you drop into the workspace cache. So if you have a control that cannot be loaded remove all screws in this directory should remove the wrong screws.

  • Custom controls

    I don't know that it is very simplistic, for most users of LV.  Are there tutorials for creating custom controls?  I posted earlier and got answers to my questions, but his majority was simply do.  I didn't understand why.  I also found a great tutorial done by SimonH on customizing the gauge control in Labview.  But it was more a step by step instead of a why.  For example.  What is the difference between the ico 'clip' and the 'key' top-left?    When I save something like TYPEDEF, CONTROL or STRICT TYPE DEF?  In my original vi, I had a number of controls, I want to replace my newly created custom control w.  How can I do? replace >...?  I checked the auto "type def update" box on the custom control, but when I update the custom control is not updated in my appeal vi. National has done a great job when it comes to tutorials.  We might get a fact for custom controls?

    Thank you

    MarkDavid wrote:

    Eighteen of them I created on my front panel before I realized that I couldn't resize them in the sense of 'height '.

    You cannot resize the height of the digital indicator, the only way to change height by changing the size of the font of the indicator.

    So, what is the difference between the icon of tweezers and the key?  What is a type def def strict type and control in the menu drop-down?

    The difference between the icon of tweezers and key icon is that, the key icon is used to customize the shape of the indicator/control, change the color of change size, add images to the control, tweezers shows all components of the control which you can change the size, location, etc of these components.

    What is a type def def strict type and control in the menu drop-down?  How is my

    Control, type def and def of strict type types in which you can save your custom control, register, it controls and you used number of instances of that control these instances will have any relationship between them, and you can do something on each instance with affect others.

    The def Type, if you save your control as a type def and you took a few instances of this control and the automatic update of type def is enabled, any changes that you make to control window customize which will appear on other instances. However, in the definition of type, you can change some properties of the control without affecting other instances (e.g. color, font... etc)

    The def of strict type is identical to the type definition, except that you can change the properties of the control without opening the window customize. So for example if you want to change the color of the control, you need to right-click on the control and select open type def to go to the window to customize.

    How is my call vi is not updated when I update the custom control even though I have the auto update type def checked?

    I think that because you have registered your order as a "Witness" not unlike 'Type Def' or type strict def.

    How to replace the other 17 displays?  Can I put the control on my palette?

    You must save your custom type def or type control strict definition, so that if you change your custom control which will appear on the other 17.

    Hope this helps

  • Removal of the custom by TestStand 4.0 data types

    Hello! I use the custom in my TestStand sequence data type. This data type is derived from my own control and is a huge cluster of clusters. It is created in a file of sequence (and not in any *.ini). By changes in the sequence, it becomes necessary to delete existing custom data type and create a new one due to changes in the custom control. How can I remove custom data types?

    I n ' found any possibility to do in Teststand menus. It was not so important, if the custom data type was not so huge.

    Thank you in advance for your answer - maybe it's a workout if no direct solution?

    Hello

    Just see the Type of data in the file in the sequence and highlight the custom data type it, then delete it.

    (Please make sure that you do not have variables defined in your file of sequence that still use the data type you want to remove).

    Concerning

    Ray Farmer

  • Modification of the data types of the custom shared variables

    My application includes a library containing a number of shared single process variables. I use type defs to create the shared variable "of the custom control." I know that shared variables do not-automatic update since the type defs, so I'm updating shared variables (data type, do a right click, properties) whenever I update the type definitions.  However, if I make a change to a type design that does not change the data type, for example to change the labels controls, these changes will be reflected in the shared variable.  The data types of variable window shared list contains entries for each previous update, which indicates he uses the previous entries.  How can I make the window of properties of shared variables 'forget' my previous defs type wandering without deleting the variable total? Withdrawal and replacement would be troublesome because the done variable references throughout my project.

    Thank you

    Wes

    The variable is not in the Distributed System Manager, or Manager of the Variable, and cancellation of the deployment has not been resolved.  However, I found Labview from closing completely and reboot clears the memory of the previously used custom data types that sees the library.  Thus, the effective workaround I found is:

    1 make a significant change to the data type of the type (per your suggestion) FED. Record.

    2 - redefine the variable screw-notice type FED.

    3. save the project. Close and restart labview.

    4 - the old def type is now disabled.

    5. return the significant change of the def type, implement trivial change and save.

    6 redefine the variable using the type correct now def. Viola!

    Thank you!

Maybe you are looking for

  • How will I know that I have downloaded the Firefox Sync Addons?

    I downloaded Mozilla Firefox on my laptop but I don't know if I've also already downloaded sync Firefox Addons on my laptop?

  • Very slow SP6100

    From my 6100 Pro Satellite takes forever and changing programs going very slowly. Green focused on the HARD disk at the front is not lighting. It could mean the HD not working anymore? I tried to find some utilities to test on the net, but without su

  • void transfer info node to hand VI VI

    Hello How can I do to get the sub VI for the tank wide information also appears in the main VI. When the entry passes to below 60, the tank scale change in the sub VI but in the hand of VI. Any help will be greatly appreciated. Thank you hiNi.

  • Is my Sansa e260 DEAD?

    Hi guys! I need your help! I (maybe I had...) a Sansa e260 4GB, black color. I tried to format my MP3 as a key USB BOOTABLE DEVICE Now my Sansa only power ring of blue light. Do not power light lcd or lcd screen inverter. I've tried all the instructi

  • Internet icon on the taskbar says no internet access on that network (shows yellow triangle) and yet THE internet connection!

    Hey,. so, basically, as stated in the title, it says there is no internet on the network, but it does not say im connected to the network. It shows yellow triangle with exclamation point. When I open google, there are internet and everything works. W