How adjust front panel placement of a sub VI in the subpanel

Ok so I've learnt how to use tabs and how to place Sub VI's in the tabs. Last, I would like to change the position of the front panel of some of these sub VI's
because they're not positioned to my liking  
Whats the way to go?
Thanks!
Solved!
Go to Solution.

by default, a VI loaded into a subpanel will show up with the same FP position as when you last saved it.  That's not often what you want, and it's easy to move the FP around inside the window and forget you're changing it.  But this should be good enough to get going.
one trick that I use is to load the subvi into the subpanel with the same origin in each.  So both the front panel and the pane that it is in have their own coordinates.  For the pane (which is normally the window boundary, and here is the subpanel boundary) the origin is 0,0 at the upper left corner.  On the front panel, look for a little dot with the grid visible.  That's (0,0) on the FP.
So what we can do programmatically is to use property nodes to set the pane origin to the front panel origin:
 (LV2009f2)
 ok so the snippet ate my constant but there should be two 0's (I32) in that cluster.  Just create a constant on the Origin property and it'll make it.
-B 
-Barrett
CLD

Similar Messages

  • How can I get a reference to all controls on a front panel of one type )for example of the type Text Ring?

    I'd like to set the strings[] property of all the Text Ring controls on a front panel at once without creating a property node for every text ring. How can i do that?

    > How can I get a reference to all controls on a front panel of one type
    > )for example of the type Text Ring?
    >
    > I'd like to set the strings[] property of all the Text Ring controls
    > on a front panel at once without creating a property node for every
    > text ring. How can i do that?
    This is likely more complicated than making property nodes for each
    ring, but you can do it. Make a subVI that takes in a panel reference,
    reads the array of control references, loops through them looking for
    rings, and modifying the Strings[] property on each ring.
    The part of this that will probably be the least obvious, when you
    have an array of control references there are two ways to find out
    if an element is a ring. You can read the classID and compare it
    to the cla
    ssID of a true ring control. An alternative is to cast
    the control reference to a ring control using a Cast to more specific
    node and wire the error out to a case structure. The error case is
    where the objects that aren't rings will go. The success case case
    where you will have a valid ring refnum that you can use to modify
    the strings.
    Greg McKaskle

  • How to maintain decimal places in BOM Qty & what is the essence of base qty

    Hello PP members
    How to maintain decimal places in BOM Qty & what is the essence of base quantity in BOM ?
    Thank You

    ur first question is not understood, You can have maximum of 3 decimals in BOM item qty.
    Base qty is the qty which is refered to all the BOM items.
    example -
    Product X, base qty 1
    Raw material 1 - componen t qty= 1
    Raw material 2 - Component qty= 5
    This means To produce Product with qty1, it needs raw material 1 qty 1  and raw material 2 qty 5.
    This means To produce Product with qty10, it needs raw material 1 qty 10  and raw material 2 qty 50.
    This is the meaning of Base qty..it is the referece qty refered to all the components.
    About the decimal places
    let us say  example 2
    To produce Product with qty1, it needs raw material 1 qty 1  and raw material 2 qty .0001.
    When you enter this in SAP for the raw materialm 2 system will give error message that you  need to enter the qty with maximum 3 decimal places, hence you need to enter as below
    Product with qty10, it needs raw material 1 qty 10  and raw material 2 qty .001.
    This is how you need to adjsut the base qty and component qty with decimalplaces moer than 3,
    pl come back

  • Printing front panel of VI - no borders appear around the indicator box values

    Dear readers,
    I am using Labview 6.1 on a pentium PC with adequate memory etc. I've been trying to print out the front panel of my VI using a postscript printer and the post script printing options available in the Labview. I notice that the printed front panel doesn't show the rectangular borders that is supposed to surround the values contained in indicators and controls.
    Apart from this problem, everything looks good, such as it prints out in the way that I want...with nice white background to not waste ink.
    Could someone please advise me on what options to set up in order to print the borders around the indicator box values? Thanks very much for any help.
    I noticed that for
    an older Labview for the apple Mac, namely Labview 4 for the Mac, you can just print the window of the front panel and everything comes out wonderful....you get the borders around the indicator and control box values.
    Thanks again.
    Kenny Leong

    Hi Mike!
    Thanks for replying to my post. Greatly appreciated. Is it possible to set the colours for the indicator edges? I'll attach a screen capture of my front panel, and also a digi-pic of the print out. The printout is ok except there's no borders around the indicator values. I printed it out on a hp laserjet 6MP printer as well as on a hp 4050 printer and the printed panels have no borders around the values. I'll attach my front panel vi too. Thanks a lot Mike.
    Kenny Leong
    Attachments:
    labview_panel_screencapture.jpg ‏129 KB
    labview_printout.jpg ‏236 KB
    dip_res_resultswindow.vi ‏199 KB

  • Can I control front panel items from a sub VI?

    Hi all,
    After taking the Intermediate I class, I have been trying to follow the methods of using modular programming, but there's one thing I haven't quite figured out how to do. How can I change a front panel display from within a sub VI? I have a menu selection that I wish to change - can I simply input a reference to it or something like that?
    Thanks much,
    Jason

    All you need to do is to pass a control reference to the subvi, and then, in the subvi, to use a property node to modify whatever you want (well, almost...) on your control. Ask if you have more trouble and need an axample...
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Adjust front panel to screen size and re-position objects on different systems automatically

    Hello, i have designed a vi that contains 5 led's placed at the 4 corners and center of the front panel which occupies the entire screen. However, this vi is to be used on different systems having different screen sizes. But on every screen, i'll need the front panel size = screen size and the led's to  be placed to the centers and corner of this new screen size automatically without any manual operations and positioning bieng done every time. Will the resize option perform this task completely or do i have to go for some other techniques?
    Solved!
    Go to Solution.

    As far as I know, what you want is not easy to do but it is doable but you have to programmatically do it (no Labview setting). Here is an example for only 2 LEDs but I suppose that you will be able to make it work for your other LEDs.
    This VI maximizes the front panel and then positions the 2 LEDs in the center and top right corner upon running. The LEDs are positioned according to their own top left  corners, not according to their centers.
    Marc Dubois
    HaroTek LLC
    www.harotek.com
    Attachments:
    Position LEDs.vi ‏14 KB

  • How to run my vi from a front panel control without using even structure in the vi

    Hello, I would like to run my vi from a front pannel control instead of the tool bar RUN botton. I am using LV6.1 without the even structure feature, so I can't do as proposed by a previous posting by setting the vi to run at open in a "do nothing state" then taking the front panel control event and switching the vi into another ("running") state. I wonder is there some other type of solutions to this problem. Your help is greatly appreciated.
    Bryan

    Hi Dennis, thank you for the reply. I tried with the attached vi. It can only run once (also not in the correct state I want), as the control i placed on the front pannel will stop the VI. I want to have the vi do nothing when it is opened and start counting when the start botton is pressed. Then i want it stop counting when the botton is pressed again...and so on... I must need a different structure to get it work, or did I miss something simple? Thanks again.
    Attachments:
    StartVI.vi ‏16 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

  • Using Front Panel Composite Video 2 RCA Jack on the HP m8000 Media Center PC

    I have a HP M8000 Computer with front panel RCA jacks, composite video 2 and Left and Right Audio RCA jacks.  I have been unable to determine how to select  these jacks for inputting video recordings to the computer.  Any ideas on how to use these jacks to input video from my VCR?

    The front composite video jacks did not have software support for the release of this PC.  The analog video software was not compatible with Windoze-Vista so there was no software given with this PC model that supported analog video input.

  • How connect front panel audio on audigy sb0090 Platinu

    Hello i have an audigy platinum Sb0090 but i don't have the rack creative optional... I would like to connect a front pannel audio from my Super Lanboy Antec. I can't find the schemas of the audigy platinum connectors.Could you help me ?

    Djowoz wrote:
    Hello i have an audigy platinum Sb0090 but i don't have the rack creative optional... I would like to connect a front pannel audio from my Super Lanboy Antec. I can't find the schemas of the audigy platinum connectors.Could you help me ?
    Here is one place to start from - http://audigy2zshowto.blogspot.com/.
    Follow the links found on that page to other sources --> you may find the pin-order for your card/case models too.
    NOTE: Pin order on 0-pin properiatry connector may vary a bit from A2Zs what's been used there (like it did for Audigy 2) but it's not very difficult to find out the right pins.
    jutapaMessage Edited by jutapa on 03-22-20062:57 PM

  • Main Front Panel Cluster reference in Sub VI

    If I create a reference to a cluster and then create a Sub Vi,  I can change
    the cluster variables from the sub vi. All works well - Until I modify the Cluster.
    This breaks the sub vi with a wire class error. Can I fix this ???
    Solved!
    Go to Solution.

    Hi Ben,
    You got a broken wire just because you used a property node for strict type definitions (not for generic). The VALUE of the property node that you used includes the information of cluster data type.
    My suggestion is to use a type def cluster, and use this cluster constant for "Variant to Data" in subVI. By using this type def cluster, you do not need to modify the main part of your subVI. You only need to change the unbundle item when you add/remove new element of the cluster.
    Attachments:
    LV Ref.zip ‏18 KB

  • How can i open front panel of a vi and run it

    Hi
    I have a vi that i call multiple times from another vi, however i want it to open the front panel on some calls and not on others.  What is the best way to do this?
    I have come up with a way and was wondering if this method was okay or is there another method that might work better escepcially since i am eventually going to create an application out of it and hope that no problems pop up then
    Unititled 1 calls Untitled 2 where with one call it opens and runs Untitled 2 while with the other call it simply runs untitled 2.vi
    What I did was i changed untitled 2.vi window appearance to dialog but i deselected the show front panel when called, so by simply calling the subvi form untitled 1 it works.  Unititled 2 runs but does not open
    Now with another call i want to open and run untitled 2.vi so by looking the attached vi you can see what i have done
    Again if there is a better method that would make my vi's more efficient i would greatly appreciate it.
    Reza Sed
    Attachments:
    Untitled 1.vi ‏24 KB
    Untitled 2.vi ‏10 KB

    What you did, in theory, is the correct way to do it.  However, you should move the front panel open and close into Untitled2.vi and have a boolean input as to whether to show the front panel or not.  This way, your calling code is cleaner, and you don't have to reproduce the code everytime you want to call the subVI and show the panel.
    If you were to use Untitled2 in another project, then you woud have to go back and look how to implement the showing of the front panel in your other code.  If later, you were to decide you want that VI to be maximized, then you make one change in the VI, and not in every place you ever call it showing the front panel.

  • Q:How to trim a VI's front panel at runtime?

    The occupied front panel space can be obtained by calling
    "GetPanelImage" via an invoke node. The resulting cluster "bounds"
    describes the union of all front panel objects. The front panel can then
    be resized to fit these bounds. The content of the front panel can be
    repositioned by manipulating "FrontPanelWindow.Origin". This "...Origin"
    points with an _unknown_ _offset_ (which varies with the FP´s layout) to
    the upper left corner of the front panel content.
    How to exactly calculate the origin from other front panel values?
    Thanks,
    TC

    You can use a VI Server to position the front panel of your subVI. Look at the Ghost in the Machine.vi example that ships with LabView.
    To see where to position the subVI, you need to know the position of the calling VI or of something on it. You could use a property node of the Get Details button.
    1. On the front panel on Panel.vi, right-click on Get Details and select Create >> Property Node
    2. Right-click on the Property Node and select Properties >> Position >> Left.
    3. Point to the bottom edge of the property node and pull it down to add another element. That element should default to Top.
    That will give you the coordinates of the Get Details button. Now use a VI server (based on Ghost in the Machine.vi) to place the subVI front panel the desired distance
    from the Get Details button.

  • Show front panels of sub VIs when running a EXE (build application)

    I've created a exe file and it works fine. However, it only shows the front panel of main VI and I can not open sub VIs (it looks like they are all hidden). I know it can be done by creating a library file along with this exe file, but that's not what I want. I want to create a single exe file that shows several front panels, and that can be run with run time engine. Is there any way to show front panels of sub VIs by running a exe file?

    In the development mode, how are you displaying the front panels? Did you right click on the subVI and select SubVI Node Setup and choose 'Show Font Panel when called/Close afterwards if originallly closed' or did you choose the same options from VI Properties for each subVI. If the second, then the app builder will automatically retain the front panels of the subVI. If you chose the first option or if you are using VI Server to open a front panel, then the default setting in the app builder is to remove the front panels. You would then have to go the VI Setting tab in app builder and edit the settings.

  • How to show the front panel when launching VI with Call by reference node??

    Hello!
    I just wonder how I make the front panel visible during execution when I launch the VI with CALL BY REFERENCE NODE.
    Se example.
    Could u also show me how to change different properties (window size ..) of the front panel??? (launched with CALL BY REFERENCE NODE)
    Thank you!
    Attachments:
    test.vi ‏18 KB

    In VI Properties>>Window Apperance>>Customize you can check "Show front panel when called". This will open the front panel on each call. It doesn't matter how the call was initiated.
    You can set a lot of Front panel properties during runtime. Place a Property Node in the block diagram. Change the class from App to VI. Under properties select Front Panel window>>Panel bounds to set the position and size of the front panel.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

