Opening subvi so the main vi is active

In the main program during execution when appropriate button is clicked subvi with a picture is called (chosen by case structure). The rest of the program (front panel) is blocked until the subvi window is closed - how can I open the subvi with a picture so it remains opened and the program goes further?
greetings,
Michal
Solved!
Go to Solution.

You need a nonblocking dialog box. As RavensFan says the VI needs to be launched dynamically. Check the link in my signature, I wrote post about one possible implementation. What I show is just a simple "Are you sure..." kind of dialog, but it shows the basic process.
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

Similar Messages

  • How to create a dialog window with no button that opens along with the main window?

    When the main window is open, the dialog window opens up immediately and can be closed by key press. At other times, when the next step, ie: decision, comes to, the another dialog window pops up again and is again closed by key press. Does anyone know how to do? Use the sub-Vi? notification method? occurrence method?
    And another thing: how to create a reusable dialog window with no button so that different messages can be sent to it and it can closed by key press. And how to pass the string to the title of the dialog window programmatically?

    For your functionality (If I understand it right), nothing needs to be in the event structure. Pressing any key just triggers the event, thus finishing the VI (there is no while loop).
    Could you tell me what you mean my "it won't run properly"? Make sure that the front panel of the subVI is closed before starting the main VI. Remember that the subVI is set to "open when called" and "close afterwards if originally closed". So, if you had the panel open already, it won't of course close when finished!
    (Actually, the problems is worse when you have the subVI panel open when starting the main VI. you get a catch22 and labVIEW locks up because (1) the subVI is set to dialog and grabs all attention but (2) it has not been
    called, thus the event cannot be triggered. So don't do that!!!! As a quick workaround, add the modification shown in the attached image to ensure the panel of the subVI is closed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    CloseNoButtonDialog.gif ‏3 KB

  • I open iWeb but the main window doesn't open/appear on screen. The little windows like the inspector and font windows appear. Can anyone help?

    I open iWeb but the main window doesn't open/appear on screen. The little windows like the inspector and font windows appear. Can anyone help?

    Try the following:
    1 - delete the iWeb preference file, com.apple.iWeb.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iWeb's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iWeb folder (Snow Leopard and Earlier).
    3 - launch iWeb and try again.
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • Stream data from a subvi to the main vi - path refnum

    hello everyone
    sorry my english
    http://forums.ni.com/t5/LabVIEW/stream-data-from-a-subvi-to-the-main-vi/m-p/2205150/highlight/true#M...
    - refnum boolean worked
    - refnum graph worked
    - refnum numeric worked
    how to create a  path refnum? stream data from a subvi to the main vi
    where do I start?
    thank
    Solved!
    Go to Solution.

    Bom Dia Saille,
    Eu acredito que o que você tenha hoje seja isso aqui (Desenho bem simplificado):
    Hoje o que você tem é o Aplicativo do Medidor + USB Driver controlando o seu medidor. Basicamente, sua aplciação está dividida em três camadas:
    Aplicação - Onde estão as funcionalidades principais do programa (interface com o usuário, apresentação de dados, geração de arquivos, etc.)
    VISA - Uma arquitetura de Software para controle de instrumentos. Basicamente, ele se comunica com o Driver USB para poder enviar e receber pacotes de dados através do barramento USB.
    Device Driver - Intruções de SW de baixo nível para controlar um periférico através de um barramento.
    No desenho, eu aponto duas camadas onde você pode tentar atuar para automatizar suas medições:
    Aplicação - Você pode usar o VI Server para controlar o Aplicativo do Medidor (Se este aplicativo tiver sido desenvolvido em LabVIEW, o que eu suponho ser verdade). No entanto é necessário saber se o desenvolvedor do produto permitiu isso (Veja Using VI Server to Pass Data Between a VI and a LabVIEW Executable). Outra alternativa é conversar com o fabricante para ver se ele desenvolveu alguma API (Application Programming Interface) para que você consiga controlar o instrumento diretamente.
    VISA - O LabVIEW Fornece uma API chamada NI-VISA para poder enviar e receber informações através de diversos barramentos (Veja Serial Instrument Control Tutorial)
    É possível acessar o Driver diretamente também, mas eu não recomendo. O resultado não compensa o esfroço!
    Espero ter esclarecido suas dúvidas e espero que você tenha sucesso na sua aplicação!!
    Atenciosamente.
    Felipe Flores
    Engenharia de Aplicações
    National Instruments Brasil

  • Show graph that is created in a subVI in the main vi

    Hi Everyone
    I can not, show graph that is created in a subVI in the main vi.
    help!
    Thank you
    Solved!
    Go to Solution.
    Attachments:
    Sub VI.jpg ‏58 KB

    Thank you very much
    Where am I going wrong?
    Is this possible?
    http://forums.ni.com/t5/LabVIEW/show-graph-that-is-created-in-a-subvi/td-p/672249 - solution
    Thank you again, and sorry my english
    Attachments:
    Sub VI.jpg ‏237 KB
    Main VI.jpg ‏177 KB

  • I recently downloaded 2 movies in iTunes on my windows PC and movies will not play, they will open up to the main menu, mouse overs work as well as extra features.  However the main movies will not let you play.

    I recently downloaded 2 movies in iTunes on my windows PC and movies will not play, they will open up to the main menu, mouse overs work as well as extra features.  However the main movies will not let you play. On mouse over in itunes the 'play' buttion is not enabled, yet is however enabled on previously downloaded movies.

    For me I have follow several of the help articles. When I play the movie in iTunes the screen is black with no audio, the timer status says it is playing (although it does not work all the time). I am able to play and have audio on the extras. I tried to use just QuickTime to play the movie and that as well does not work. I have started iTunes in safe mode and when the movie would begin to play, iTunes crashes and I have to restart. I have tried fresh clean installs of iTunes as well as QuickTime with no luck.
    It looks to be a QuickTime problem however I cant verify that. Any help would be great.

  • How to handle event from subVI in the main VI?

    Hello,
    I'm doing some measurement. During the measurement I want the user to see some activity dialog - that's easy to do. Before the measurement starts I dynamically run VI (EX_Progress.vi) that shows some activity and then I do the measurement (in my example simulated by random number generation) . After the measurement is done (or error occurs) I can dynamically abort the activity indicator. But on the other hand I want to give to the user chance to abort the measurement manually via the activity dialog by STOP button. There are some ways how to do it via global variable and check every iteration in the main VI it's state but isn't there some better way? Would be nice to run event in the main VI when the user pushes the STOP button in the Progress VI. Is it possible to achieve this using register events? I tried but don't really now how I'm not familiar with this technique.
    Thanks in advance
    Message Edited by ceties on 11-26-2007 01:34 PM
    LV 2011, Win7
    Attachments:
    Ex.zip ‏374 KB

    OK, here's an example using User Events. It doesn't directly have the main VI listen for the Button press event in the subVI. Instead, it has the main VI listen for a custom User Event that the subVI fires every time there's a button press. You could theoretically directly listen to the button press directly from the Main VI, but you would have to somehow get that control's reference to the main VI. That would require storing a copy of it in a global or some such method. This method I will show here is very common and is definitely worth learning.
    For more info on User Events, refer to the LabVIEW help. You can learn more by clicking any of the User Event VIs and selecting Help from the shortcut menu.
    (I didn't set the subVIs front panel to open automatically, so you'll have to do that yourself to see anything from this demo...)
    Message Edited by Jarrod S. on 11-26-2007 02:51 PM
    Jarrod S.
    National Instruments
    Attachments:
    Example.zip ‏25 KB

  • Stream data from a subvi to the main vi

    Hi
    I’m wondering if someone can help me. I’m trying to stream data from a sub vi to the main vi without opening and closing the sub vi continuously. The data also needs to be extracted from a while loop within the sub vi.  background info: The sub vi controls a photomultipler tube, which once it is on it is best kept on. The PMT signal is generated in while loop of the sub vi. Attached are some basic vis showing what I’m trying to do.
    Thanks
    Attachments:
    Main page.vi ‏11 KB
    test2.vi ‏13 KB

    If you are streaming measurements continously I would consider using a circular buffer instead of the queued producer/consumer approach.
    Check out this implementataion of such a buffer, use only this if your DAQ device does not have an internal circular buffer.
    https://decibel.ni.com/content/docs/DOC-20403
    Alternatively if you are using a DAQmx device, consider using the device buffer for sharing DAQ data between loops.
    Br,
    /Roger

  • How to stop and resume a subVI from the main VI?

    I am trying to write a test sequencer, I need to start a subVI (which is a test sequence) from my main VI, I'd like to control the execution of subVI by pressing the 'stop' 'resume' 'jump step' button in the main VI. Does anyone have any idea how to implement this in LV?
    Thank you.

    Yay for State Machine!! I would actually recommend the State Machine Using Events design pattern. Taking advantage of the Event Structure will allow you to replace the "Idle" state in the traditional state diagram design pattern. Instead, we are not waking LabVIEW to handle particular events on the front panel.
    More information regarding the State Machine design pattern as well as design patterns in general are available:
    NIDZ Tutorial: Changing the Face of Design Patterns with LabVIEW 7 Express Event Structure
    NIDZ Tutorial: Applicati
    on Design Patterns: State Machines
    LabVIEW Application Design Patterns
    Good luck.

  • How to initialize the variables in the subvi when the main vi running?

    Hi, friends!
    Now I am working on a project with labview. I make a main vi  including many subvis.
    When the main vi running, I want to reinnitialize the variables in the subvi to zero.
    I know that I can realize that  using the local variable when I enter the subvi,
    but I want to keep the the values when I left the subvi and saw them when I
    click in this subvi again. So, I do not reinitialize the subvi when it runs. But, I
    don not know how to reinitialize the indicators in the subvi when I run the main
    VI in the first instance. I try to use the global variables, but it seems do not work
    well. Would you like to give me some advice? Thanks a lot!

    Hi dec,
          If I understand your question, try using the "First Call?" node in your Sub-VI - to initialize values the first time the VI executes every time the top-level VI is Run.
    If this doesn't work for you, just post again!
    Cheers.
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • Stopping a subvi from the main vi with a global variable

    Hello,
    I want a vi and a subvi to stop simultaneously. Thus, I created a global variable, STOP, which I connected it with the stop of the main vi and also with the conditional terminal of the subvi. However, it doesn’t work. Could somebody explain where am I wrong?
    Thank you in advance
    Attachments:
    STOP.vi ‏4 KB
    subvi.vi ‏5 KB
    main.vi ‏6 KB

    Hi,
    You are making 2 mistakes. The first is that you didn't temporize the loops. The second is that when you launch the main VI this straight away launch the subvi that get the control and don't release till something change the value of the global variable, but in that time the main isn't running, so even though you press the stop button the main is in not running mode and doesn't change the variable.
    Try this with the VI server to pass trough the control between two VIs.
    Ricky
    Italian Developer engineer
    www.www.selt-sistemi.com
    Attachments:
    main.vi ‏9 KB
    STOP.vi ‏4 KB
    subvi.vi ‏9 KB

  • Trouble getting thumbnail to open fully in the main window for editing.

    I updated to 6.0.6 iphoto and I can't find a way to have my thumbnails taking up the whole main window...not the full screen. Previously when I double clicked on a thumbnail the pic opened in main window, taking up all the space in that window. Now it is just a small pic in the main window and I can't see enough detail to edit the pic.

    The files in the Data file are the thumbnails used by iPhoto. The ! you're getting is because iPhoto has lost the link between the library and the original files that will be in the Originals folder.
    I don't think it will work but you can try to rebuild the library as follows: launch iPhoto with the Command+Option keys depressed and follow the instructions to rebuild the library. Select the first three options.
    If that doesn't work you'll have to start a new library and import the files in the Originals folder from the old library. Here's how:
    Creating a new library while preserving the rolls from the original.
    Move the existing library folder to the desktop.
    Launch iPhoto and, when asked, select the option to create a new library.
    Drag the Originals folder from the desktop into the open iPhoto window.
    This will create a new library with the same rolls as the original library. However dates on the rolls may be different but can be edited as you would the roll title.
    Once this is completed you can delete the Originals folder from the desktop and the iPhoto Llibrary folder. If desired, you can keep the older library folder to try other fixes on it.
    In the future I recommend you make a backup copy of the Library6.iPhoto file after each import and after doing a lot of editing and organizing in the library. Then if you experience a similar crash all you need to do is replace the damaged database file with the backup copy and you'll be back to the same place in the library as when you make the backup. See the tip at the end of my signature.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Clear chart in subvi from the main vi

    Hi all,
    im not sure if this has been solved before but my problem is, is there a easier method if i create a subvi containing a waveform chart and i want to clear the data in the chart after each run so that new values from the main vi can be plotted without the previous data plot. I placed the "history data" property node and wired it to an empty array in the subvi but when i ran the program, the graph doesnt plot at all..
    Regards
    Adrian

    hmm ii'll try using the invoke property method.
    Appreciate and thanks for the help guys!
    Attachments:
    Computerscreen.vi ‏18 KB
    trialanderror2.vi ‏35 KB

  • Where is Analysis within CS5.1 - I used this on CS4 but when I open CS5.1 the main tool bar at the top of my screen does not have Analysis?

    I have changed to a Mac and am using CS5.1 but cannot locate the Analysis tool which was on CS4 - when I look up Adobe .TV for CS5 the videos show this tool in the main top menu but it is not present on my system?  Where can I locate this as I would like to set up a custom scale for measuring some forensic details I am working on

    Thank you
    J Gordon Burrow BA, ADvDipEd,MSc, MPhil, FChS, FHEA, FCPodMed,MFSSoc, CMIOSH, AcFP, CSci
    Chartered Scientist; Chartered Safety and Health Practitioner
    Accredited Forensic Practitioner (Podiatrist)
    Consultant Expert Witness
    <personal info removed - kglad>

  • Every time I close down after the days use when I open it again the main page is corrupt and I have to re-install the firefox again can I stop this happening

    When I open firefox first thing it opens but the home page is not working. So I have to re-install it. Then it is ok for the rest of the day but only to go down again the following day. What can I do to stop this happening? I use bt.com home page.

    1. Reset the Internet Browser settings. Taking the Internet Explorer for example.
    1). Close allInternet ExplorerandWindowsExplorer windows that are currently open. Open Internet Explorer by clicking theStartbutton. In the search box, typeInternet Explorer, and then, in the list of results, click Internet Explorer. Click theToolsbutton, and then click Internet options.
    2). Click the Advanced tab, and then click Reset. Select the Delete personal settingscheck box if you would also like to remove browsing history, search providers, Accelerators, home pages, Tracking Protection, andActive X Filtering data.
    3). In theResetInternet ExplorerSettings dialog box, clickReset. When Internet Explorer finishes applying default settings, click Close, and then click OK.
    4). CloseInternet Explorer.Your changes will take effect the next time you openInternet Explorer.
    2. Reset homepage as bt.com again.
    3. clear out all cokkies and browsing history.

