Keeping Front Panel Position the same at runtime

There has been some threads on here that say to set the Pane.Origin to 0,0 and that will set your front panel position to 0,0 every time you run.  I can't seem to get this to work.  I created a property node under GObject.Origin.  Then I tied a constant to the input and a constant to the reference.  I keep getting an error about the reference.  Any advise?  Maybe another way to do it?  I'm probably just doing something wrong.
What I am trying to accomplish is when I am developing on the front panel and moving things around, I want the front panel to always run from the same position when I go to runtime.  I have tons of buttons that border the edge of the bottom of the screen and so they get covered up if I don't set the front panel back perfectly.  I am not using the scroll bars and the title menu is completely gone.  All that the user sees is the front panel that I have created.
Thanks. 
Solved!
Go to Solution.

I believe you need to obtain a reference to the pane starting from a "this VI" and working your way down the hierarchy, like this:
This sets the origin on the first pane.  If you have more, you can put the last property node in an array and remove the index array node.
(edit: note that the second property on the VI PN is a typo)
This is a common thing to want to do at run time, but some of the other things you mention are a little suspect.  Why do you have "tons" of buttons off-edge?  There are a number of ways the user could accidentally see those despite your efforts to keep them hidden.  What function do they serve if they are GUI elements but excluded from the GUI? 
Message Edited by blawson on 04-21-2010 02:02 PM
-Barrett
CLD