Maybe you are looking for

  • Itunes password won't work on laptop or Iphone

    I have used the same Apple Id and password since December last year with no problem. A few weeks ago I tried to login into the Itunes store on my windows laptop and was told my ID or password were wrong. I reset the password but same problem. Since t

  • Placed in an InDesign document other InDesign attached file on a specific page

    (inserted into another file indesign indesign on a specific page) Hey all ! I'm trying using Script: 1. in a document already open indesign: var myDoc = app.activeDocument; 2. place another file. indd  app.open(File("/c/myTestDocument.indd")); ---->

  • Xcelsius 2008 Dashboard thrugh NWBC

    Dear All We have the following environment.  1. SAP production Server - R3 Environment  (No BW,  No Open Doc) 2. We hae Crystal Report 2008 SP5 3. We have Xcelsius 2008 We developed couple of Dashboards using Xcelsius by directly connecting to R3 usi

  • Is it possible to have two itunes accounts? Ive changed my apple id and music is missing?

    I have changed my apple id to a different one due to so many mistakes on my part. Not knowing how to properly use an apple product...still learning and I believe some how my husbands email is synced with my apple id even though he has his owm id and

  • BR0301E SQL error -1017 at location db_connect-2 during DB13

    While executing the check database through DB13 following error is showing by this t-code 08.12.2009     08:00:30     Job started 08.12.2009     08:00:30     Step 001 started (program RSDBAJOB, variant &0000000000178, user ID 11001481) 08.12.2009