Maybe you are looking for

  • Is it possible to add a second monitor via mac mini with iMac

    Hi is it possible to add a second monitor via mac mini with iMac or is there another solution? all i want to know is if i can run a second monitor or link a mac mini for more speed like i heard you can with the G5 Towers.

  • How to Upload a File using FileReference + PHP??

    How to Upload a File using FileReference + PHP?? If you could help me with a two code examples the AS code and the PHP code of a working example. Thanks Jorge

  • Error when trying to enable cube  MV query rewrite

    Hi I'm facing a problem when trying enable query rewrite on the cube materilized view, see below Invalid Metadata Objects: Invalid Object "ACCOUNTING.APP_CUBE": "XOQ-01957: The cube has REWRITE MVs and also contains either a ragged or skip-level hier

  • Why isn't Facebook plug-in share button on Mountain Lion?

    Okay, so I just downloaded Mountain Lion on my Macbook Pro OS X 10.8 and I wanted to use the share feature it shows on the video, I signed in in Twitter and everything's fine but there is no Facebook option... I can't use the facebook 'plug-in' becau

  • How to access the Terminal Server on a Macintosh computer

    Hi everyone, Actually i have a Macintosh Computer Os X v.10.8.5 i have tried to acess the Terminal Server with 2 methods: 1) The 1st method: i tried the application: "Microsoft Remote Desktop client 2.1.1" but il doesn't work at all. It appears: "imp