Problem about asynchronous call: subVI front panel doesn't pop up when called.

Dear All,
I'm new to LabVIEW, and this is the first time I try to use the asynchronous call.
I'm using LabVIEW 2011.
I want to build a directory for several VIs, and it should allow users to open more than one of the VIs at the same time by pushing the buttons. Before building this directory, I simply tried to use asynchronous call to call a VI form another VI, but found a big problem.
I followed the steps in the help file, created a strictly typed reference, set the option to x80 because I don't need the return. When I run it for the first time, it worked fine: the subVI popped up and run. Then I closed the subVI. But for the sencond time and on, when I run the caller VI, the subVI didn't pop up, instead it seemed to run silently on background because when I manually opened it from the file I found it running. Besides, I didn't find any option like "show front panel when called" of the asynchronous call.
The caller VI and subVI are attached. The address of subVI in caller VI should be changed accordingly.
What should I do to make it work properly? Thanks very much for  any idea!
Solved!
Go to Solution.
Attachments:
asynchronous_call.vi ‏8 KB
boolean.vi ‏7 KB

Jeff·Þ·Bohrer wrote:
A better approach is to set the vi properties programaticly like this:
Jeff, you will be happy to know that I used this tactic in full force on a project recently (lots of dialogs in this program).  Not sure how many LabVIEW reboots it has saved me from.  Reuse VIs made it even easier to do.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • Plotting to a number of asynchronously called subVI front panels

    Hello everyone,
    I'm working on a DAQ and monitoring program and I have a dream of doing some very flexible window management for my plot windows. Trying to make it easy to quickly open different kinds of plots and display different channels in each window. So as not to reinvent the wheel I'm trying to use Windows windows to do this by calling VIs asynchronously. The VI will be built as an EXE and used by people who don't know LabVIEW, hence trying to make it really flexible and intuitive.
    I've set up my VI like this example and it has me real close: http://zone.ni.com/reference/en-XX/help/371361J-01/lvhowto/acbr_call_clones/
    When I run the VI it opens whatever number of plotting windows (instances of my plotting window SubVI) I've specificed but the plots don't update. Anyone have any tips as to how to get this behavior?
    Xander Cesari
    Automotive/Internal Combustion Test Engineer
    CLAD certified, mainly focused on data acquisition
    Been LabVIEWing for a few years, still a lot to learn
    Solved!
    Go to Solution.

    Bob,
    Thanks for the reply. I'm using a QSM-PC architecture, here's the relevant loop. Looks pretty much identical to the linked example, I hit that point and I decided I needed a bit of help wrapping my head around it. Data's coming in on a queue (the snippet broke the reference). My idea was to pop open all the windows in this state then use another state to plot data to them.
    In 'synchronous' mode I was able to get the desired behavior out of my subVI but it was also set right in a while loop and by playing with the Call Setup a bit I got it to do what I needed (open a new front panel and constantly plot).
    The queue idea is very promising though! I should be able to generate queues right in the For Loop that calls my VIs synchronously then enqueue in a "RUN" state. I'll give that a try.
    Xander Cesari
    Automotive/Internal Combustion Test Engineer
    CLAD certified, mainly focused on data acquisition
    Been LabVIEWing for a few years, still a lot to learn

  • Main VI Menu event calling a subVI front panel

    Hi all,
    I have a subVI whose front panel is loaded upon calling by a main VI.
    I call the subVI using a User-menu event.
    the subvi-properties are set to allow close window and i am not handling a 'panel close' event.
    The problem is....
    when i run the main VI and click on the menu that loads the subVI front panel, subVI window opens, and if i click on the window-close, the main VI hangs.
    i understand that the control remains with the subVI only and never returned to main VI after i close subVI panel.
    but is it the only way to handle the 'panel close event' or any other way out to solve this?

    Try running the VI with highlight execution turned on, and see if anything unexpected is happening, or you could post your vi and let us take a nosey
    Message Edited by yenknip on 09-12-2008 04:30 PM
    - Cheers, Ed

  • 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

  • Calling the front panel of a sub.vi

    Is there a way to call the front panel of a sub.vi so that as soon as the sub.vi begins to execute, its front panel is displayed?
    Solved!
    Go to Solution.

    LarsUlrich wrote:
    That link you posted... is that a function I can find from the block diagram somewhere?  I'm looking for it but can't seem to find it (also I am running a pretty old labVIEW 8.5) and I have no clue what the "VI methods" class is. 
    It's a method for a VI reference. You create a reference to a VI (for example, by using the Open VI Reference function), and then connect it to an invoke node. Select the method from the popup list.
    The settings in VI properties will probably be fine, but I can't find it either, (there are 12 menu tabs, after all) and it probably isn't labeled as obviously as "open front panel when run."  My guess is under "execution," maybe the run when opened selection?
    VI Properties -> Window Appearance -> Customize.
    EDIT: The method you used applies only to that instance of the subVI. If you have the subVI in several places on your block diagram, then the other instances are not affected. This would be applicable if your subVI is an information dialog or something.

  • Reference to control on main front panel fails when subvi front panel is closed?

    Hi All,
    I'm experiencing an odd bug. In my code, I use a subvi to control a piece of hardware. This subvi has controls for all of the functions of my hardware.
    I'm changing the value of one of these controls from my main front panel by running a reference to a knob on my main front panel into the subvi, grabbing the value of the knob with a property node, and then updating the value of the subvi control using a signaling property node.
    This works fine when my subvi front panel is open but fails to work at all when the subvi front panel is closed.
    I'm new to labview , so any help is appreciated.
    Thanks,
    Arpan
    Solved!
    Go to Solution.

    What is your LabVIEW version?
    Front panels that are not shown are typically not updated and might not even be loaded into memory.
    The presence of certain code elements (e.g. property nodes) often forces the front panel to be in memory even if it is not shown, but I haven't studied it in a long time so there might be subtleties. Maybe somebody from NI can give more details.
    If it does not work unles the FP is open, open the front panel minimized to avoid distraction.
    Can you attach some code? Maybe there are better ways to do all this anyway.
    LabVIEW Champion . Do more with less code and in less time .

  • Front panel doesn't print

    I am trying to print my VI. I can see the front panel in Print Preview. When it prints the front panel page is blank. Anybody else run into this problem and how did you fix it.
    Thanks
    Chris Gallo

    Are you using any decorations on the front panel?  Perhaps drawing a border around the panel? 
    (Reason I ask is that I once had a border decoration print over the controls it was supposed to be behind.  I'm not sure what happened, since I could access the controls while running the VI, but for some reason, when I went to print, it thought it was in front of the controls.  After selecting the border and sending it to the back again, it fixed the problem.)
    Message Edited by Mythilt on 08-05-2008 10:00 AM
    Jon D
    Certified LabVIEW Developer.

  • Load subVI front panel in subpanel

    I want to load subvi front panel in subpanel. I have attached VI , however instead of path of VI I want to provide sub vi reference.Is it possible to this?
    Attachments:
    SetSubPaneOrigin_LV861.vi ‏10 KB

    Use a Static VI Reference that can be found on the Application Control pallette.
    After dropping it, right click and browse.
    Ben
    Discalimer: In an eralier version of LV, Static refs did not work correctly in an executable.
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • HAVE SOUND- FRONT PANEL DOESN'T WO

    hmmm, okay. Last night I installed the "Beta" driver and the EAX driver. I now have sound but my front panel doesn;t work. For some reason XP doesn't see the panels devices properly and lists all of them on the panel board as UNKNOWN devices. Is there some other driver set I need to install the front panel?

    Hello tonitpp:
    Unfortunately, the "Run VI" method only executes the vi and it will not open the front panel.
    If you want to open the front panel, use the "Open FP" method, which is also located on the same class.
    I hope this helps.

  • I purchased a wireless keyboard for my iPad a week ago and now the keypad doesn't pop up when I want to type anything.

    I purchased a wireless keyboard for my iPad a week ago and now the keypad doesn't pop up when I want to type anything.

    Have you tried to go into bluetooth and telling it to forget your keyboard?
    Drastic but might enable you to repair the devices and see if it clears up the glitch.
    I had a period of time when my iPad always sensed and used my bluetooth keyboard. I think it finally went away after I powered down the iPad. (not just a put to sleep, a bonafide 'slide the red slider to shut it down' powering down.

  • Question about subvi front panel

    I want to call a subvi in the main program and do like
    this:
    1. When the main program calls the subvi, the subvi shows its front
    panel and executes.
    2. After the subvi finishes, it can close the front panel.
    Now, I meet a problem: I can popup the subvi node setup dialog to enable
    "show front panel when called", which implements the first one, but I
    can not close the front panel until originally closed(main
    program stops). How can I close the subvi's front panel(after it
    finishes running) even when the main program is still running?
    Thanks in advances.
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    In article <[email protected]>,
    "Remco Breen" wrote:
    >
    > [email protected] wrote in message <[email protected]>...
    > >In article <[email protected]>,
    > >"Kevin B. Kent" wrote:
    > >> [email protected] wrote:
    > >>
    > >> > Now, I meet a problem: I can popup the subvi node setup dialog to
    > >enable
    > >> > "show front panel when called", which implements the first one,
    but
    > >I
    > >> > can not close the front panel until originally closed(main
    > >> > program stops). How can I close the subvi's front panel(after it
    > >> > finishes running) even when the main program is still running?
    > >
    > >
    > >
    > >
    > >> Select the "close front panel if originally closed" option.
    > >> in addition to the "Show front panel when called"
    > >>
    > >> Kevin Kent
    > >
    > >
    > >I have tried this, in this way, the subvi's front panel is closed
    only
    > >after the main program stops. In fact, what I want is to close the
    > >subvi's front panel even the main program is still running.
    > >
    > >
    > >zhljh
    > >
    > >
    > >Sent via Deja.com http://www.deja.com/
    > >Before you buy.
    >
    > Another option would be to open a VI reference (found under
    "application
    > control") and tie that to a property node and select the property
    "front
    > panel.open". Change it to a control and attach a boolean false to it
    when
    > you like to close.
    >
    > RB.
    >
    I think a more elegant way of closing the SUB VI is to start off the way
    that Remco states regarding opening a VI reference. Only in the Sub VI,
    you should program a Terminate control (such as an Abort button to exit
    from a While loop... or something similar) and via the VI reference,
    select the 'Set Control Value' method to gracefully stop the Sub VI
    execution. Of course the Sub VI will have to set the close if originally
    closed attrib set.
    There is a great source of example LabVIEW apps at:
    http://digital.ni.com/explprog.nsf/web%2Fswgrp?OpenView&Start=1&Count=50
    0&Expand=3.7#3.7
    In particular, see "Stopping a Running SubVI from the Main VI Using VI
    Server" example. It demostrates this techniques better than I can
    explain it. Hope this help.
    Rick
    Sent via Deja.com http://www.deja.com/
    Before you buy.

  • Can I catch front panel events of a vi which calls a subvi in the subvi?

    Hello,
    I have a vi with a picture control. This vi calls a subvi. Can I, while
    the subvi is running, catch frontpanel events from the calling vi in
    the subvi?
    Background:  The subvi should do all necessary tasks to draw
    things in the picture control of the calling vi, but depends on things
    like mouse moves and button clicks on the picture control of the
    calling vi.
    I know that I can generate user events in the calling vi which can be
    caught in the subvi. But I developed the subvi as a standalone test
    version, and want to include it now in a larger project, without to
    much changes to the larger project.
    I'm using Labview 8.0.1
    Best
    Armin

    Hi devchander,
    > It will not be possible to catch the Front panel events of main VI from inside a sub VI using an event structure.
    I don't think Armin want's to do this - it seems he's trying not to modify existing code - but if he does, it is possible - and an example is attached!
    ( just run the example as a sub-vi, it will create a string of mouse-direction-codes while the left-button is held down over caller's FP )
    Hope it helps!
    Message Edited by tbd on 08-17-2006 11:45 PM
    Message Edited by tbd on 08-17-2006 11:48 PM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    MouseTrap.vi ‏138 KB

  • My front panel doesn't show

    Hi,
    I have a vi (1) that calls a subvi (2) when I press a button. This subvi (2) calls the vi (1) again when I press another button. I have a event structure for this button (button of the subvi (2) ) where I set to false FP Open property for the vi (1) and then I call by reference this vi (1) and I do an invoke node (run) to show the front panel of it but it doesn't work. Why?
    I post an image.
    Thanks,
    ToNi
    Attachments:
    blocks.JPG ‏41 KB

    Hi ToNi
    I attach you another 2 simple solutions. One with the FP.State property and the other using the close function of the vi reference.
    The problem using the close function is, that the first vi doesn't open in running mode. Using the function "Open FP" the vi opens, but I can't run it.
    This problem is avoidable using the FP.State property.
    To run the vi's, vi1.vi and vi2.vi of the close directory must be copied to c: or you have to change the absolute paths in the vi's.
    I hope this is what you are looking for and it helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    Hide.zip ‏35 KB

  • Calling vi front panel object update in a running sub-vi loop?

    Hello All. I have a calling sub-vi with a "Start Test" button on the front panel. I passed a control reference for that Start button into a sub-vi that runs in a while loop. The while loop is monitoring that Start button and other things.
    Problem: Once the sub-vi runs, it no longer takes updates from that Start button. My program never leaves that while loop in response to my Start button.
    Is there some way I can make the sub-vi take an updated value from the calling vi?
    Attached is the sub-vi (top level, LabVIEW 2011). Please note that I have already tried putting the Start Test terminal inside the loop, but that did not help. I put comments in the block diagram and the front panel to help identify the problem code.
    I am going to get around this problem by running this whole vi through a loop in the calling vi, where I can easily respond to button changes. This is mainly an academic or curiosity problem now.
    Thank you, Richard V
    Solved!
    Go to Solution.
    Attachments:
    Channel Setup.llb ‏286 KB

    Lets just whip up a little example then shall we?
    The subvi you see contains:
    Go ahead and run the top vi.  Press OK and watch the value of Value change (up to 20 times per second but that is faster than your eyeball).
    Why the difference between this simple example and what you are seeing?
    If I had to guess (And, I do since the caller wasn't encluded) I would suspect that you misswired the reference.  With that over-burdened connector pane and no required terminals it would be fairly easy to do.
    And thats where you might want to ricght-click the vi and deselect view as icon.
    You'll find out that its a lot easier to wire the right terminals that way.  Also, changing the terminals to "Required" for anything that is as important as an exit condition is a good idea.  Perhaps even exit if the reference is null although that should cause an error on the property node.  Did you shut off automatic error handling?.... Nope you didn't so there is a valid reference going into the sub-vi.  But a reference to what? maybe not the button you think.
    Jeff

  • Front panel doesn't show

    Hi,
    I have a vi (1) that calls a subvi (2) when I press a button. This subvi (2) calls the vi (1) again when I press another button. I have a event structure for this button (button of the subvi (2) ) where I set to false FP Open property for the vi (1) and then I call by reference this vi (1) and I do an invoke node (run) to show the front panel of it but it doesn't work. Why?
    I post a image.
    Thanks,
    ToNi
    Attachments:
    blocks.JPG ‏41 KB

    Hello tonitpp:
    Unfortunately, the "Run VI" method only executes the vi and it will not open the front panel.
    If you want to open the front panel, use the "Open FP" method, which is also located on the same class.
    I hope this helps.

Maybe you are looking for

  • How can I copy a legal pager on laser jet 1217 mfw on my mac?

    how can I copy a legal pager on laser jet 1217 mfw on my mac?

  • MRP run at storage location

    Dear All We have around 10 storage location and out of the 5 storage location i dont want to include in the MRP run. What should I do ?  can you please guide me. Regards, AMOL WAGH

  • Album Creation Issue

    Now, I'm sure that others are having this problem, but I thought I'd post anyways. I'm posting the albums in iWeb using the media palette. According to the instructions, I drag and drop the album and VOILA! However, this is hit or miss for me. About

  • Themes missing from IPhoto

    I am on Mac OS X 10.8.2 on an IMac. I have IPhoto 11 version 9.4.1 which I got by upgrading to it. The IMac also was upgraded to Lion 10.8  from Leopard. I now cannot print photos from IPhoto and get a message stating there are no themes installed. T

  • Why do stills appear clearer when Photo Settings are being modified?

    I have noticed that stills imported from iPhoto are grainier than how they appear in iPhoto. When adjusting the Photo Settings, the stills are as clear as they are in iPhoto. Any suggestions as to what is causing this? More importantly, what can be d