How can I display a changing variable in a subvi on the front panel of the main vi as the subvi is excuting

In the document attached the vi on the right is sub to the vi on the left. On the subvi on the right the variable "Field Reading" is continuously updated on the front panel of the subvi as the "for" loop is executed, but only the last value of the variable is updated on the main vi front panel which is what is expected. My question is how can I display the changing value of "Field Reading" on the main vi front panel as the "for" loop in the subvi is running?
Thank you.
Solved!
Go to Solution.
Attachments:
Doc2.docx ‏554 KB

Hopefully I can explain it well enough. It really is simple.
1) Create an empty global variable and call it something like User Interface References.vi
2) For each and every control and indicator on your front panel, right-click and select Create/Reference
3) Place these references wherever you like (I use a series of Event cases to perform my initialisation and these all live in one of these event cases). They can be placed anywhere in the main vi.
4) For each of the references, right-click and select Create/Indicator
5) Moving to the front panel, Cut all the indicators and Paste them in the global variable (eg. User Interface References.vi)
6) Moving back to the block diagram, wire the global variable to each of the references and select the same named global variable.
All the hard work is now done (until you add another user interface terminal). You should now have something that look as shown below, [except the reference labels would be to the left (not sure why the snippet put them above)]. In my latest program I have 82 references!
Done. You can now access all your front panel controls and indicators anywhere in your program as shown below.
You can just select Value in most cases, but in this particular case I wanted to fire off an Event to do some things (log the alarm) as well as just update the value. So, this is another bonus with the method.
Hopefully this all makes sense. If not, let me know.

