subVIs does not function when it is called by main secondary to vi

Hi all

I have a main.vi that loads the façade into a secondary four subVIs when selected. Like most applications, everything works fine up to come to build the project (.exe). Program works as expected when run it from .exe but when all the vi.lib functions (for example reading png Subvi) is included in one of the subVIs called, the façade is loaded correctly, but the Subvi is not running and the invoke node (perform a VI generates error 1003).

I've included the subVIs in 'Always include' in the specification to build under the heading Source files.

Help, please

Thank you

I made a significant change to your "called" sub - VI (I created an icon for it - you'll see why it's important in a minute) and again your main VI.  This code snippet is saved in LabVIEW 2015, but it is simple enough that you should be able to recreate it in any LabVIEW version you are using.

I like to use references static VI (the first thing on the block diagram) because, especially if they are associated with a Subvi with an icon, they provide a mnemonic, robust and easy to get a lot of useful sub - VI 'properties' (for example the path) without worrying about the execution environment.  In particular, they work very well with the Start function Asynchronous Call, I think it's much simpler to use than the VI server method.  I'll walk you through it...

  1. Start with a static reference of VI to the Subvi to run asynchronously.  If your Subvi has an icon, it will appear (as shown here) in the body of the static VI reference, which makes it slightly better documented.  Notice the Red Star on top of the static reference - which indicates a reference strictly - type (right click and choose strictly typed), you need to the asynchronous call start.
  2. This reference gets first wired to a property node - the unusual appearance of the node ('VI Interface Type 2') comes from the strictly typed reference.  We choose the Path property.
  3. The path gets plugged into an open VI reference function.  Because we use asynchronous Start Call (Forget), we specify Option 0 x 80 (glance using reference VI open for further explanation).  We also wire the Strict Type of step 1 at the entrance to this function Type.
  4. The VI reference resulting is wired to Start Asynchronous Call, which starts the called sub - VI.
  5. We also spend it to Insert Secondary VI method, which shows the sub - VI running in the Sub panel.
  6. Now, we interact with the sub - VI in the Sub panel as much as we want to.
  7. In the main routine, we now run the while loop, waiting simply Stop pressing.  I placed a 100 msec waiting here to give priority to the Subvi.
  8. When leaving us, we remove the sub - VI of the Sub panel, he abandoned and get out.  I see no need to put a function exit here - if you want to automatically close the main façade, just do it.

Bob Schor

P.S. - I've tested (LabVIEW 2015) and it works fine.

Tags: NI Software

