How to 'play' a VI given in another VI

Hi guys,.

so my question is the following can I 'play' a VI given when I press a button on the main VI.

I have 3 different VI this remote control switch 3 different, let's say each of the unit contains the logic to open 3 doors, so VI 1 open the door 1, VI 2 open door 2 etc...

I need a main Vi where I can choose the 1,2 or 3 or 1 and 2 door, 2 and 3 etc., so I thought to use sub - VI for each door, but if I put in 3 screws on the main block diagram two 3 doors open when I hit the arrow to play the main VI.

So I need a way to 'play' a given Sub - vi to open the doors.

Of course it is a simplification. In fact I need to check the phases of displacement and complex movement for them while measuring the position and to control a laser, but a button "Play sub Vi" would be useful.

Any idea?

Hello everyone, first of all, thank you for your contribution.

Now on my problem of 'door', my first idea was to use a loop + structure boolean + case but I add characteristic to a VI already made so it cannot be done that easily. I thought that I just added the code additional, if I do, final code design will be ugly and difficult to understand for future coders.

So I think I'm going again this particular portion of the control and make it simpler while integrating the new features.

Congratulations to all and once again thank you for your contribution.

Tags: NI Software

Similar Questions

  • How to play a dvd movie in another language

    original title: how to play a dvd movie

    Hi all.

    How can install you media player to to play movies in English, which is not English. even online and offline

    E-mail address is removed from the privacy *.

    I have windows 7 32 bit

    If I understand you correctly, simply insert you the DVD in your drive, when the autostart window opens, choose WMP. The DVD begins and you can select English via the Set Up screen, like you would if you use a home player.

    If there is no option to select a language or you don.t see English in the list of available languages, then you're snookered. You can't conjure it out of thin air (or via the web)!

    But then again, I can not fully understand your request. If this is the case, re-post as more explanatory.
    See you soon,.
    Jerry
  • How to play a .swf movie in another project after every 10 seconds?

    Hello

    I have a Logo.swf file that plays once and stops. I want to use this flash animation in a flash using the CHARGERother project. Is actually what I need, I want to play this film each interval of 10 seconds using Actionscript 3. How can I have? Help, please.

    Thank you.

    Hello

    There are 2 scenarios for this:

    1. animation of the logo in the logo.swf is a movieclip and called the stop() function in the last picture.

    Solution:

    import flash.display.Loader;
    import flash.display.LoaderInfo;
    import flash.events. *;
    import flash.net.URLRequest;

    var logoSWF:MovieClip;
    var: timer = new Timer (1000);
    timer.addEventListener (TimerEvent.TIMER, playLogo);

    function loadLogo() {}
    var url: String = "logo.swf".
    var loader: Loader = new Loader();
    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, completeHandler);
    Loader.Load (new URLRequest (url));
    }

    function completeHandler(event:Event):void {}
    Timer.Start ();
    var loader: LoaderInfo = LoaderInfo (event.currentTarget);
    logoSWF = MovieClip (loader.content);
    addChild (logoSWF);
    }

    function playLogo(event:Event=null):void {}
    logoSWF.logo.play (); 'logo' is the name of the instance to logo.swf
    }
    loadLogo();

    2. the animation of the logo in the logo.swf in the main timeline and has the astop() function in the main timeline.

    Solution:

    import flash.display.Loader;
    import flash.display.LoaderInfo;
    import flash.events. *;
    import flash.net.URLRequest;

    var loader: Loader;
    var: timer = new Timer (1000);
    timer.addEventListener (TimerEvent.TIMER, playLogo);

    function loadLogo() {}
    var url: String = "logo1.swf";
    loader = new Loader();
    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, completeHandler);
    Loader.Load (new URLRequest (url));
    }

    function completeHandler(event:Event):void {}
    Timer.Start ();
    var loader: LoaderInfo = LoaderInfo (event.currentTarget);
    addChild (loader.content);
    }

    function playLogo(event:Event=null):void {}
    MovieClip (loader.content). play();
    }
    loadLogo();

    ///////////////////////////////////

    I hope this helps.

    Best regards

    Etienne Das

    http://deepanjandas.WordPress.com/

  • How to play two audio tracks together?

    Original title: Please give me an answer as soon as possible.

    How to play two audio files.

    Is English spoken numbers and another with Hindi spoken numbers. These files are read on a single system after robin its mix of figures.

    How can I do?

    Hello

    You want to play both audio files simultaneously?

    If you want to play two music files at the same time, you need to use 2 media players. You will then be able to hear the two pieces of music at the same time of the machine.

    However, if you want to play the 2 files in such a way that for a moment plays English and then for a few minutes the other plays, you will need to use some sound capture software to cut clips from the original files and merge them accordingly and play.

    Microsoft doesn't have any audio/video capture software. However, you can use your favorite search engine to download any software cutting.

    Note: This response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there.

    Hope the helps of information. Please post back and we do know.
    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to play video / real-time in adobe AE cc of 2015 project

    as my title says, how to play video or Project in time REAL in adobe AE cc 2015?

    Sorry for the bad English

    THX.

    Are aware of the way in which you preview works in After Effects? If not, go here: all about previews in after effects CC 2015

    And, if you're new to AE, you should start here: starting After Effects

    If you know how to get a glimpse, but he is not reading in real time, it could be due to a bug in El Capitan. However, I don't know if you use Mac or Windows. If you are using Mac OSX 11.11.x, there is a bug in El Capitan. You can work around this bug by hiding your timeline during a preview. The best way to do that is to maximize the composition Panel. I do it by pressing on the "key on my keyboard (which is called the serious button it is located on the same key as the ~ [tilde key])." The keyboard shortcut can be different for you, if you have another keyboard or a different language of After Effects installation.

    More information in the post of Todd here: Re: after effects 2015 will not get a preview in real time after El Capitan updated.

  • How to play animation on Mouseover and mouseout/mouseouthandler() inversion?

    0 down vote favorite

    I am trying to create a simple animated navigation bar. I want to mouseover an image and you have an animation playing, then when you mouseout/mouseouthandler() the animation will play in reverse.

    I can get the animation to play on mouseover, but as soon as I put in the mouseout/mouseouthandler() code, it does not work. I'm completely new to Board, so if someone can give me a simple explanation on how to play/reverse animation on mouseover/out, I would really appreciate it.

    For now, I have an image, converted to a symbol, with another image (nav_on_1) nested inside. Nested inside the image is animated with the label "nav_on_1_play".

    My code for the passage of the mouse is below:

    SYM.$("nav_on_1"). Show();
    SYM. Play ("nav_on_1_play");

    Thanks for the comments, I was actually able to understand why it didn't work.

    I had to put on the image mouseenter mouseleave on the symbol that drives above it then initial. At the beginning I was putting the mouseover/out two on just the initial image, so when the symbol was animating and covering, the mouseout/mouseouthandler() was not set.

  • How to play FLV (or convert to SWF format) for the web

    I have Flash CS3, but currently using a trial for CS5.

    Measures so far:

    1 created the slideshow with all transitions, animations, etc. in Powerpoint 2010.

    2. exported to .wmv (using powerpoint)

    3. converts to FLV with Adobe Media Encoder (CS5).

    The FLV file plays a lot on my system (stand-alone), but I don't know how to play on my site.

    If there is a way to let him play on a Web site, can I also remove the control bar.  It is not interactive.  I want it to autoplay, loop and continue where he was, when people go to another page on the site.  It works with swf files I've worked with in the past, but I have used other software that I bought to convert pictures or animations as swf.  That technology has not stayed current with newer versions of software, so I try to use Flash for this, but I am now lost.

    I tried to find a way to convert a SWF, because I think it would be easier to work with... but I can't figure how to get it in Flash.

    If anyone can help.  I tried to figure out how to do for a long time.  I feel so close, still blocked.

    Thank you

    http://www.republicofcode.com/Tutorials/Flash/video_flvplayback/

  • How to play movies from memories in pictures for Mac?

    In iOS, there is a button to play movies, memories, but on my Mac, there is no such key.

    Memory starts to play, but is not full screen.

    How to play memory as I can on iOS?

    Also, memories can be shared from my Mac on shared albums and/or sync with my iOS devices?

    Thank you

    Hi Jerry,

    Thanks for posting your questions here in the Community Support from Apple. I see that you are curious about the visualization of your memories on your Mac. I'm happy to help answer your questions.

    It seems that it's not possible to watch movies from memory to a Mac. Take a look at the following information:

    Memory movies only work on your iPhone, iPad, iPod touch and Apple TV. You will see films of memory on your Mac.

    To answer your question on the sharing of memories, take a look at this information:

    Save and share your favorite memories

    You want to save a memory for later? Scroll down to the bottom of the screen and tap or click Add to favorite memories. You can find it in the album favorite memories from your Photos app. If you decide that you do not want to save a memory, tap or click on remove from favorite memories.

    When you add memory to your Favorites, preserve you and keep to go far when pictures creates new memories.

    You can also share your experiences with family and friends. On your iPhone, iPad or iPod touch, you can share movies of memory as you would share any other video. Read a movie memory, then tap to display the options for editing and sharing. Type and choose to share the movie via E-mail Messages, iCloud, sharing photos, Facebook, YouTube and more.

    On your Mac, you can share photos and videos that are contained in a memory. Click on to share through email, Messages, iCloud, photo sharing, Facebook and other.

    You want to make sure that you follow these steps for memories to be synchronized between your devices:

    Before you start

    Update your iPhone, iPad or iPod touch iOS 10 or later and your Mac for Sierra macOS or later.

    If you want to get the same memories on all your Apple devices:

    1. ICloud implemented on all your devices.
    2. Connect to iCloud with the same Apple ID on all your devices.
    3. Turn on iCloud photo library on all your devices you want to use with memories.
    4. Update your Apple TV (4th generation) tvOS 10 or later.

    Enjoy your memories in pictures - Apple Support

    See you soon!

  • How to play the next song with the repetition of the same song over and over again

    How to play the next song with the repetition of the same song over and over again.

    In this screenshot, shot an Apple article, you can see four icons at the bottom of the screen. Look at the third argument of the right, with the two arrows going in a circle. It's the repeat function. When turned on, you can tap the icon to turn it off.

  • How to play the QTVR mov in IMAC

    I have create a QTVR mov file in 3d software. Anyone know how to play the QTVR mov in iMAC? Quick time could not play it.

    You need to install QuickTime Player 7

    Download QuickTime Player 7 for Mac OS X 10.6.3 or later

  • How to play the song with .wma extension

    How to play the song with .wma extension

    If it does not DRM, use VLC. If so, no Mac OS X software can play or convert.

    (142864)

  • How can I share my books with another user?

    How can I share my books with another use?

    Your iBook and anything else that you have downloaded from the iTunes Store, are related (and allowed) to your account - they can be shared or loaned to other users.

  • How can I move an application to another screen

    How can I move an application to another screen

    Hold down the icon until they start to move. From there, you can tap the application that you want to move and drag it to the left or right to access the screen you want. Once you are finished, press the home button to complete the task and turn off the wiggle.

  • How can I copy Firfox bookmarks from another computer to this one?

    How can I copy Firefox bookmarks from another computer Windows running Firefox (which is also a Windows machine)?

    The profile is a file that store your personal information in a safe place
    Here explain how to save the profile

    Here explain how to restore

  • How to play (or convert) a file .avi on my MacBook Pro?

    How to play (or convert) a file .avi on my MacBook Pro?

    Probably by installing VLC, but some AVI files can not be played in Mac OS X; AVI is a container, not a format.

    (141493)