Similar Messages

  • How can I display append changes history of a multiline textbox in custom form?

    I want to display changes history of multiline textbox in custom aspx form as normally display in standard dispform.aspx and editform.aspx page.
    How can I do this?

    Hello
    It seems you want to get the versions of multiline textbox, see following article, may help you
    http://www.mtelligent.com/journal/2007/10/17/the-insanity-of-getting-versions-of-a-multilinetext-box-set-.html
    Keep us  updating.
    Ashish Kanoongo, MCP, MCSD, MCTS

  • How can I display a formula variable in the report?

    Hi,
    I have a requirement to display a formula variable value in the report. When the user runs a report this variable value should be called once and displayed below the report title or in a specified cell. Is it possible something like this could be done? if yes, can someone tell me how can I achieve this functionality. I appreciate your time and effort with points.
    Thanks,
    Rao.

    Hi Bhanu,
    In the query properties you can only see text variables and not the formula variables. If I define my number of working days as text variable and I can display in the report. However, I need to use this variable in some calculation in the report, so it has to be formula variable in order to use in calculations. I appreciate your input with points.
    Thanks,
    Rao.

  • How can I display a CreateTimeSpan variable?

    I am trying to figure out how to properly output a variable
    that was created using CreateTimeSpan in a readable format. Here is
    the initial code:
    <cfset MyTime = #CreateTimeSpan(0,0,30,0)#>
    And lower on the page:
    <cfouput>#MyTime#</cfoutput>
    Which unfortunately results in showing this:
    0.0208333333333
    But I want it to show as
    30 minutes
    Without going into too much detail, the short is I am trying
    to output this for the user and only need to know how I can format
    0.0208333333333 to the appropriate amount of time *i.e. 30 minutes,
    2 hours 30 minutes, 2 days, etc.
    Any help on this is greatly appreciated!

    Well you weren't as far off as you think :). Initially I was
    going to want to do it so it dynamically figured if it should
    display as days, hours, minutes, etc....but I decided that was good
    enough for the moment.
    Also I do intend to allow the admin user to indicate the
    timeout value, but not as you might think. Basically I have an
    /install/ folder which will automatically launch if value on
    application.cfm
    <cfparam name="application.install" default="FALSE">
    Within that set of self contained pages, it will take them
    through a series of questions and the end results will:
    1. Test database connection.
    2. Allow them to indicate whether they want to offer support
    or not (i.e. can indicate a support email address and if so, then a
    support form shows within the admin tools + sends out automated
    emails on any errors).
    3. Allow them to indicate their own time out value.
    Upon completion of all of these things, it will then either
    write to the application.cfm OR if CFFILE is turned off, give them
    the code to copy and paste into the application.cfm, save and
    upload...which in turn includes the timeout variable.
    I am extremely thorough on my applications and previously at
    bottom of the page had it hard coded as "will time out in 30
    minutes" but decided that should be determined during install and
    dynamically show.
    Have lots of work to do on that application before launch
    yet, so I didn't want to waste too much time on that single item
    :). THanks again!

  • How can I display and change built-in symbols of a tree control programmatically?

    I want to set the built-in symbols of a tree control during runtime.
    I only found an example to assign custom pictures but not how to select one of the 40 built-in symbol.
    Many Thanks 
    Solved!
    Go to Solution.

    The ActiveItem.SymbolIndex will allow you to select the symbol for the active item. You can use the ListBox Symbol Ring Constant (Dialog and User Interface palette) to select a symbol (or you can just enter the number directly if you know what it is).
    Message Edited by smercurio_fc on 07-10-2008 09:36 AM
    Attachments:
    Example_VI_BD6.png ‏2 KB

  • How can I call the SubVI like a child window one or more times in the front panel of my main VI ? See the example atached...

    I would like to create a aplication where I call dynamically the same SubVi many times in the front panel of my main VI ... I saw this kind of programmation in other languages like Delphi, C++ Builder and Visual Basic.
    For explanation: I have 10 channels to read in the list, but I would like to see only 3 channels ... Then I will click in the channels choosed of my list and will open the same SubVI 3 times, where each one will show the individual channel.
    Thanks for attention...
    Cleber
    Attachments:
    Opening SubVi many times.jpg ‏118 KB

    TiTou certainly pointed you down the right path... For a few more details, refer to my post to this thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=141811
    You could use the same technique, except instead of opening the clone's front panel, use the VI reference you have to it to poke it into a subpanel. Please note: I have never actually tried building a VI with more than one subpanel on its front panel, but it should work. Also you will not want to close the VI references because you will need them to stop the clones when you shutdown your application.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How can we display svg files in flex at runtime using FileReference? Actually we are trying to load

    how can we display svg files in flex at runtime using FileReference? Actually we are trying to load the svg file from the  local directory.

    This should give you the JRE version;
    System.out.println(System.getproperty("java.version"));
    and this should tell you where its running from;
    System.out.println(System.getProperty("java.home"));
    There are loads more system properties, check the JDK documentation for java.lang.System and look at the getProperties method which has a list.
    Stewart

  • Is there a way the user can change the equation in the formular node from the front panel on the fly, dynamically?

    Is there a way the user can change the equation in the formular node from the front panel on the fly, dynamically?

    Sorry, I don't think so. That would be pretty cool if you could create a property node for a formula node and then enter a formula on the front panel and use it to update the formula. But you can't create a property node for a formula node and the only way of modifying the formula is by typing it into the formula node on the diagram. And you can't modify a diagram of a running VI.
    You could create a VI which is only a formula node with the maximum number of inputs and outputs you expect. Have a button on the calling VI to Edit Formula. When the button is pressed, use a VI server to display the front panel on the formula VI, display a dialog box telling the user how to display the diagram of the formula VI, then stop the calling VI. (You can't edit a sub-VI while t
    he calling VI is running). The user will then need to rerun the calling VI to use the new formula.
    You might be able to do something by calling MatLab or something like that to get an interactive formula window.

  • How can I make an area of the front-panel have scroll bars?

    I'm writing a VI that provides many options to the user. The front-panel is large and contains many controls ~130 of them, it's divided up visually to match the workings of the system the VI controls. One particular functional block has very many control options though these are rarely used. I can't fit all of the controls I need onto the screen area I have available.
    What I would like is a way of making an area of the screen with scroll bars on it. I don't need any more than that, just an expansion of the front-panel area I have available. The "Sub-Panel" feature provides the scroll bars. But, a Sub-Panel is a way of accessing another VI, I don't want to do that. I could put the extra controls on the far-left or far-right of everything else and get the user to scroll the main scroll bars at the edges of the screen. The problem with that is that I it would mean couldn't lay out my front panel to match the system block-diagram as I have so far.
    Does anyone know how to do this?
    Solved!
    Go to Solution.

    I know I can show the scroll bars at the edge of the VI. In my case that's not very useful. The front panel shows a block diagram of a system. It's made up of a set of clusters which control various parts of the system. I want to keep this layout because it's very useful in explaining to people new to the system how it works. I inherited that approach from a previous iteration of the program for an older system. The problem I have is that the new system has far more control parameters for one of the blocks. Unfortunately it's one of the blocks in the middle of the block diagram. If it were one at the left, right, top or bottom it would be no problem because the main scrollbars could be used.
    I can use a tab-control, that's my fall-back plan. The problem is that would be abusing the purpose of the tab control. In a tab control each tab is supposed to deal with a group of controls that have a common connection. So, all the things in tab #1 are supposed to be connected in some way and all the things in tab #2 are supposed to be connected in some way. There not supposed to be a way of gaining more screen space.
    The controls I'm dealing with are numeric controls, switches and rings.

  • How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel?

    How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel? On the Front Panel I am making a complex control that consists of a Slider and a Numerical Input box. Both Controls display the same information and either can be used for Input. When one changs, the other is made to display the same value.
     But I only want the Slider to display the Label on the Front Panel, to avoid confusion. On the Block Diagram however, I want both controls to display their Labels so that I know what they are. How do I display the Label for a Control on the Block diagram, but not display its Label on the Front Panel?

    No.  The Label Visible property is separate for the front panel control label and the block diagram terminal label.
    How did you start out with the block diagram's label not being visible?  Whenever I drop a control or indicator, the label is always visible on both the FP and BD by default.  Maybe there is a LabVIEW option that causes new controls/indicators not to have their labels visible by default, but I have yet to find it.  I don't think an item should ever be dropped without the label visible, good LabVIEW coding practice demands that the labels for control terminals on the block diagram be visible so that you know what control or indicator a wire is going to.
    That being said, I have seen a lot of VI's posted where the label for the terminal on the BD is not shown (against good programming practice.)  I've gone to the BD and right clicked to show the label.  Sometimes, the people have an empty label (which will turn off the visibility for both the FP and BD) and I'm forced to add some text of my own into the label so I can figure out what their code is doing.  When I add some text to the label, at that time, I find both the BD and FP labels become visible.
    Are you dealing with controls that have empty labels to start?
    Good programming practices:
    1.  Always have a name for all of your controls, never use and empty label by deleting the text in the label.
    2.  Make the labels unique.  For example, don't have two controls both called Stop.  How do you know quickly know which terminal relates to which control?
    3.  Always show the labels on the block diagram, so you know the function of a control's terminal.  If you want to hide the label on the FP, that's okay.
    4.  If you want a different label to appear on the FP than whatever you actually called the control, then use the caption.  You can hide the label and show the caption.  This is useful if you need to programmatically change what the "label" is on the front panel such if you are making an application that needs to change its user interface such as for a foreign language.

  • How to run a subVI without poping up normally, but when clicking a button, popup the front panel?

    I know pop-up the front panel of a subVi when called by selecting VI Properties>>Windows apperence.
    But what I need to do is: always run the SubVI inside the parent VI as the nornal subVI do without poping up. But when I click a button"show front panel", the SubVI popup the front panel.
    Is there anyway to do this?
    Thanks,

    ossoo,
             You can use a static VI reference to the subVI and then use the Front Panel Open invoke method to show the front panel when you want. I have attached two VIs that show this. I saved these VIs for LabVIEW 2009 so you should be able to open them up and run them in 2009 or later. Add.VI is the subVI that you are calling. The Caller.VI is just a While Loop that contiually calls the Add subVI. Inside of the While Loop is also a Case Structure with a Static VI Reference (you might need to change the path this is pointing to after downloading the VIs to your computer for this to work) and the Front Panel Open invoke method. You can run the Caller.VI and interact with the main Front Panel as normal and see the subVI but then you can click the Open subVI? boolean button and it will open the subVI's front panel. You can continue to interact with the main front panel and see the values update on the subVI's front panel as well. You can just close the subVI's front panel when you are done viewing it. Does this help?
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager
    Attachments:
    Caller.vi ‏19 KB
    Add.vi ‏23 KB

  • How can I display char if a variable is null

    Hi All,
    How can I display char if a variable is null  in sap business object
    item name
    Office Visits
    Non-Emergency ED Utilization
    Non-Preferred Pharmacy
    above items are value and they are populating for this month but form next month "Inpatient Stays" a new item will add at database level
    i want to display this item with current month
    final result should be
    item name
    Office Visits
    Non-Emergency ED Utilization
    Non-Preferred Pharmacy
    Inpatient Stays
    i have tried with ISNULL function but it is not working
    please help i am using SAP BO 3.1
    Thanks in Advance
    Ranjeet

    You should be able to findout NULL using isnull([object]) function.. at report layer..
    Try with the below formula which should work for you
    =If Isnull(trim([object])) then "Inpatient Stays" else [Object]

  • How can I display Task's "Resent Changes" or "Updates" or "History" in the project site

    Hello,
    When a task is assigned to a team member, the team member may keep sending frequent updates "Status" for the task to the approving whenever he finishes anything in the task. These updates can be shown in the Task Details (in PWA).
    My question is, how can I display the Task's "Resent Changes" or "Updates" or "History" in the project site, so ALL the team member can see the "Progress" of that task?
    Thanks

    Hi, 
    I'm not sure it is relevant that all team members see all task updates through the project site. It will be a lot of information that might not be relevant and could generate confusion.
    Instead of this, I'd suggest to share the project schedule through the project site with regular baselines and eventually to review task update/approval with team members in PWA during a weekly status meeting.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How can i display days(Feb 28,Mar 30&April 31...Dec) in layout

    Hi Experts,
    i am facing smal problem if you have any solution please can you respond...
    this is my requirement :
    i am calaculating days for each month using funtion module.
    once i'll get those days (eg:28 days,30 days 31 days depends upon month)how can i display days in ayout ????.
    what steps i have to follow????how can i desing in data column for display of my month days??
    i'll assign full points..
    Thanks.

    Hi Bindu,
    Here is the my full code of FM.
    in this function module input value is another variabel i am passing that variable value to FM(it is fine).
    export parameters is : REFERENCE(BEGINDATE) TYPE  SY-DATUM
                                     REFERENCE(ETO_CHARSEL) TYPE  UPC_YTO_CHARSEL
                                    REFERENCE(ENDDATE) TYPE  SY-DATUM
    now you can have better idea on my FM.
    FUNCTION ZDAYS_IN_MONTH.
    ""Local Interface:
    *"  EXPORTING
    *"     REFERENCE(BEGINDATE) TYPE  SY-DATUM
    *"     REFERENCE(ETO_CHARSEL) TYPE  UPC_YTO_CHARSEL
    *"     REFERENCE(ENDDATE) TYPE  SY-DATUM
      CONSTANTS:  lc_jan(2)     TYPE n VALUE '01',
                  lc_feb(2)     TYPE n VALUE '02',
                  lc_mar(2)     TYPE n VALUE '03',
                  lc_apr(2)     TYPE n VALUE '04',
                  lc_may(2)     TYPE n VALUE '05',
                  lc_jun(2)     TYPE n VALUE '06',
                  lc_jul(2)     TYPE n VALUE '07',
                  lc_aug(2)     TYPE n VALUE '08',
                  lc_sep(2)     TYPE n VALUE '09',
                  lc_oct(2)     TYPE n VALUE '10',
                  lc_nov(2)     TYPE n VALUE '11',
                  lc_dec(2)     TYPE n VALUE '12',
                  lc_days_28(2) TYPE n VALUE '28',
                  lc_days_29(2) TYPE n VALUE '29',
                  lc_days_30(2) TYPE n VALUE '30',
                  lc_days_31(2) TYPE n VALUE '31'.
      DATA:  lv_hlp_date_year TYPE i,
             lv_hlp_rest      TYPE i,
             iv_date TYPE D,
             iv_month(2) type C,
             iv_year(4) type C,
             lsr_var TYPE REF TO cl_sem_variable,
            enddate  TYPE upc_yto_charsel,
             l_area            TYPE upc_y_area,
             l_co_area_var     TYPE upc_y_variable,
             lto_value         TYPE upc_yto_charsel,
             lso_value         TYPE upc_ys_charsel,
             i_month(6) type c,
             i_area(8) type c.
            count type i,
            lv_days type i.
       i_area = 'ZNTEST1'.
       l_co_area_var = 'ZVC0123'.
    PERFORM instantiate_object USING    i_area
                                        l_co_area_var
                                 CHANGING lsr_var.
    PERFORM get_current_value_of_variable
                            USING lsr_var
                            CHANGING lto_value.
    READ TABLE lto_value INTO lso_value INDEX 1.
    i_month = lso_value-low.
    iv_month = i_month+4(2).
    iv_year = i_month(4).
    concatenate iv_year iv_month '01' into iv_date.
    begindate = iv_date.
    CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
      EXPORTING
        DAY_IN                  = iv_date
    IMPORTING
       LAST_DAY_OF_MONTH       = enddate
    EXCEPTIONS
      DAY_IN_NOT_VALID        = 1
      OTHERS                  = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    DATA:BEGIN OF itb OCCURS 0,
              dates LIKE sy-datum,
           END OF itb.
    DATA: w_date LIKE sy-datum.
                                                         comment* Data: w_date type UPC_YTO_CHARSEL.
    CLEAR:w_date.
    WHILE w_date < enddate .
      w_date = ( begindate + ( sy-index - 1 ) ).
      itb-dates = w_date.
      APPEND itb.
      CLEAR itb.
    ENDWHILE.
    LOOP AT itb.
      MOVE itb-dates TO w_date.
    ENDLOOP.
    can you help me this is very urgent.
    Edited by: Eyda rose on May 23, 2008 3:21 PM

  • How can I display step info in User Interface with Tracing Disabled?

    I'm trying to modify the CVI Operator Interface application to update the execute panel with some step information during the execution of the program. i.e. I want to display the measurement, high & low limits during the run WHEN TRACING IS DISABLED. (Doing this, when tracing is enabled is easy, all you do is access the step record that's been constructed (I can cope with that!))
    I've successfully implemented a User defined execution event to signal the User Interface application when the current step is a result (using TS_UIMsg_UserMessageBase etc. I'm posting a UI Message in the Process Model under the ProcessModelPostStep so that I will only display if its a result step.) I've added a user defined
    entry in the execute.c module execution event switch statement which will call a function in the exedisp.c module to update the display. However, I don't have a context to the step that I can use. (I can't use e.g. the exeRec record since this is only completed with the context if tracing is enabled.) I've got a handle to the correct panel to write the information to, but how do I get the context to the current step when tracing is disabled?
    Regards,
    Brian

    Hi,
    no problem - btw, if you wanted to acheive this in TS 1.x, you could always write to a local variable with the ActiveX reference for the step concerned, and then use the msg reference that you have in the OI within the UI Message handler, to dig through to the Execution ->Sequence File->Sequence->Locals, or Execution->Thread->SequenceContext (and you can get almost anywhere from that).
    Hope that helps
    S.
    // it takes almost no time to rate an answer

