Xcontrol change properties of component controls

Hi All
The continuing saga of my range slider control.
I was able to build it into a xcontrol and it works great...  as long as I don't try to change the scale of the slider; which of course I have to do.  AND I have to have multiple copies of this control on the FP all with different scales.
Asking all the xcontrol experts out there...  how can I control properties of a component control of a xcontrol.  I have attached the files below.  It was pretty simple to get the basics working.
Thanks for any assistance.
Dan
Attachments:
RangeSlider.zip ‏48 KB

Here is an alternative (although a bit more complicated) method of setting the slider range.
With this method you can have multiple copies of your XControl on a front panel, each with a different default slider range, which you can set at edit time.
I have added an extra right-click menu item ("Set range") to the bottom of the slider right-click menu, which will only appear in edit mode. This pops up a VI where you can enter the slider max and min values.
Note that if you do change the max or min values, I set the "State changed" boolean to true. This tells LabVIEW that the state data of the XControl has changed, and that the VI containing the XControl has unsaved changes. When you save the containing VI, the state data of the XControls is saved along with the VI.
This state data can then be retrieved in the init.vi of the XControl so that you can set each copy of the XControl to have different default values.
To demonstrate that it works, I have added a VI called "Container.vi" to your project which has two copies of your XControl. Open up "Container.vi", right-click on either of the XControls and click "Set range" to set a different slider range. Then save and close "Container.vi".
When you reopen "Container.vi", the XControls should have retained any changes you just made to the slider ranges.
Attachments:
RangeSlider XControl.zip ‏76 KB

