Modify control behavior in sub-vi

I'm using a dual-slide control in several places to select a range of values. I've added behavior to the slider by forcing the value of the second slider to be greater than or equal to the first slider. I'm doing the limit calculations in a sub-vi by threading the control values through the vi. It all works fine but I've been trying to find a way to add the behavior in the Sub-VI without having to pass it back to the main. In other words, I want to add a control to a panel that has the appropriate behavior without adding the necessary code to the main diagram. I can imagine this being done by passing say a reference to the control to an appropriate sub-vi which then monitors the control and performs whatever limiting is necessary without having to wire it back to the calling VI.
There are other instances where you want to customize control behavior so I'd like to see a better way to handle this. I've tried working with contol references but to no avail.

Using a reference should be the answer. What was your problem with them?
Right click the terminal and select Create>>Reference, then right click the reference and select Create>>Control. Copy this control (the reference) to the subVI and have it as part of the connector pane. On the BD, wire its terminal into a property node. Since you created it from a specific control, it should give you all the properties of that control. Place the subVI on your BD and wire the reference from the original control into it and it should work. If it doesn't, I suggest you post the code.
Try to take over the world!

Similar Messages

  • How to modify Bridge CS6 default sub-folder date format while importing?

    How could I modify Bridge CS6 default sub-folder date format when we are importing images from a connected camera? Default format for shooting date is aaaammjj. I would like instead aaaa_mm_jj. How could I add "_" to the date format?

    You only can do so after the import process using a third party app called A better finder Rename,  originally designed for Mac but they seem to have a Windows version also:
    http://www.publicspace.net/ABetterFinderRename/

  • Shell Creation Modify Control Files with Exclude Table Information  Step er

    I am try to create Shell using TDMS  I  am gettingbelow error while executing step Modify Control Files with Exclude Table Information.
    I am getting error saying that    //No such file or direcroty  Message no.: CNV_TDMS_13_SHELL000
    I am using NFS common mount as my install directory between CI & DB, please can you help me.
    Please can help me.
    Thanks
    Ramesh

    It appears that the directory for shell installation is not accessible from CI (TDMS execution server). Do the following -
    Copy the entire Shell installation directory (having TPL files) temporarily to the CI app. server and maintain the path of this directory in the TDMS package.
    Then execute the activity which is currently failing. Most probably it will finish successfully.
    Now copy the DDLORA.TPL file from this directory to the original directory on the DB app server and continue with your exports.
    I hope this helps.

  • Modifying tab control behavior

    I have been toying around with a tab control trying to customize it to
    suit my needs.  I currently have a tab control with a transparent
    background (since it is within another tab control, and I find it looks
    far better without any borders or anything) that cotains 4 tabs.
    I'm wondering if there's any way to change the colour of the different
    tab texts, based on the selection.  For instance, if you click on
    tab A, which has the text "TAB A", is there any way to change the
    colour of that (and only that) text?  As it stands, it's somewhat
    difficult to distinguish from the other tabs, since all of the tab
    outlines are transparent, the text only shifts to the left a little.
    I've played around with the properties, but with no success.  I
    feel like this probably isn't possible, but if anyone has any other
    ideas of how to distinguish the text, I'm all ears (or eyes I guess).
    Thanks for your help.

    Two suggestions: either hide the tabs and create other buttons to handle the switching of your tabs (what I do when I want to create a more elegant interface where tabs "don't make sense") or change the FP colors of all the other pages. That way only your page will have a transparent background and it's label will stand out.
    Try to take over the world!

  • Modify control record and send out to external (TAMA) system using ALE

    Hi All,
    I have a scenario to send idoc from ECC 5.0 to 3.1R/3 and then to TAMA system (external system-through TRFC)
    In the inbound process code of 3.1R/3, I have to write a custom FM to modify the control record and point to TAMA system and then send it out to TAMA system.
    Has anybody got idea about this and what function module need to use for modifying the control record and send it out. Any help is really appreciated
    Thanks
    Ricky

    Hi Ricky,
    To access IDoc data and modify it in your custom FM, you could investigate the following FM's:
    EDI_DOCUMENT_OPEN_FOR_PROCESS
    EDI_SEGMENTS_GET_ALL
    They should allow you to access the EDIDD, EDIDC tables.
    The IDoc related functions are contained in the function group EDI1, it may be helpful to start from there.

  • Modify control record and send out to external (TAMA) system

    Hi All,
    I have a scenario to send idoc from ECC 5.0 to 3.1R/3 and then to TAMA system (external system-through TRFC)
    In the inbound process code of 3.1R/3, I have to write a custom FM to modify the control record and point to TAMA system and then send it out to TAMA system.
    Has anybody got idea about this and what function module need to use for modifying the control record and send it out. Any help is really appreciated
    Thanks
    Ricky

    Hi Ricky,
    To access IDoc data and modify it in your custom FM, you could investigate the following FM's:
    EDI_DOCUMENT_OPEN_FOR_PROCESS
    EDI_SEGMENTS_GET_ALL
    They should allow you to access the EDIDD, EDIDC tables.
    The IDoc related functions are contained in the function group EDI1, it may be helpful to start from there.

  • Problem in modifying control record

    Hi All,
    My scenario is Purchase order to Sales order. Once PO is created IDOC will be created and that idoc will be taken as source and i will be modifying the idoc in abap mapping as per requirement.
    All the segements are being modified and getting updated in IDOC but when i am trying to change the control record its not getting reflected in the r/3 but when i check in moni before comming to r/3 the xml struture has changed as per my requirement even for control record also but while comming from XI control record is not getting changed.
    I would like to change senderpartner and sender partner type in control records.
    every configurattion steps has been done  correctly.
    Would request your experiences if you would have faced any this type of situation in your projects.
    Thanks in Advance.

    Apply Control Record Values from Payload
    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.
    http://help.sap.com/saphelp_nw04s/helpdata/en/96/791c42375d5033e10000000a155106/frameset.htm

  • How does referencing a property of top-level control effect a sub-VI's timing?

    I've got a Graphic User Interface (GUI) with some buttons and text controls. First I bundle the references to these controls into a cluster and send it to a utility sub-VI where the cluster is saved in a switch register (the process called functional global). Then I have a 10 Hz loop in the GUI VI to monitor the controls locally. In a separate loop, I start a sub-VI that eventually leads to the utility sub-VI with the control references. When I use these references with the "Property | Value" it seems to effect the timing of the sub-VI.
    Currently I'm running the entire application using LabVIEW's default priority and execution system. It appears that when the sub-VI encounters the Property Node reference to an external control, the sub-VI loses its place at the head of the CPU queue, thus allowing other VI's to process.
    I'm considering assigning the utility sub-VI a higher priority and/or execution system but I'm not sure of the ramifications. I've read Application Note 114, "Using LabVIEW to Create Multithreaded VIs for Maximum Performance and Reliability", but it's dated July 2000 and does not seem to cover Property Nodes.
    Is there a connection between using Property Nodes for external controls and system timing or is my testing flawed?

    Property nodes and the VIs which use them all are forced to run in the User Interface execution system. This is what causes the change in your VI timing.
    To change the value of an indicator without "moving" the subVI to the UI execution system, try passing the data to the GUI VI by means of a queue. This should allow updates without waiting for the subVI to finish and without causing the slowdown. The Enqueue qnd Dequeue functiosn are quite fast so the added ovehead should have minimal effect on your timing.
    Lynn

  • Control key for sub-operation

    Hi, what is the control key used for sub-operations for which we do not want seperate confirmation. when main operation confirms, the sub-operation should get confirm automatically. please advise.

    hi,
    You can use PP03 or *PP05 * or any other which dont have tick for confirmation required.
    only thing is that , other details also you need to check for.
    Depending on your requirements, a sub-operation can contain the following data:
    A control key, which specifies
    Whether costs are determined for the sub-operation
    Whether the sub-operation is processed internally or externally by a vendor.
    Whether, afterwards in order processing, a confirmation can or must be made
    A wage type for settling incentive wages
    Standard values, which are planned values for the activities to be performed in a sub-operation.
    External processing data, which form the basis for externally processing sub-operations
    User-defined fields with any customer-defined data
    Check and revert back
    regards
    Ritesh

  • Modified control loop.vi URGENT!!!!

    je souhaite utiliser le "modified PID control loop.vi" pour avoir deux entrées acquisition distinctes et une seule sortie output à gérer.dois je simplement dupliquer ce vi ? Dois je imbriquer les 2 boucles dans une seule ?
    merci si vous pouvez me fournir un vi adapté car je débute avec labview."

    Bonjour,
    De quel exemple parlez-vous? Pouvez-vous le poster ou me dire où le trouver?
    Merci.
    Matthieu Gourssies
    National Instruments France

  • Odd Remote control behavior

    I have remote control enabled through a workstation policy associated to the Workstation container. I do not have an active user policy with remote control enabled or associated to any users.
    But, It seems we can remote control into a workstation through a user's name in Console One and it overides any restrictions we had put on the policy withing the workstation policy. We are able to remote right into a user with no prompt. If we remote control into a workstation it prompts like it should.
    Im kinda confused here.

    Bob,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Error while modifying Control Tables in FDM with Essbase Adapters

    Hi,
    While trying to edit Control Tables for Period / Category, we are getting an Error 'Unable to retrieve Target System'. We have installed FDM with the Essbase Target Adapter from ES11x-G4-D_1002.zip
    Any help will be greatly appreciated
    Thanks,
    Prasad

    Hi,
    Thanks for the quick response.
    We are now able to edit the Control Tables by converting the Dimensions to Global mode
    However, while trying to export, we are getting the following error:
    Error(1012004) Invalid member name
    Thanks & Regards,
    Prasad

  • Linear Fit Weight Input Modifying Control Input - Impossible? Bug?

    I was having some strange data array issues with a program I was debugging and ended up distilling the issue to this.  When "Linear Fit" is called twice it modifies the weight input array passed to it.  Sounds crazy; but its true.  I've been able reproduce this with a simple vi that I've attached.
    The terrible thing is that if the weight array input is a control; its values will be modifed after calling Linear Fit.  And if you've branched that wire and used its values for some other part of your program; the values on that wire will also change.
    I'm using LV 8.5.1
    I'd appreciate it if someone could verify this is happening on their machine.  I'm too delirious from beating my head against the wall after tracking this down.
    Milan
    Attachments:
    Linear Fit Test.vi ‏19 KB
    Linear Fit Test capture.png ‏79 KB

    You can also patch the problem by inserting an "always copy" primitive right before the linear fit. See attached.
    Message Edited by altenbach on 12-15-2008 01:52 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    LinFitpatch.png ‏11 KB
    Linear_Fit_TestMOD.vi ‏20 KB

  • Modified transition behavior over clip to slug combination

    FCP 7.0.3
    steps to reproduce error
    1. create a timeline with clip / slug / clip sequence
    2. modify default transition to 15 frames instead of 30
    3. drag the transition or use right click method at the clip to slug or slug to clip
    4. result will be a tiny transition, barely visible
    5. attempt rt-click - transition alignment "center on edit" - no change to position of transition

    Don't know what to tell you.
    I drop a clip on the timeline:
    Edit a section of slug followed by another instance of the clip:
    Put my cursor on the cut points and type Command + T and get 30 frame centered transitions:
    +
    Have you tried trashing your preferences?
    What OS are you using?
    MtD

  • Efficient way to modify control values?

    Hello,
    I have been using LabVIEW somewhat casually at work for the past couple of years, and have read at least a few times that there is usually a better way than using Local Variables.
    In this case I have a setup file with ten different numeric controls for various power levels and frequencies. By choosing from a text ring I want to automatically fill in the "default" values for these numeric controls for each given value of the text ring.
    The way I have this implemented now is I just have a case structure with multiple values. Based on the chosen value in the text ring I load ten constants into the ten local variable references.
    Is there an easier/more efficient way to do this?
    Thanks,
    Steven
    Solved!
    Go to Solution.

    To me this seems to be 'the' valid approach.
    References can offer more flexebility, but suffer from worse performance. Performance won't be an issue for 10 numerics, only if you have somwhat larger arrays (a typical graph with 100 points you can notice the performance loss).
    Only a terminal is faster than the local (assuming that you need to display the value, otherwise of course just use a wire). Some exotic usage of Control Val Set invoke note has shown a very good perormance, but I think this is a bit over-coded for just initializing controls.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

Maybe you are looking for

  • How do I get the caption (Description) out of an image's metadata?

    Taking a break from a monstrous project that has had me tied up for days, I have embarked upon what I thought would be a bit of light relief (hah!). A colleague asked me for an easy way to get captions into InDesign. So I started scripting there, ask

  • New LED Cinema Display calibration

    Will there be any hardware or software differences necessary between the calibration of the currrent LCD models and the new LED model?

  • Need help fom my imac, monitor impression?

    it is almost running out my imac apple care, and in some light condition it seems to me to se the dock on boot screen... but if i use a white background and maximum brightness i can't always see it i can't really tell what can be, but my options are.

  • Exception while creating JCO destinations

    Hello, I have deevloped a webdynpro application as a local DC and trying to deploy and run it. While doing this step it throws an exception as "NullPointerException" when i click on create JCO connection. The error details are like : "at com.sap.tc.w

  • Opening workbook problem

    hi, when i open workbook from portal, bex (3.X) open corectly but when I want to open second workbook from portal, this action not pass. is there any way to open two or more workbooks in bex. thanx for reply