Maybe you are looking for

  • Colors details in Performance Graph of OEM 11gR1

    Dear All, I use OEM 11gR1 to monitor continuous performance of my database. Though what colors represent is described on the right panel, but i need to study them in details and if any abnormal raise in color what actions should be taken. Is there an

  • Calling the smartform based on checkbox selection in ALV

    Hi i displayed the report output in ALV using 'REUSE_ALV_GRID_DISPLAY'. I maintained checkboxes as first column of data. and i also added three user defined buttons like check,uncheck,print form. Now my problem is when user selecting the records in A

  • Module Pool with Selection Screen

    I have a module pool in which I've created a sub screen to accommodate select-options. SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN. select-options: r_matnr for mara-matnr. selection-screen end of screen 1010. I've put this selection screen in

  • Enhancing all standard texts to accept HTML format message

    Hello every one, Please help me with your inputs in my requirement. The user basically requires enhancing all standard texts to accept HTML format message being sent to recipients. Can you please let me know how can this be achieved? Thanks in Advanc

  • Bluetooth Keyboard is not connecting

    Hi, I am having trouble with my Bluetooth keyboard as follows: I havn't used my keyboard for a while as I was moving house but as soon as I got my desk set up I noticed the batteries where flat so I changed them. Anyway it would not connect to my com