Similar Messages

  • How to change properties for some controls in runtime ?

    hi,
    I would like to change some of the properties for some controls in front panel in runtime. Number of control properties I want to change is depending of a log file user opens in final application.
    I attach an example where I'm trying to change the visibility of numeric controls. Problem I have I don't know which reference to connect to property node in case the control in for loop is not a numeric control. The example relies to label.text property but I could use the more generic classname property as well.  
    regards,
    petri
    Solved!
    Go to Solution.
    Attachments:
    dynamic reference.vi ‏11 KB

    pcardinale wrote:
    Initially, a control has no caption.  It's not just that the caption string is empty and the caption not visible, but the caption object does not exist.
    I think this should probably be changed in future versions, because even if each control had a caption, it would still be a negligible small part of the VI. The current behavior made sense many years ago where HD and memory space was very precious. Not any more!
    This issue comes up often enough that it warrants addressing the root of the problem.
    It is hard to convince the casual that the caption does not exist if he can simply do a "show caption" at edit time and it will show in all glory, even with the default set to the current label. It is confusing!
    There is even an idea about this that seems worth supporting (also read the link in the discussion).
    What do you think?
    LabVIEW Champion . Do more with less code and in less time .

  • Change properties of a cluster element withing an array of clusters

    Hello all,
    I have an array of cluster that is shaped as a line with different display elements.
    A list or a tree wouldn't have made it, so I had to use a cluster and make a table.
    The problem is that I want to change not only the text but also the text color.
    Individually.
    I found this :
    http://www.ni.com/example/30904/en/
    But it change the property in all the clusters in the array, not just the one I need.
    Some people have the same problem :
    http://forums.ni.com/t5/LabVIEW/Reference-to-Array-of-Clusters-with-an-array-element/td-p/1006427
    http://forums.ni.com/t5/LabVIEW/Different-set-of-values-for-two-rings-in-an-array-of-clusters/m-p/10...
    http://forums.ni.com/t5/LabVIEW/array-of-clusters-get-references-to-all-the-clusters/td-p/1079456
    http://forums.ni.com/t5/LabVIEW/How-can-I-reference-the-properties-of-a-control-in-a-cluster-in/m-p/...
    http://forums.ni.com/t5/LabVIEW/Writing-only-to-certain-cluster-elements-in-an-array-by/m-p/2200728
    http://forums.ni.com/t5/LabVIEW/Update-Properties-Of-One-Control-In-An-Array/m-p/3015501
    http://forums.ni.com/t5/LabVIEW/Array-of-clusters-and-in-the-cluster-is-a-bar-meter-how-can-I/m-p/15...
    http://forums.ni.com/t5/LabVIEW/Property-node-of-a-control-inside-of-cluster-inside-an-array/m-p/946...
    Obviously, while in a list/table or tree you can change the property of an individual
    cell (font, color) you cannot do it within an array of cluster, by some sort of magic,
    the property of a cluster element (font, color) are all linked together, hence rendering
    the use of an array worthless.
    A possible hack is proprosed by using control masking, setting one visible and the
    other invisble, swapping their position, whatever. It's a hack you have to perform,
    hence add another code to maintain.
    Is that still the case or is there now a more official way to handle individual cluster
    properties, not just its data ? After all that's a common real-life example that should
    be handled by Labview. In my opinion.
    David Koch
    Solved!
    Go to Solution.

    altenbach wrote:
    One of the elements could be a 2D picture indicator of about the same size. You can write text in any color using picture functions.
    Here's what I had in mind. Seems to work just fine (I would fine-tune the font, picture border, etc. but this should get you started).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ColorText.png ‏13 KB
    ColorText.vi ‏9 KB

  • Error (23317) The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks. Recommended Action The operation Change properties of virtual machine is not permitted on a virtual machine that h

    Experts !
    Error (23317)
    The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks.
    Recommended Action
    The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks.
    Is this limitation by design? If we have a shared VHDX between two VMs, then I am not able to change the VM properties from SCVMM.
    SCVMM 2012 R2 with Windows Server 2012 R2 Hyper-V.
    Appreciate any help !
    Optimism is the faith that leads to achievement. Nothing can be done without hope and confidence.
    InsideVirtualization.com

    Hello,
    that is a VMM issue.
    If you did not deploy your virtual cluster from a VMM service template, VMM doesn't recognize the configuration.
    Until MS got it fixed, you could use the workaround from system center central:
    http://www.systemcentercentral.com/tag/shared-vhdx/
    This posting is provided >AS IS< with no warranties.

  • How to change the size of control´s prompt?

    No matter the size of data to be displayed in the view suface prompt, the controls have the same size.
    Does anyone here know how to change the size of control in surface prompt?

    HI,
    In order to change the size of a radio button... one way you may consider is to Customise the Radio Button.
    Place a Radio Button (RB) on the FP of a VI, Right-Click the RB > Advanced > Customise...
    Click the Mode Button (most Left button) for Edit Mode
    Right-click the radio button (the round image) now, you will see a list of actions i.e. Copy to clipboard, import picture ...You will see Four images under the 'Picture Item', those are the images that you will need to replace.
    Prepare Four Images of the similar but larger expected size
    *** Copy the 1st new image to clipboard. Back to the Picture Item and select 1st image. Then, select Import Picture (to replace the existing image)
    Repeat *** for all four images.
    Once done, change the mode back to original. Save the *.ctl
    You are now ready to use the customised radio button!
    Quick sample attached (sorry for the poor images created )
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    IFK_RButton_Large.ctl ‏11 KB

  • How to create an element in component controler

    Hi Experts,
    I need to validate the data of a model node in component controler and add those validated records in other value node.  For that I need to write a loop where in i can repeat the records for validation.
    How can i create the element in the loop ?  I tried with below code as we do in View controler , but ! this is not allowing in compoent controler. Is there any way to do this ?
    IPrivateFinalTRAView.IFirstOutputElement FFM = wdContext.createFirstOutputElement();
    Regards,
    Suresh

    Hi,
    i am trying to copy all the resords from a model node to the value node which is available in the component controller,.
    after executing the model i am doing this copy operation, for the requirement i ahve converted some of the data into STRING type.
    int SalHistSize = wdContext.nodePt_Salhistory().size();
    // Populate Salary_History Table
    ArrayList arlQuotaTable = new ArrayList();
    // Creating the element for our Salary History Node
    IPublicFcCompHistory.ISalary_HistoryElement objsalhistnode = null;
    if(SalHistSize > 0){
    for (int k=0;k<SalHistSize;k++) {
    IWDNodeElement elementSalHist = wdContext.nodePt_Salhistory().getElementAt(k);
    objsalhistnode = wdContext.createSalary_HistoryElement();
    objsalhistnode.setAction_Date(elementSalHist.getAttributeValue("Action_Date").toString());
    objsalhistnode.setAction_Reason(elementSalHist.getAttributeValue("Action_Reason").toString());
    objsalhistnode.setAction_Type(elementSalHist.getAttributeValue("Action_Type").toString());
    objsalhistnode.setAnnual_Salary(elementSalHist.getAttributeValue("Annual_Salary").toString()+"  (CAD)");
    objsalhistnode.setCompensation_Sal(elementSalHist.getAttributeValue("Compensation_Sal").toString()+"  (CAD)");
    objsalhistnode.setPay_Area(elementSalHist.getAttributeValue("Pay_Area").toString());
    //          Adding the record to array List          
    arlQuotaTable.add(objsalhistnode);
    //          Bind the populated Array List to the View Table for Data population
    wdContext.nodeSalary_History().bind(arlQuotaTable);
    Try this dear,
    Cheers,
    APPARAO

  • Changing colors of UI Controls

    Hello,
    I am interested in changing the colors and controls of the LabView Simple Interface example supplied in TS 3.0. I am particularly interested in creating a colored "Start" pushbutton that woudl begin the execution of a loaded sequence (i.e.perform similar function as Entrypoint_2 button on the existing simple UI).
    I've already read the Knowledge Base entry titled "Can I Change the Color of my TestStand 3.0 Operator Interface User Interface Controls", which appears to answer my question. HOWEVER, being a LabView newbie, I was wondering if someone could give me a more LabView specific explanation of exactly what I need to do, or better yet, a snippit from a VI on how this is done. (I have been able to make this change, using the above mentioned Knowledge Base entry, to a LabWindows/CVI GUI (I am much more experienced with CVI), however I have not been able to figure this out in LabView.)
    Thank you in advance for your help.
    Thanx,
    Newbie

    Newbie,
    I've attached a VI that has a button that has the same functionality of the Simple OI's button that says Single Pass. Basically, you want the event handler, in this case a case structure (although you could register an event on the button click and use an event structure), to handle the button click by loading the correct command and then executing. This VI waits for the Button to have the true value and then executes the Single Pass command. Hope this clears some things up for you on this process. Let me know if you have any additional questions. Have a great day.
    Adam B.
    Applications Engineer
    National Instruments
    Attachments:
    Single Pass.vi ‏28 KB

  • Change the info. in control record?

    hi...
             how 2 change the information in control record?Not in ALE?
    bye.

    you can use the various options in the IDoc adapter and change the info in the control record.
    http://help.sap.com/saphelp_nw04/helpdata/en/96/791c42375d5033e10000000a155106/content.htm
    The options like;
    1. <b>Apply Control Record Values from Payload</b>
    If you set the indicator, the conversion of communication parties to the IDoc partner is only possible for systems that are not logical systems.
    If you do not set the indicator, all combinations of communication parties and services are handled as services without party.
    If the IDoc XML structure contains a control record during outbound processing on the Integration Server, it is rejected and created again by the IDoc adapter. If you want to include additional values in the control record, set the indicator and provide an appropriate mapping for the values.
    <b>Take Sender from Payload</b>
    If you want to take the sender of the message from the payload and not from the configuration information in the Integration Directory, set this indicator.
    If you do not set the indicator, the information is taken from the configuration in the Integration Directory.
    <b>Take Receiver from Payload</b>
    If you want to take the receiver of the message from the payload and not from the configuration information in the Integration Directory, set this indicator.
    If you do not set the indicator, the information is taken from the configuration in the Integration Directory.
    To know more abt the control records, ref: http://help.sap.com/saphelp_nw04/helpdata/en/13/95244269625633e10000000a155106/content.htm

  • Bapi to create/change MM/SD grid control data (AFS)

    Hi experts,
    I'm looking for a way to create and change MM/SD grid control data by bapi (or by other way that can be implemented in ABAP).
    I mean the data that you can see when you go to trx J3AB, enter a material and push the buttons: "MM grid control data" or "SD grid control data"
    Thank you in advance.
    -francesco

    I found it by myself, there's the FM J_3A_CREA_GRCD_MASTER_GRID, inside the J3AGRI idoc FM J_4A_IDOC_INPUT_J3AGRI.

  • BatteryWatch is requesting changes to its application control permissions

    I am using an ad-supported application called BatteryWatch (1.9.7) and everything used to be fine.
    Now, however, everytime I open it I get the request "BatteryWatch is requesting changes to its application control permissions."
    No matter how I change the permissions, this message ALWAYS appears.
    The strange thing is that it didn't use to happen before.
    Since the time that it was working I have updated the application, updated Blackberry App World and I think the company might have moved onto BES/BIS(?).
    Any idea how I can stop this message appearing?

    Hi and Welcome to the Community!
    If your company indeed did move to BES and if indeed your BB has been activated on BES, then BES could be pushing out specific control permissions that are in conflict with what that app thinks it needs...and BES will win every time. So, when you launch the app, it prompts for a change to the permissions to what it thinks it needs...but, since BES is in control, it can't actually change the permission, and prompts again the next time.
    Basically, there is nothing you can do...BES wins every time.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • What are Controlling component, Controlling area component code?

    Hello Experts,
    Can you help me understand the following terms as used in the following 4 quotes from the SAP site:
    What is “controlling component”, “controlling area” and “component code” and how are they related? I will appreciate explanations with real life examples.
    Can you also help explain each of the 4 quotes with examples. Thanks.
    Quotes:
    1. “You can define a maximum of 16 posting periods for each fiscal year in the Controlling component (CO)“
    2. “You need to specify the fiscal year variant for each company code. “
    3. “When you create a controlling area, you also need to specify the fiscal year variant”
    4. “The fiscal year variants of the company code and controlling area may only differ in the number of special periods used. You need to ensure that the fiscal year variants match, in other words, they may not have a time conflict.”

    Hi
    1) firstly, let me tell you one thing that
    Controlling is referred as Component.
    like Order Management as one component.
    Profitability Analysis is as component.
    Activity-Based as component.
    2)similar to company code in FI "Controlling area" in controlling.
    Company code has legal entity:generally organization is company code.
    Controlling area doesn't have legal entity.
    because the will define for internal purpose.
    to know the costs of the organization.
    3)To Build relation between FI and Controlling we assign the Controlling area to Company code.
    FI--- IS FOR EXTERNAL REPORTING PURPOSE.
    CO--  IS FOR INTERNAL PURPOSE.
    4)Fiscal year variant and Posting periods are defined at FI Level.Those only we use in Contolling Area.

  • Is that possible to change parent of GUI Controll?

    Hi,
    I have to change parent of GUI Control. I have a Splitter with two Controls (b.e. 1 x 2 )and would like to delete one. After that I would like to change grid ( 1 x 1 ) and show in this the second view. But after I have called splitter->set_grid(1 1) my container which include second  view is no more valid, I have to get new one from splitter but how can I bind it with my view?
    Regards
    Bogdan

    Hello Bogdan
    If you look at the parent attribute of different classes (e.g. CL_GUI_ALV_GRID, CL_GUI_ALV_TREE) then it is a public, <b>READ-ONLY</b> instance attribute. Based on this property I would assume that it is not possble to switch the parent of a GUI control.
    Regards
      Uwe

  • Changing the EVB3 speed control

    How do I change the rotary speed control number on the EVB3 to accept controller change #82, which is what my Nord Electro is sending? I'm using the Electro as a MIDI controller for Mainstage, and I've got all three pedal jacks plugged in, but i don't want the sustain pedal to change speeds. What am I missing?
    Thanks,
    Stewart

    Duh...it's in the manual. Just change the Midi Mode in the EVB3 controls to NE (I think that might be short for Nord Electro)

  • Change the Frame content Control style

    Hi,
    Is any way to change the style of current Frame content control  as dynamically...?
    I am using Frame control and navigating to Test.xaml, Test.xaml contains some windows Label control  with styles, So Need change the Test.xaml label color dynamically, while it's in Frame, How..Please help me...?.
    Frame.Navigate(typeof(Test));
    After navigating in to Frame, I need change the Test.xaml control styles  how..?

    Try this:
    1) Create some public static Brushes inside Test.xaml.cs
    2) In the setters for these brushes, assign the value to the Labels
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Change the Tree Component background

    Does anyone know how can i change the Tree Component
    background ?
    PLS HELP

    Check out the Component Reference... you change the icon for
    a single node, as far as I know there's no automated process beyond
    that. So assuming your tree component instance is named "theTree"
    you might do this to change the icon of the first node:
    theTree.dataProvider = yourXML; // make sure you don't try to
    change the icon before you load data into the tree
    var theNode = theTree.getTreeNodeAt(0); // the first node in
    your tree
    theTree.setIcon(theNode,'myIcon'); // set the icon
    Where "myIcon" is a MovieClip you have in your library that
    you have set the "linkage identifier" as "myIcon".
    That iconFunction doesn't make a whole lot of sense to me,
    because first of all I don't know why it would be attached to
    theTree, and second it's referring to "item" which is not defined,
    and third its taking the parameter "node" and not doing anything
    with it. But perhaps there is some cool way to make a single
    function which handles icons for your entire tree automatically,
    that would certainly be nice.
    However, like I said, as far as I know that function will do
    nothing without calling tree.setIcon() in some way. I just made a
    function which might do what you want -- it recursively loops
    through an entire tree and sets it's icon based on the XML
    attribute "icon":
    function setAllIcons(branch){
    for(var i in branch.childNodes){
    var node = branch.getTreeNodeAt(i);
    theTree.setIcon(node,node.attributes['icon']);
    if(node.hasChildNodes){
    setAllIcons(node);
    So basically, you run setAllIcons(theTree.dataProvider) after
    you have loaded and applied the XML.

Maybe you are looking for

  • Problem in importing .par file in sun portal 6.0

    hi every one .. i have written a message of the day jspprovider channel using portlet builder 1.0 in sun one studio ..now when i m importing the .par in sun one portal ..it is not giving any error but the new channel is not getting displayed in amcon

  • Deleted iPhoto photos in photostream

    When I upload photos into iphoto it creates an event (I have hundreds as am using a time delay sports camera). I then delete the unwanted photos from the event in iphoto BUT photostream uploads ALL photos.  Even when I go into WEB Photostream on imac

  • Error 3259 Fix !!!!!

    Thanks to whoever it was!!!! If you encounter this error when you purchase songs on Itunes: they either stop downloading, or they wont download at all and you receive "Error 3259", the temp fix is this Pause All downloads and download each purchased

  • URGENT ! Making EXEcutable file in Forms 4.5/5/6 ???

    Dear Experts I am using Forms 4.5 & Reports 2.5 for Oracle 7.3.2 database. Can I make EXEcutable file to run the application directly ? If it is not possible in this version, Is it possible in Forms ver 5 ? ver 6 ? If so, what is the procedure / menu

  • How to be find for Confirmed base on Delivery Date

    Hi In SRM 5.0, would anybody here know what's the function module that retrieves the list of to be confirmed documents based on delivery date? Thanks! Cindy