Same VI, different window appearance

I would like to use the same VI either as a stand alone function or as being called as a Sub-VI from a different application.
As a standalone, I have been using VI properties, window appearance = Top Level.
As a sub,  I have been using VI properties, window appearance = Dialog.
But then I have two different VIs.
I am sure this is easy for someone who knows what they are doing; however, for me...
I am using LabView 7.1.1
Thanks in advance

Hi,
I can't find an easy property that sets a VIs Appearance programmatically.  SO, you will have to set all the elements (top level vs. dialog) one by one.  It shouldn't be that bad though.
I made you a quick mock up VI that tells you if the VI is running top level or as a sub VI (VI class porperty >> Execution >> Execution State).  Then wire that into a case sturucture, then right click the case structure and select Add Case For Every Value.  Outside the case structure put down a property node, and find each propety that you wnat to change.  For the mock up, I used Show Menu Bar, and the Show scroll Bar properties.  If top level, both are true, otherwise they are false.
Run the VI (called sub VI) top level and you will see one behavior.  Drop it down as a sub VI, and run the top level VI, and notice the other behavior.
Now you just need to find the properties you want to set (unless there is an easier way to go from top level to dialog that I can't remember...).
let me know if you have any questions.
J
Attachments:
sub VI.vi ‏24 KB

Similar Messages

  • Same topic, different windows

    I've recently started to create a context based help in
    Robohelp (combined with a regular, TOC-help). I'm looking for a
    functionality where the same topic can be opened in different
    windows (main, second etc...), depending on where the user is when
    he or she presses the F1 key. Does anyone know if it's possible to
    do this?
    I would also like to have the opportunity to access the very
    same text through the TOC and by pressing the F1 key (and getting a
    popup window).

    Hi Catte and welcome to our little community
    This is definitely possible. However, some of it will depend
    on your interaction with your developers. They can code the calls
    so they end up in the additional windows you create.
    Basic steps are to create the content. Create the additional
    window. Then ask the developer to map the Context Sensitive calls
    so they open the desired topic in the special window.
    Cheers... Rick :)

  • Hi. I want to build a GUI based on several windows appearing following a certain sequence. How can i create different windows in the same VI? Also, i want the front panel of a subvi to appear when i run, how can i enable this.Thanks

    Having several windows appear ...

    Hi,
    You can't create several windows for one VI. But you can use the "Tab Control" and change tab's in the program. Or you can use sub VI's and show ther front panels.
    To show the front panel of a sub VI you have to open the VI you want to show and select "File->VI Properties". In the VI Properties window select Category "Window Appearance" and click Customize...
    In the Customize Window Appearence window, here you can set a number of attributes for how the window will appear, select "Show front panel when called" and "Close afterwards if originally closed" click OK and OK and save the VI, done.
    Now the VI front panel will appear then you use it as a sub VI.
    /Thomas

  • Same Apple ID for iTunes, but different Windows accounts...

    My wife and I use the same Apple ID for iTunes, but we have different Windows 7 accounts on the same computer. I've uploaded a pile of CDs. ITunes Match seems to match them ok, but she can't see them from iTunes on her account. We could upload the CDs twice, once for each account, but that's a wicked waste of time. Is there a workaround for this?

    iTunes Match is associated with only one Apple ID and cannot be shared across Apple IDs. For your wife to make use of iTunes Match and see the music in the cloud she must login to your Apple ID on the iTunes Store and she will have to stay logged in. This may cause difficulty when updating apps purchased with her Apple ID.
    Also keep in mind that a computer can only be associated with one Apple ID for iTunes Match, automatic downloads and re-downloading of content once every 90 days: http://support.apple.com/kb/HT4627.

  • How can I make different windows of the same application I have open remain on their respective desktops/spaces after reboot?

    Hi all,
    I use the same applications for work, entertainment and other personal activities, so it's impossible to simply assign different apps to different desktops/spaces. Thus, I have open windows of the same programs (Pages, TextEdit, Preview) arranged on several desktops. If I reboot my laptop, the windows are just crammed on Desktop 1. Can something be done about it?

    Barney,
    many thanks for your efforts and your time (preparing and posting the screenshot, answering to this question,...).
    Unfortunately, moving the focus to the next window only works with windows on the same desktop.
    btw, using a german keyboard layout and german language settings the shortcut is "cmd+<".
    I can switch with this shortcut between different windows of my Safari which reside on the same desktop, but I cannot swith between different safari windows distributed over several desktops.
    Thanks,
    equi    

  • How can I make "Open Link in New Tab" open the new tab in the same window, not a different window?

    When I Ctrl-click a link and choose "Open Link in New Tab" it chooses to open the new tab in a different window (one that's already open) rather than opening the new tab in the same window. Even though the other window is minimized, it automatically gets restored and placed on top of the window I was in. This interferes with my context, forcing me to minimize the window again to get back to the one I was in before. I want the new tab to open in the same window, so I can still see the tab I was in. Some links seem to have the "Open Link in New Tab" behavior automatically, so I never know when I'm going to get thrown out of my current window. Very annoying.

    If you have a mouse with a scroll button then try to middle click the link to open the link in a new tab.
    It is also possible that the links use onclick JavaScript instead of a href to specify the action.
    See also:
    * http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    * http://kb.mozillazine.org/browser.link.open_newwindow

  • How do i make a tab active and make it stay that way always. If i put a website in my home page in order for the tabs to open automatically in that same homepage , this setting is not working, every time I open a tab , a white window appears .

    How do i make a tab active and make it stay that way always. If i put a website in my home page in order for the tabs to open automatically in that same homepage , this setting is not working, every time I open a tab , the window appears white .

    By default Firefox opens a blank page for a new Tab, there is no setting to change that action without installing an add-on.
    New Tab Homepage extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/777

  • Any Function in a PDF form opens a different window of the same form

    Hello,
    I have a customer who uses forms pulled from our company's SharePoint site. Within the form there is an "Open" button that she clicks on which opens a window within Adobe Pro to the location on our SharePoint site that stores her completed PDF forms. In SharePoint, there is a "copy" option which obviously creates a copy of the selected form into the storage location. The issue is, that when she clicks on copy, another window to the same storage location opens, this time in her web browser. In the past she would click on "copy" and, from within Adobe Pro, the page would simply update and show the copy of the document.
    Additionally, when she clicks on any function or button from within the document a new version of the same document reopens in a different window. By the time she's completed working on a form she has roughly 6 or 7 windows open.
    Any help would be appreciated.

    I forgot to mention that she is running Adobe Acrobat Pro 9.0 on a Windows 7 64Bit machine.

  • Why am I getting different results for the same resolution but different Windows boxes, Win 7 and XP

    I am running an .exe on two different windows boxes, one in Win 7 and one on XP.  I set both for resolution 1024 x 768.
    On Win 7 (laptop and old Dell desktop) I have a great looking app.  On the WIn XP boxes all the fonts to large.  THis doesn't make sense to me as all the PC's have the same resolution.
    Has anyone run across this before?
    Mark Ramsdale
    Solved!
    Go to Solution.

    The system fonts for XP and Vista/Win7 are different.
    See
    http://forums.ni.com/t5/LabVIEW/Elements-have-moved-when-opening-vi-with-f3-patch/m-p/1054817
    http://forums.ni.com/t5/LabVIEW/What-can-affect-the-size-of-a-front-panel-object-between/m-p/1058607...
    http://forums.ni.com/t5/LabVIEW/Font-size-on-Windows-7-with-LabVIEW-2009/m-p/1055114/highlight/true#...
    and several other similar threads.

  • Unable to burn DVDs on iMac. Folders dragged to DVD window appear as documents. DVDs from same package burned OK last year. Using Lion. CDs burn OK.

    Unable to burn DVDs on 2009 iMac ( Lion ). Folders and any files dragged to DVD window appear as blank documents.
    Burned DVDs from same package ( Memorex ) last year OK. CDs burn OK. DVDs are several years old, if that matters.

    The music is a tune that was purchased/downloaded from the iTune store. The slide shows (five of them) consist of digital photos (jpg) that I have taken. The interesting thing is that I also have an eMac (about three years old) that I have created the same iDVD project (identical music & identical slide shows). I have been able to burn a DVD disk of this project on my eMac WITHOUT A PROBLEM. The thing I do not like about the eMac is that I purchased family pack of iLife 6 last year (because I liked some of the new Themes). However, when I installed it on my eMac, for some reason it takes about 5-10 minutes to get iDVD 6 "up and running." Once it has loaded the Themes, however, I am "good to go." I've had this computer into the "Genius Bar" at the local area Apple Store TWICE and they are unable to get it to work more efficiently. The even reinstalled the entire operating system to no avail. So, the solution is to launch iDVD 6 on my eMac and then go do something else for 5-10 minutes. But at least I am able to burn my iDVD projects to DVDs.
    With my iMac, iDVD launches quickly but is useless since I am unable to burn my iDVD slide show projects to DVD.
    So, as a result, I am pretty much ready to "call it a day" with the iMac and will go back to my eMac.
    Thanks for your time.
    SCC Jeff

  • HT204402 When trying to update iMovie and iPhoto a window appears asking me to log into my account and after logging in I try to update my apps but the same thing happens every time

    I try to update imovie but a window appears asking me to log into an account, when i do so and try again to download the update the same window returns
    How can I update my apps?

    Welcome to the Apple Support Communities
    See > http://support.apple.com/kb/TS4236
    If it doesn't work, go to App Store > Featured > Account > Show hidden purchases, and show iMovie

  • How can I have two different windows up on one screen at the same time?

    How can I have to different windows open on my screen at one time? Kind of like a split or shared screen.

    If you want this split screen thingy for a single app, do like captfred suggests or see if the app itself supports some sort of splitting, like MS Excel.
    If you want to do this system-wide, maybe you can get what you want by activating and using Spaces: http://support.apple.com/kb/PH4313

  • How can i run multiple instances of Photoshop EXE at the same time on windows 7

    Alright. You may ask why do you need multiple ?
    Assume that i have 10000 PSD files in 10 different folders
    I have a script that just save as them as PNG
    And these files are each 3000x3000 px
    My computer has 8 cores and 1 photoshop exe is only using 1 cpu core
    Also i have SSD raid system it has 750 mb read write per second
    So right now i am wasting my time with running only 1 photoshop exe instead of at least 4

    I'm not aware of a way to run multiple instances or different versions of photoshop at the same time on windows.
    Assuming of course they are all installed on the same operating system.
    On mac versions you can running two different versions of photoshop at the same time, but i don't think that's possible on windows where it
    appears that only one version of photoshop can run at a time.

  • Hyperlink for an Object need to be open in a different window

    Hi Guyz,
      I have a Crystal Report which has few sub reports. In one of the Sub Report I have created a Hyperlink for an object using the formula Editor. This report is viewed from a different Portal with the help of ASP Pages. For some reason when I run the report and click on the Hyperlink, it is opening in the same window.
    I want the report to be opened in a different window. Following is the formula I am using as a Hyperlink in formula Editor.
    imgAddress = "http://<server>:8080/index.jsp?action=filter&username=anonymous&password=1&"
    imgAddress = imgAddress + "&drawer=Invoices&folder="  + "&tab=" + trim({stp_AC290;1.INVOICE})
    In the ASP page i am using a DHTML Viewer. Sometimes when I am using ActiveXviewer it is opening as expected.
    crystal Reports version: Crystal Reports 2008
    BO - BOXI 3.1
    Plz help me out!!

    same as your other post:
    moved to .NET Developer forum.
    It appears you are using ASP, it's no longer supported in CR 2008 but can you clarify which SDK you are using?
    Thank you
    Don

  • AP Divs (layers) move when I open my website on different window size.

    First of all, this is my first time trying to make a website.
    I'm doing an assignment for my class and i found it difficult for me to fix. I have spend 4-5 hours researching online but nothing work for me.
    Well,the problem is the AP Divs (layers) move when I open my website on different window size(iphone,ipad).
    The website only look right on 1366 x 786 resolution. Please take a look at my 2 pics below:
    And I don't know how to make the website to fit on the iphone and ipad so that I don't have to scroll down or sroll to the right to view the whole thing.
    Please someone help me!
    The code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width" />
    <title>Boston Green Community College</title>
    <style type="text/css">
    <!--
    body {
        background-color: #3f7244;
        padding: 0;
        color: #8d0101;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 0;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 100%;
        line-height: 1.4;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
        padding: 0;
        margin: 0;
    h1, h2, h3, h4, h5, h6, p {
        margin-top: 0;     /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
        padding-right: 15px;
        padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
        border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
        color: #003702;
        text-decoration: NONE; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
        color: #028b66;
        text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
        text-decoration: none;
    /* ~~ this fixed width container surrounds the other divs ~~ */
    .container {
        width: 960px;
        background-color: #FFF;
        margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
    /* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
    .header {
        background-color: #ADB96E;
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
        padding: 0px 0;
    /* ~~ The footer ~~ */
    .footer {
        padding: 10px 0;
        background-color: #CCC49F;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
        float: right;
        margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
        float: left;
        margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
        clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    #apDiv1 {
        position: absolute;
        width: 251px;
        height: 101px;
        z-index: 1;
        left: 871px;
        top: 10px;
    #apDiv2 {
        position: absolute;
        width: 228px;
        height: 60px;
        z-index: 2;
        left: 9px;
        top: 1397px;
    #apDiv3 {
        position: absolute;
        width: 273px;
        height: 198px;
        z-index: 2;
        left: 851px;
        top: 383px;
    #apDiv4 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 3;
        left: 242px;
        top: 120px;
    #apDiv5 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 4;
        left: 902px;
        top: 178px;
    #apDiv6 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 4;
        left: 857px;
        top: 171px;
    #apDiv7 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 4;
        left: 455px;
        top: 547px;
    #apDiv8 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 4;
        left: 853px;
        top: 113px;
    #apDiv9 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 5;
        left: 853px;
        top: 246px;
    #apDiv10 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 6;
        left: 513px;
        top: 121px;
    #apDiv11 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 6;
        left: 511px;
        top: 123px;
    -->
    </style></head>
    <body>
    <div class="container">
      <div class="header"><a href="#"><img src="Pictures/34d-1.png" alt="Insert Logo Here" name="Insert_logo" width="619" height="90" id="Insert_logo" style="background-color: #C6D580; display:block;" />
        <div id="apDiv11"><font color="#f4f1f1">
    <script type="text/javascript">
    var d=new Date()
    var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
    var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
    document.write(weekday[d.getDay()] + " ")
    document.write(d.getDate() + ". ")
    document.write(monthname[d.getMonth()] + " ")
    document.write(d.getFullYear())
    </script></font>
    </div>
        <div id="apDiv1">
      <!-- Use of this code assumes agreement with the Google Custom Search Terms of Service. -->
      <!-- The terms of service are available at http://www.google.com/cse/docs/tos.html -->
      <form name="cse" id="searchbox_demo" action="http://www.google.com/cse">
      <input type="hidden" name="cref" value="" />
      <input type="hidden" name="ie" value="utf-8" />
      <input type="hidden" name="hl" value="" />
      <input name="q" type="text" size="40" />
      <input type="submit" name="sa" value="Search" />
    </form>
    <script type="text/javascript" src="http://www.google.com/cse/tools/onthefly?form=searchbox_demo&lang="></script>
                                  </div>
                                    </div>
      <div class="content">
        <center><img src="Pictures/DFDF11.png" width="959" height="556" longdesc="Pictures/junior-2-960x.jpg" /></h1></center>
      <!-- end .content --></div>
      <div class="footer">
         <img src="Pictures/RRR1.png" width="202" height="70" />
         <div id="apDiv3">
           <p> </p>
           <p><a href="Job.html">Jobs</a>         </p>
           <p><a href="Art Gallery.html">Art Gallery</a>         </p>
           <p><a href="Contact us.html">Contact Us </a></p>
        </div>
        <div id="apDiv4"><center>
    <P>About</P>
    <a href="visiting.html">visiting</a> | <a href="Map.html">maps </a>| <P><a href="About.html">about BGCC</a></P>
    <P>Academic</P>
    <P><a href="Courses.html">schools+courses</a></P>
    <P>Admissions  </P>
    <P><a href="cost & aid basics.html">cost & aid basics </a>| <a href="Apply now.html">join BGCC</a>
    <P>Studen Life</P>
    <P><a href="Athletics.html">Athletics</a></P>
    <P>Greenforce Education</P>
    <P><a href="Career.html">career center</a></P>
    </center> </div>
         <p><font size="2" color="black">BGCC | 99 GreenField | Boston, MA 02199 |617-0101-1000| TTY 617-0202-9944|</font></p>
        <div id="apDiv9"><a href="Donate.html" target="_blank"><a href="Donate.html"><img src="Pictures/three-green-logo.jpg" width="218" height="99" longdesc="Pictures/three-green-logo.jpg" /></div>
        <div id="apDiv8"><a href="Apply now.html" target="_blank"><a href="Apply now.html">
    <img border="0" src="Pictures/cxgvxdvxgd.jpg" alt="Apply Now" width="218" height="99"></a></div>
      <!-- end .footer --></div>
      <!-- end .container --></div>
    </body>
    </html>

    That's what APDivs do.  This is the single most common problem new people have with web page layouts.  DO NOT use positioning.  You don't need it.  Start over.  Learn to use CSS floats, margins and padding to align elements. 
    Below is a basic HTML5 Layout.  View source in browser to see the code.
    http://www.alt-web.com/sandbox/HTML5-BasicLayout.html
    Nancy O.

Maybe you are looking for