Maybe you are looking for

  • Where can I find a guide to all the options and settings available via the ' subject: ' Pseudo-URL? (With the help of FF 3.6.8)

    When I used latest Firefox support, several years ago I saw mention of a long list of options and parameters, using a local sort of URL, starting by "topic: I can't find it now. The text 'forums' that I've seen then seem to have disappeared and been

  • HP Mini netbook login reset password

    Hey is there anyone out there who could help me to crack the code on my computer hp laptop mini, its been about 2 years ive connected it. Its not the bios to display the password for the user account on the host... Help, please!

  • Precaution of the BIOS update

    Hi acer community So I have an Acer Aspire F5 - 572G - 595M, and I want to upgrade the BIOS to version 1.13. I'm a little nervous to do so. Why? Because: 1. it says on the description page "2.Update EC V2.6 to improve the performance of the game on C

  • How to plot graphs with a different number of values

    Hello guys,. After a few hours, I have to give up and you ask for help. The problem: It must be possible to disregard some of the measured values. The measure and valid points should appear in the same graph (for example, the measured values of 'x' a

  • Winload.exe missing or damaged

    Hello. I was working to clone my disk to a USB HDD (included). I think I can inadvertently done the USB HDD (empty; no OS) a boot disk. Now, I get the "there has been a change in software/hardware to the system; Winload is missing or corrupted"error