Similar Messages

  • Using more than one front panel at the same time

    I have a main program where I can call sub vi’s and then the sub vi’s front panel opens.
    I want to use/see/operate more than one front panel at the same time. How I can do it?
    For example when I close the main program it won’t close before I close all the sub vi’s front panels.
    I use event case to call these sub vi’s. Can I close all vi's using one button?

    I wouldn't use subVIs for display, at least not if you plan to have them open all the time. Instead, I would suggest that you have one loop with a FP VI which will talk to the FP all the time and will pass to the data to the other loops through a variable or a functional global.
    Then, you can use a tab control to organize your display. If there is no specific reason for not having the graphs in the same VI, you can use a tab control to organize it. If you can't, you can also use subpanels to display the VIs and put several subpanels in your VI.
    If you still want to display the VIs seperately, you can control their positions and sizes through their proerty nodes, but I don't think there's any reason for this.
    To learn more, I suggest you read the LabVIEW style guide. I think it has some tips about application design.
    Try to take over the world!

  • How to active more than one front panel in the same application ?

    Hello,
    I want to active several front panels in the same application. I am a recent labview's user and it's difficult to solve this question.
    Thanks for your help.
    Regards

    But, each VI, including each subVI has a front panel. If you want several front panels, that implies using several VIs. The top level VI will call the appropriate subVI. Each subVI that you need as a UI can be set to 'Show front panel when called' and 'close afterwards if originally closed'. These settings can be accessed through popping up on the VI's icon and selecting VI Properties..., then selecting Window Appearance, then selecting the customize button or the dialog radio button.
    Hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How to Save & reload front panel position

    I would like to save the front panel position into an ini file or registry, so that the next time the program is used, it comes up where the user left it.
    With the Invode Method: Front Panel.Run-Time postition.Get positon  
    I can get all the position data I want:
    left-top
    state
    monitor
    However...  How do I set the same information at startup?   
    There's no  Front Panel.Run-Time Position.Set position. as far as I can see...
    To set position, state and monitor values, it seems I need to first call  FP.Open for the state, then FP.Run-Time Position.Centered to select the monitor, and then FP.Run-Time Position.Custom to set the position....   
    That looks weird and complicated...    Am I missing something here?   Is there a more elegant approach?

    NI explains the difference between Property nodes and Invoke nodes as this.
    Property nodes access the properties of an object and allow you to read/write those properties.
    Invoke nodes perform actions on an application or VI allowing you to get and sometimes set attributes of those actions.
    Sometimes there is some overlap between Properties and Methods as you noticed with the "Get Position" method and the "Panel.Position" property. But most of the Methods do not have a similar Property. For instance, there is a Method you can use on a front panel item called "Get Image". This will return image data about the item that will let you save the items current visual appearance to a graphics file. (.bmp, .png, .jpg) There is no equivalent property to do this.
    So it really depends on what you are trying to do as to which one you end up using.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • 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.

  • Loading in a second Actions panel with the same functionality as the first, but independent from it

    The actions panel is perfect at what it does; however, if you have a few action sets and, in order to eliminate scrolling, you need to expand them into a double row of buttons, it quickly becomes difficult to maintain. As soon as you delete an action or add an action to it, it disorders the others and you have to reorganize again, which becomes a vicious cycle. I like to keep things organised and neat with all that I do and pretty much the only way to have this feature is to expand it on the back end of the software or, if possible, create a script that loads a second Actions panel with the same functionality as the first but completely independent from it. I assume that the SDK will not allow us to expand on the software in this particular way, as Photoshop is not open source; however, maybe this suggestion will be taken into account for future updates or versions since I have yet to find a suitable way to do this.
    Thank you in advance.
    Kind regards

    That would depend on the links on the page. Some pages have links that refer to different areas on the same page. If you want to force a link to open in a new tab, you can middle-click it.

  • Front Panel Position Confusion

    In my program I have multiple wavefrom charts; I would like to call a reentrant subvi, ie small dialog window, that "pops up" over each chart, see attached picture.
    I would like to dynamically set the position of the dialog window to match that of the waveform chart. However, I am having great difficulty in making any sense of the position, front panel bounds, chart position property nodes. I thought if I set the front panel position in my dialog window to the plot position, the top left hand corners would align. However, that is not working for me.
    Any help would be appreciated.
    Cheers,
    Andrew
    Solved!
    Go to Solution.
    Attachments:
    Snap1.png ‏23 KB

    I'm attaching 2 VIs that I hope will help, if I've understood what you want.  It's extremely sloppy and incomplete but the idea is right.  You click on the chart and some text pops up at the top left corner of the chart, regardless of where the chart window is on the screen.
    The position of the chart within the panel will not change when the window moves, because the position of the chart is relative to the window that contains it.  So, you can use the chart position as an offset from the window position to find the position of the chart in real coordinates, which you then use as the position of your pop-up.
    Attachments:
    Text Pop-up.vi ‏10 KB
    Chart with Pop-up.vi ‏22 KB

  • Lock front panel until the event case for this event completes

    A Dynamic Event is a filtered event? Is this why "Lock front panel until the event case for this event completes" is not shown on Edit Event window dialog? I use Dynamic Event so I can subvi the event structure.
    I need stop my app from locking the FP whenever the user double clicks on the numerical array value (<-- the FP freezes the mouse and renders it useless) and stops the value from ever being changed. This event is registered for Value Change (not mouse up or down) and I get a locked mouse. As yet in the UI, no value changed occurs but I get a locked mouse. A LV bug?
    Trying to KISS, I can see this fixing this by moving ONLY the value change event to the top level VI instead of a dynamic registered event in a subVI. This will give me the option to NOT "Lock front panel until the event case for this event completes" .
    Solved!
    Go to Solution.

    richjoh wrote:
    Thx, Ben that fixed the problem when I unchecked "Lock panel...".
    So it appears LV locks the panel during runtime once the Dynamic Reg Events is on BD and it doesn't matter if your case to handle the Reg Events is created or NOT... interesting. That's why my mouse persisted to "freeze up" although I deleted the case for my FP array.
    Its situation like what you described that has given me many insights into how LV actually works. In one of my bbuggy VI's I found that a class wire can run a million miles through multiple sub-VI queues etc but the data itself is only touched when it has to be touched. in my case it was a crash while trying to write bogus class dat to a TDMS file.
    I am glad you are back on course.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • I am trying to create an executable vi that will call out another vi and show its front panel in the executable​. When I try this I recieve this error message "top level vi (my main vi) was stopped at unknown on the block diagram of (my sub vi)

    I am trying to create an executable vi that will call out another vi and show its front panel in the executable.  When I try this I recieve this error message "top level vi (my main vi) was stopped at unknown on the block diagram of (my sub vi)

    Well the most common way is to enclude the vi's in the build spec either directly in the dependancies that the App builder automatically generates OR by declaring them in the build spec as "additional enclusions" (like you must do for dynamic vi calls in your app.
    I have heard rummors about My.app Stuff.vi in a nugget Intaris posted- and I've wanted to dig deaper into Intaris' claims- but have not tried it myself.
    If you go down the stuff.vi route Keep us curious guys posted
    Jeff

  • We had one family apple id. I want to keep all devices on the same apple id for itunes but separate ones for everything else.  How do I change the others now.  We have 3 iphones and an ipad.

    We had one family apple id.  I want to keep all devices on the same apple id for itunes but separate for everything else on the cloud. How can I change the other apple ids now? We have 3 iphones and an ipad.

    Hi, thank you for this post.  I hope you might be able to help me too? 
    I am relatively new to apple (have an iPad) and having been a PC user for years I was pleasantly surprised with the apple experience and am now trying to work out the best set up for me, my husband and young son as I am buying them both of them apple products this Christmas.  New Mac laptop/ ipad for hubby and then an ipod touch for my son oh and a new mac laptop for me. We are also thinking of moving from Blackberries to iPhones. Yes we seem to be hooked! but i am unsure about the home family set up and how to replace my PC network that I run off an 8TB server.
    In reading the forums I keep seeing people talk about problems they have with two apple IDs and trying to merge them. I have also heard about a family ID allowing us to share apps legally.  I am really nervous of setting us up wrong and then having problems later and hence i am now looking for some advice on how to share as much as we can legally but also make usage practical and not invading each others privacy. thoughts so far:
    Music - I think we are happy to share the same music and access using one ID (we currently don't buy much music from apple but have lots of CDs we share).
    Photos - It would be nice to share photos - as long as my son or husband cannot accidentally delete photos of mine (which is my biggest concern). I currently load all camera photos onto my 8TB storage box as the network owner and my husband has full access to copy any photo to his laptop but can never delete the original copies by accident.
    Apps - If possible i would like us to share these but they are cheap enough these days to separate if really needed. Would be good to share licence for pages etc though
    cloud, contacts, facetime, email -  this is what is making me consider separate IDs or learning how to have multiple users in one apple ID - I do not want to have to share synced contacts with my husband. I have near 300 contacts now through work etc and he will not want them plus i will not want his or him being able to delete mine by mistake. and then for email and facetime, well I want to give him his privacy so I do not receive his messages etc. especially now that we are considering switching to iPhones
    Then last but not least, i don't know the best solution for my son. he is only 7 years old so even though I don't want to pay for things again I don't want him being able to download "just any" app from the purchased icon in Appstore. Also, is there a child friendly setting to prevent him from viewing inappropriate content on the internet?
    Appreciate I have asked a lot of questions here but I am looking for any genuine advice out there. Thank you or other potential advisers in advance.

  • How can I display the front panel of the dinamically loaded VI on the cliente computer, the VI dinamically loaded contains files, I want to see the files that the server machine has, in the client machine

    I can successfully view and control a VI remotly. However, the remote VI dinamically loads another VI, this VI loaded dinamically is a VI that allows open others VIs, I want to see the files that contains the server machine, in the client machine, but the front panel of the dinamic VI appears only on the server and not on the client, How can I display the fron panel with the files of the server machine of the dinamically loaded VI on the client computer?
    Attachments:
    micliente.llb ‏183 KB
    miservidor.llb ‏186 KB
    rdsubvis.llb ‏214 KB

    I down loaded your files but could use some instructions on what needs run.
    It seems that you are so close yet so far. You need to get the data on the server machine over to the client. I generally do this by doing a call by reference (on the client machine) of a VI that is served by the server. THe VI that executes on the server should pass the data you want to diplay via one of its output terminals. You can simply wire from this terminal (back on the client again) to an indicator of your choosing.
    Now theorectically, I do not think that there is anything that prevents use from getting the control refnum of the actual indicator (on the server) of the indicator that has the data, and read its "Value" using a property node. I have never tried this idea but it seems t
    hat all of the parts are there. You will need to know the name of the VI that holds the data as well as the indicator's name. You will also have to serve all VI's. This is not a good idea.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Can multiple PCs access one remote panel at the same time?

    I've written a program in labview 7.1 to monitor/control a labview application running in the test cell through Remote Panel. I and my coworker can remotely monitor and/or control this labview application individually. But if my coworker has the remote panel displayed on his PC and I try to get the remote panel on my PC, I get a labview error (63) as below:
    "LabVIEW:  Serial port receive buffer overflow.
    LabVIEW:  The network connection was refused by the server."
    My question is: Can multiple PCs access one remote panel at the same time?
    Thanks in advance!
    Y

    Sorry I wasn't clear. The remote panel license is separate from the number of LabVIEW development licenses. Pricing information on remote panel licenses can be found here.

  • Logic 10.0.07 keeps stopping recording at the same time every time

    Logic 10.0.07 keeps stopping recording at the same time every time 3.14!
    How can i get it to extend on recording time?
    Model Name: Mac Pro
      Model Identifier: MacPro6,1
      Processor Name: 6-Core Intel Xeon E5
      Processor Speed: 3.5 GHz
      Number of Processors: 1
      Total Number of Cores: 6
      L2 Cache (per Core): 256 KB
      L3 Cache: 12 MB
      Memory: 32 GB
      L3 Cache: 12 MB
      Memory: 32 GB
    Model Name:
      L3 Cache: 12 MB
      Memory: 32 GB
    Model Name: Mac Pro
      Model Identifier: Mac
      L2 Cache (per Core): 25
    Model Name: Mac Pro
      Model Identifier: MacPro
      L3 Cache: 12 MB
      Memory: 32
      L3 Cache: 12 MB
      Memory: 32 GB

    Do you have auto drop enabled? Look for a red bar at the top where the green cycle bar is. It will punch you out at the end of the red bar.

  • HT1438 How long does it take to repair a broken front panel of the iPhone 5 at the apple store?

    How long does it take to repair a broken front panel of the iPhone 5 at the apple store?

    apple doesnt fix them they switch them out

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

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

    Try the Parser VIs (also known as LV Mathematics VIs, or simply GMath VIs) located under the Analyze>>Mathematics palette (not in the Base package). You might want to start with the "Eval Formual Node.vi" located in the Analyze>>Mathematics>>Formula palette. There are many differences between these G-based, dynamic formula VIs and the LabVIEW formula node, but these VIs often prove quite useful when your formula changes on the fly. For more detail on the differences, see the LabVIEW Help file (Cntrl-Shift-? from within LabVIEW) under the topic "Mathematics VIs, parser differences with Formula Node".

Maybe you are looking for

  • How to upload the data to 'abzu' transaction using bapi

    Hi Experts , I need to upload the data to the (asset write up ) transaction 'abzu' and please help me inthis regard i found some bapi's like below BAPI_FIXEDASSET_CHANGE Changes an Asset BAPI_FIXEDASSET_CREATE Creates an Asset BAPI_FIXEDASSET_CREATE1

  • Cannot find SOA Suite 11.1.1.2

    I download SOA suite 11.1.1.2 (ofm_soa_generic_11.1.1.2.0_disk1_1of1.zip), weblogic 10.3.2, and RCU 11.1.1.2. Then, I install them. However during SOA configuration, in the step of Generate a domain configured automatically to support the following p

  • Nokia e72 Messaging problem stuck in a loop

    I've been stuck for over 2 hours trying to get my e72 to setup messgeging but when I go through the wizard and enter in my email adress Gmail and Yahoo after password I get put back to the setup process, and I tried adding a pop it took it but then i

  • What is taking up iCloud space?

    I know this has been asked many times and I've read as much as I can on iCloud space, but I still can't figure out what's taking up space. My iPhione has plenty of space. Capacity of 57GB with 30GB available. iCloud is showing a total storage of 25GB

  • Help to undersand Leopard Server......

    Hi I'm trying to setup a leopard server on my G5 dual core 2.0 GHZ but I have some question to resolve. When I add a server in Server admin what I add? A phisical or a logical interface. If I have a domain and i have already a serve.local can I add t