Similar Questions

  • BlackBerry Smartphones phone does not ring when unknwon number calls

    Help, please. It has just starting happening.

    If a phone call is received several steps that my conatcts list, the phone does not ring.

    Any ideas anyone.

    Thanks rich.

    It may happen that the profile exception is active.

    To check this go to profiles -> Advanced -> uncheck all check user profile except fo:

  • Graph XY what yscale.namelbl. Text does not update when vi is called the Subvi

    Software Lab that we wrote, use us (with a worm 7.1.1) a Subvi, set up to print at the end to print the results of four charts XY. Units selected in the main vi Engr is passed into the Subvi through the connector pane. I extracted the EU text here and write to YScale.NameLabel.Text using nodes property. It works very well in development by operating its own front panel, but not when the Subvi is called from the main vi. Maybe it's a known bug? With a workaround? I tried delays, separating the operations with the structures of the sequence, etc.


  • audio does not work when making/receiving calls on my iphone 6s in my car

    Whenever I try to make or receive a call via my car hands-free kit, there is no sound through

    Have you tried to use your speakerphone with another phone? This will show you whether functional or broken. If it works, I think you should try the following steps.

    Try resetting your device. This will not erase your data stored on that device.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

    If that doesn't work, restore your device to factory settings. Please note that this will delete the data on your device.

    Take a look this Apple Support article: use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support.

  • VI front panel does not close when it is done executing, when this vi was called by reference.

    I created a simple vi set to indicate the problem I'm having. I run dynamically under vi to leave a main application. Simply the main application is my test exec and the Subvi I call dynamically is different tests. In the example I have write here the criterion vi is called Test electric 1(vi). I configured this electric Test 1 vi to see the front when it is called and close later while initially closed.  Problem is that it doesn't close before.

    Other things to keep in mind

    • I want to be able to run the vi test and do not wait until it is done.

    I'm using LabVIEW 2012 SP1.

    Basically the fence after that call questions only if the VI is called as a Subvi (as if you open you a VI and run it, it does not close when it's done).  Are two ways to work around this or have your app high lvl close the VI when it's done, it's explained here:

    http://digital.NI.com/public.nsf/allkb/987B2026B41BD39786256CF800032E8C

    or having your VI close when it's done.  A reference of the VI and the front panel: Close call node.

    I hope this helps.

  • In number. How do I lock you in a function such as highlighting a cell so it does not disappear when you move to another cell.

    In number. How can I lock you in a function such as highlighting a cell so that it does not disappear when you move to another cell.

    Hi Philil,

    Do you mean pointing out the contents of a cell, or "stressing" the cell itself (by placing an on bottom border)?

    Formatting content will transfer to another cell if you fill in the other cell content, or copy from a single cell and pasting it into another.

    Borders applied to a cell or group of cells may be applied to another cell or group of cells by selecting the first cell (single click), the format of this cell or a group of cells copy (Format (menu) or option + command + C > copy Style), and then selecting one or more other cells and stick to the format (Format (menu) or command-option-v > paste Style.)

    'Format' in the case of cells includes the color fill, color text and other text attributes, content, format (text, number, date & time, duration...), borders...

    When you copy the style, all format attributes are copied.

    Kind regards

    Barry

  • IPhone 6 IOS 9.3.1 does not ring when a call comes, neither text does not sound a notification.

    IPhone 6 IOS 9.3.1 does not ring when a call comes, neither text does not sound a notification.

    Have you checked the obvious things? E.g.Ring/Silent switch on the left side is not on? Control the volume of ringtone under settings/sounds?

    If they are not serious then have you tried power the phone off and on again? Other sounds work fine, or if all sounds are dumb? for example can play you music through the speaker?

  • my phone does not ring when there is an incoming call.

    My phone does not ring when there is an incoming call.

    Have you checked if it is on mute?

    The "secret" key is above the volume buttons on the left side of the iPhone (red = mute is enabled)

  • My iPhone only more 6 does not ring when called.

    MY 6plus of the iPhone does not ring when called.  Any suggestions?

    You have probably already done this, but have you checked that the side button is not set to 'red' to mute calls, or that 'do not disturb' has not been activated accidentally?

    If one of the people are not the cause, have you tried a hard reset - restart by holding down the button power button and home button until you see the phone reboot with the Apple logo on the screen.

  • Form does not work when it s poses in a movieclip


    I've isolated the problem and it s seems to be concentrated in the path "mcForm.skickat eq 'Yes' below: (the serverside script is done in Php).

    I t looks like that the form does not work when it s respondent in a movie clip called mcForm with a button send simply called 'send '.
    I have to place the form in a movieclip, because the shape is a good interpolation made by Laco interpolation method.

    Everything works fine if ["BOLD"] I have no place [/ bold] form in a movieclip.

    Here´s a part of the actionscript in the script main navigation.swf:

    If (mcForm.skickat eq 'Yes') {}
    gotoAndStop ("labelFinished");
    }

    Here´s actionscript code on the button 'Send' in mcForm in navigation.swf:
    on (release) {}
    loadVariables (" http://www.homesit.se/phpmail.php", "", "GET");
    _parent. Play (); This statement is not the problem.
    }

    The chronology in navigations.swf never reaches the label "finished."

    It works fine if I do not place shape to a movieclip in navigation.swf timeline:

    If (mcForm.skickat eq 'Yes') {//this path is the problem
    gotoAndStop ("labelFinished");
    }

    Here´s in php serverscript:
    (I have no problem here)

    <?
    $headline = "mail from your Homesite.
    $text = "$name sent email you from your homesite.
    It wrote:

    $message
    ";
    mail ($mymail, $headline, $text,
    "To: $email. (' \nReply-to:".$email);
    ECHO ("Send = Yes");
    ? >

    What could possible be wrong

    I appreciate every response.


    The root of the problem (look at the code you posted), it's that there is no event that determines what should happen when your data comes back from PHP. When you use loadvariables, you need an event for mcForm, like our:

    {mcForm.onData = function ()}
    do something
    }

    The problem according to what I see is that on your main timeline code checks the value of mcForm.skickat, but you do not seem to define this variable anywhere. The php script returns a variable named 'send', but I do not see anywhere skickat. If it is not set, its value will be always "not defined".

    To make things more efficient, you should really use loadVars and a reponsed instead of loadVariables Manager. When you use loadVariables, all variables in the clip are sent to your php script that transfer really just data loss. Using loadVars, you specify what vars to send, making the process more efficient. See the docs... everything is in there (with examples).

    BTW... This is the Flash Media Server forum. In the future, you might want to ask questions like this in the general flash or actionscript forum, you will get more answers (more people read on these forums)

  • iPhone5 does not ring when it is locked

    iPhone5-16 G-

    iOS 9.3.1

    My iphone5 does not ring when it is locked

    during a call if I press the power button or any key, it sounds

    I checked "do not disturb" and silent and other key

    Hi mehdi.gh,

    Thank you for using communities Support from Apple!

    I understand that your iPhone sounds when it is locked. I see that you have already tried a few great troubleshooting as well.

    To continue troubleshooting, I suggest reading and working through the information in the following article. Some of these steps you have already performed, but for completeness, I suggest to work through all the steps.

    If you hear no sound or distorted sound from your iPhone, iPad or iPod touch speaker - Apple Support

    See you soon!

  • KB955759 does not appear when I check the updates manually, but it appears with the yellow shield after you have enabled the automatic updates.

    original title: Windows Update acts confused - kb955759 does not appear when I check the updates manually, but it appears with the yellow shield after you have enabled the automatic updates.

    I just reset my CMOS settings, writing zeros for my hard drive, repartitioned, reformatted and used the recovery cd Gateway system to get my computer to Windows 98se - factory settings, except at the beginning of the recovery of the system, when it says "press any key for advanced options," I pressed a key and then I unchecked all the default (3rd party) applications including Norton and left only 2 checked: "Updated USB Hub" and "Windows Shutdown Supplement," while nothing has been installed, leaving only win98.
     
    Then I used my disc XP Home (SP2) update.  I, immediately after the upgrade to Windows XP, installed "Office XP with Frontpage, Developer Edition", then Norton 2012 before never connect to the internet.
    Then, I connected to the internet and continuously update of Norton, before ever hitting the Windows Update page. The first thing I did then was to activate Windows, and then activate the office.
    Then I hit the update of Windows "button" that says "get all your updates in one place... upgraded"Microsoft Update".  I, then, just kept hitting the page update and restart, until I find the SP3.  Then, I took a break, until the next day.
     
    I have an ADSL broadband, with a Linksys EtherFast PCI card.
     
    Then I got SP3, which installed without any problems.
    So I just kept "microsoft continuous update" manually (and reboot), until there is no more updates - EXCEPT, I always uncheck Windows Malicious Software Removal Tool - which was the only screening at the final stop for the night.  I think that I ticked the box "don't ask me about this update".
     
    Then, in the morning, after you have enabled automatic updates, I noticed the yellow shield - Windows security icon (or whatever it's called), so I clicked on it and checked it was tellimg me was available [when I checked "Custom Install (advanced users)"].  What showed was 1 update - 955759 KB.
     
    After the problem, already at the reformat (months and months), see the yellow shield telling me there are updates available, which were already installed (before rebooting), I checked manually on the internet with IE 8, pressing alt, "T", "U".  There is no updated list.  Then I checked through my history of update (twice), and KB955759 had not been installed.
     
    My update setting is to let windows download ('important') updates, but let me choose when to install them.
     
     
     
    What is the right - Windows Update (NO update important reporting) Site, or the yellow shield (reports [a] kb955759 [update])?
     
    I can not yet confirm he is supposed to be an update for XP home kb955759, because I was unable to locate any detailed documentation on this 'thing' that protect the yellow safety seems to think is a significant update.

    Comment 1: To my rquest, a moderator merged your thread in the Sub-forum Win7 updates with your wire in the Sub-forum of updates of Windows XP 20 Feb-12, c. 07:50 UTC.

    Comment 2: If you will not contact the MS Support on this issue?

    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Just for the heck of it, I have disabled the automatic updates, cleared my browser cache, checked manually, updates from microsoft (windows) and found none (with the exception of software malware removal tool windows [which I have not installed]).  Then, I turned the automatic updates on, and without even being connected to the internet, the yellow shield popped up with the kb955759 "update"...

    Repost...

    1. If you open Internet Explore (only!) to http://windowsupdate.microsoft.com and run a CUSTOM scan, KB955759 appears in results?... If so, you manage to install it and/or security updates available?

    2 after no. 1 above [<>], is the 'yellow shield' icon appears in the Notification area (on the left of your clock)?  .. and if yes, by clicking on the 'yellow shield' icon tells you that KB955759 or any other updates is ready-to-be-installed?  .. .and if so, you manage to install it?

    3 after doing 1 # & #2 above [<>], is KB955759 or any other updates offered as a ready-to-install update when you go off your computer?  .. .and if so, you manage to install it?

    ... I guess that clearing the browser cache does not erase 'downloaded' updates.

    Nope. If you want to clear the queue of the update...

    OPTION A:

    1. stop the automatic updates service:

    Start > run > (type or copy/paste) services.msc > click OK
    Double-click automatic updates > click stop
    (Stopping the service will take a moment)

    2 remove the contents of the download folder:

    Start > run > (type or copy/paste) %windir%\SoftwareDistribution > click OK

    Open the download folder and delete its content
    Close the window.

    3. start the automatic updates service:

    Start > run > (type or copy/paste) services.msc > click OK
    Double-click automatic updates > click Start
    (Starting the service will take a moment)

    OPTION B:

    1. open Internet Explorer (only!) to http://support.microsoft.com/kb/910336 [don't know the titles, etc..]

    2. make disappear/close the Troubleshooter automatically pop up.

    3 repaired 50202 in DEFAULT modes and AGGRESSIVE. [1]

    4 reboot.

    Does anyone know how to determine if software mailicious removal tool is installed on XP? [source ]

    Check the located log file...

    C:\Windows\Debug\ MRT. NEWSPAPER <>

    Related...

    ... This leaves us with the malicious software removal tool don't appear not.

    I guess I'll have to leave "auto-update" (I often have less than 65 M of free memory left and do not have enough memory to msrt) and don't assume no other current error. [source; 17 Aug-11]

    It's no wonder that you ended up having to do a clean install of Win98SE & then upgrade to Windows XP again!

    ================================================================
    [1] full Disclosure: the difficulty operating in AGGRESSIVE mode will remove your update history but not updates installed in Add/Remove Programs list.

  • Acer toggle display does not display when you use the Fn + F5 key secret on my Acer Aspire 5560

    What it does:

    When you use the Fn + F5 key combination on my Acer Aspire 5560, it brings up a screen changes on the laptop screen for the selection of an external monitor, I am currently using Windows 7 Ulitmate

    Before the problem:

    Display mode switch Acer existed prior to the upgrades of the drivers

    The problem:

    The toggle screen Acer does not display when you use the Fn + F5 key secret on my Acer Aspire 5560?

    Additon Information needed to solve the problem or any other information:

    I would like to know what driver or software operates the Acer toggle display Mode?

    Also where can I find this driver for computer: Acer Aspire 5560 to bring this Acer toggle display Mode function?

    Acer Toggle display Mode: this is a picture of it when you use the Fn + F5 combination:

    Thank you very much Ironfly Ace, it has worked Acer hero of the day

  • Here's a strange. I have a HTML page with this time a wmv video. It works perfectly from a USB stick or SD card, but does not work when they are copied to the hard drive

    I have an HTML page created with web expression 4. It contains only a wmv video. It works perfectly when it is called from a USB stick or SD card, but does not work when they are copied to the hard drive. The results are the same with IE and Firefox. It don't make no difference if I use Media Player V9 or V11. He has no control on the page Media Player. Video and html files are in the same directory. Here is the code snippet:

    LIFT, DRAG, THRUST and GRAVITY










    If I run it on a machine with Win 7 there is no problem.

    Richard Grosser

    Hi Richard c. Grosser,.

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Microsoft Expression forums.

    http://social.expression.Microsoft.com/forums/en-us/categories

  • AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    Original title: computer disc drive

    Download or CD extract of music reading, record music, download CD etc... Before my hard drive had to be replaced, when a disc is inserted into my computer, a window appears, asking what you want to do... Burn music, Rip, copy in folder etc... now when I insert a disk, the window no longer appears, which gives you options and you get to this site... How can I get that back?

    Hey Big-Mack,

    Try the steps of troubleshooting mentioned in the following article and check the result.
    See the enforcement function automatic or AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    If the problem persists, run the Autoplay Repair Wizard and check the result.
    See Autoplay Repair Wizard

    Play functionality; New in Windows Media Player 12 makes it easy to listen to the music, video and photos from your computer to other computers, TVs or stereo on your home network.
    For more information, see play in

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • Satellite U400-13N - need a new battery, which one to get?

    I need a new battery for my laptop, but not quite sure like one to get as it seems U400 is distributed. Someone to help me?

  • Disk SATA of OptiPlex 9020 m and m2

    All data sheets I can find for the Optiplex USFF 9020 indicate that it can withstand a SATA m2. Which non of them tell me what edge connector and the length should be, and whether or not an impasse is required for the end.  I contacted the technical

  • Blue kernel_data_inpage_error error screen HELP Please

    Should I be worried that I came to my PC after that leaving locked during the night and found the following error blue screen: KERNEL_DATA_INPAGE_ERROR STOP: 0X0000007A (0XC000000E, 0 X 92188860, 0XC041AD60, 0X835ACD7E) Igdkmd32.sys address 921B 8860

  • Not me appears Selección automatica of capa

    Buenas, since I made the change last don't me appears the opcion en the bar the automatica seleccion of capa, por ello no capas of las puedo seleccionar directly don't con el consiguiente prejuicio en the los trabajos &.¿alguien sabe cual are el prob

  • print data only on multi-part paper via matrix printer?

    More than 20 years ago my little business started using the stream of Delrina form to fill in forms on a computer, and then to print data only preprinted multipart forms paper via a matrix printer.  I understand through a series of acquisitions, Delr