How to attatch sub vi . can we do it the same way as we call functions in C and return values to the main vi?

I am creating a Vi. I want to do a sub function. I want to connect a switch to a toggle flip flop so need to  use a push button switch in the input  but at the same time take its output to a true/false loop and execute it according to the ourput of the toggle flip flop which will have an ON and OFF state.
Jeril

In the front panel you can r-click the top right icon and "Show Connector". Click which controls and indicator you want to be your interface. Then drag it to your main application and it'll work as a sub-vi. You can do this for all VI's. Just like the "+" VI takes two numbers (controls) and return one result (indicator).
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV

Similar Messages

  • How can I see my reminders in my Mac in the same way I see them in my iPad and iPhone

    How can I see my reminders in my Mac in the same way I see them in my iPad and iPhone, I is easier to work with reminders in Ipad and Iphone rather to see them like a list on ICal

    The calendar seems to be the only way to see reminders right now. I'm aware of no 3rd party program that deals with just reminders...but I'd like to find one.

  • Satellite L600: How can I turn off the main Wireless Communication Switch?

    Hello! Would be very grateful for any help....after struggling for 3 months I finally signed up here hoping to get some help.
    I have a new Satellite L600/ Win7 Home Premium.
    My questions is that I can not find where the MAIN wireless switch is in order to turn wireless off COMPLETELY.
    Everytime I start up, the wireless (orange) light switches on automatically.
    I have to wait till start up finish and manually turn it off by Fn-F8.
    When I open ConfigFree, (or Connectivity doctor), the diagnosis on the bottom left says [STATUS" Wireless Communication Switch: ON]
    This tells me the main switch is somehow still ON.
    I called Toshiba twice and they couldn't find it either.
    They said the new versions of BIOS doesn't allow it...? And for this model there is no physical switch built on the PC itself.
    I have looked everywhere and did the following:
    (1) Disable the adapter from Device manager.
    (2) In HWSetup, where there used to be an option to click the wireless switch off, it is not there anymore.
    (3) I went into BIOS setup and could find nothing remotely related to wireless/bluetooth to switch.
    I'm just wondering why there is a laptop with wireless switch ON permanently? But if it's ON, there must be a way to switch it off. Press Fn-F8 every time on start-up is not a long term solution as risk is I'll forget one day).
    As my last laptop was hacked before it is top priority that I know how to turn off ALL wireless function. So even if I have to do it via Commands, I will try it. Also, I'm not sure if anyone else experience the same with this model, or is this a defect in my particular PC?
    Any help or same experience will be much appreciated, thank you.
    I disabled the adapter in the device manager.
    When I open ConfigFree, the Connectivity doctor tells me the Wireless Communication Switch: ON

    Hi thanks for your replies! Sorry if I'm slow on the forum, at first I couldn't find where my thread went! Apparently it's moved to under Wireless. Is there alert message to let us know when my question is being moved?
    Thanks Paolo30, I am glad to know that Fn-F8 is enough. when I check Network Connections, the Atheros adapter is 'disabled'. Sorry may I ask if WLan card you are talking about in device manager = Atheros adapter? (Despite reading furiously on books to patch up my ignorance on the wireless last few weeks, still not sure the difference between 'adapter' and 'card'... :) Are they the same thing?
    Thanks Xardas. I checked the status in device manager and Atheros adapter is 'disabled'. I'm glad to know everything is ok if I see that! :) As my laptop was tampered wirelessly (and I don't know how they did it), I bought a new one and it's important for me to know it's 100% safe. Still, I want to tell Toshiba engineers it would be great to find out where this mysterious Switch is. It's not good to feel there is some sort of wireless capacity always ON and my PC may be emitting some wireless signals for serious baddies?

  • I installed my new Apple TV and successfully completed the configuration (Wireless network, Apple ID, and others) yet I am always in the Computers and Setting page- can't move to the main page – any idea on what and how, please?

    Hello, I installed my new Apple TV and successfully completed the configuration (Wireless network, Apple ID, and others) yet I am always in the Computers and Setting page… can’t move to the main page – any idea on what and how, please?

    Welcome to the Apple Community.
    Unfortunately, a number of users appear to have encountered this problem. Some of these users have reported that the problem just disappears the following day or shortly after. Other users have found various other solutions to this problem.
    Firstly, are you receiving any date and time errors when you turn on your Apple TV?
    Check that you are properly connected to the Internet, by ensuring that you have a proper IP address and not one starting with 169. Also check that your location for the iTunes Store is set correctly, if so you might try changing it and then changing it back.
    If the problem persists try restarting the Apple TV by removing ALL the cables for 30 seconds, or resetting it using the reset option under general. You should also try restarting your router, or if this doesn't work you might like to try a restore.

  • I bought a macBook Air, all my devices were synchronized on a old PC. How can my MAC be the main basis for my devices?

    I bought a macBook Air, all my devices were synchronized on a old PC. How can my MAC be the main basis for my devices?

    Hi Sodam,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Click on the link to see more details and screenshots. 
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/HT4527
    iTunes Store: About authorization and deauthorization
    http://support.apple.com/kb/HT1420
    Cheers,
    - Judy

  • My iPod nano 6G stop working suddenly; After i reset it and even afetr put it in "stand by" mode by accessing deagnostic mode, it is still not working; Now i can access it sometimes (the main screen), but is not playing and is too slow. How can i fix it

    My iPod nano 6G stop working suddenly; After i reset it and even afetr put it in "stand by" mode by accessing deagnostic mode, it is still not working; Now i can access it sometimes (the main screen), but is not playing and is too slow. How can i fix it

    If you do not find a solution in the iPod nano (6th generation) - User Guide, suggest that you call AppleCare if still under warranty or take a trip to your local Apple Store or AASP.

  • HT3180 how can i get to the main menu to watch netflix?

    how can i get to the main menu to watch netflix?

    Sorry that you are having this issue. Here is a link that may assist you with the problem. 
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c02677483&tmp_task=useCategory&cc=us&dlc=en&lc=e​...
    In your printer settings, do you have WIRELESS SETUP or WIRELESS SETUP WIZARD?
    The SSID is the name of your network. When the printer searches for a network, it finds your SSID, and you choose it. 
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • How can I back into the main screen without using the activator bottom?

    How can I back into the main screen without using the activator bottom?

    I assume you mean the HOME button. You cannot. The HOME button is the only way to exit an app.

  • How to call a dialog program with return value in another dialog program

    Dear All,
    How can I call a dialog program with return value from another dialog program?
    Regards,
    Alok.

    Hi Alok,
    You can you SET/GET parameters to do this.
    This is some information about this.
    To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETERstatements.
    To fill one, use:
    SET PARAMETER ID pid FIELD f.
    This statement saves the contents of field f under the ID pid in the SAP memory. The ID pid can be up to 20 characters long. If there was already a value stored under pid, this statement overwrites it. If you double-click pid in the ABAP Editor, parameters that do not exist can be created as a Repository object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID pid FIELD f.
    This statement places the value stored under the pid ID into the variable f. If the system does not find any value for pid in the SAP memory, sy-subrc is set to 4. Otherwise, it sets the value to 0.
    Thanks,
    SriRatna

  • I want to FaceTime with a friend in Japan.  Can I just call her through my contacts list the same way I would call my friend who live next door to me?

    I want to FaceTime with a friend in Japan.  Can I just call her through my contacts list the same way I would call my friend who live next door to me?

    Short Answer: Yes
    When they set up facetime, they either used an apple ID, or (for iphone only) their phone number.  You call using one of them.  An apple id linked email address in my opinion is simpler, as you don't need to worry about country codes and the like.  (I have never tried to facetime anyone out of the country, so I will admit I am not sure what you do about country codes.)
    These articles are a little dated, but should help you set up your or your friends facetime if you need to.
    Facetime Setup for iphone guide: http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-facetim e-set-up-use-and-troubleshooting-problems/
    Facetime setup for mac: http://simpleleapsoftware.com/blog/how-to-setup-facetime-on-your-mac/486/

  • Why can't I interrupt the main thread from a child thread with this code?

    I am trying to find an elegant way for a child thread (spawned from a main thread) to stop what its doing and tell the main thread something went wrong. I thought that if I invoke mainThread.interrupt() from the child thread by giving the child thread a reference to the main thread, that would do the trick. But it doesn't work all the time. I want to know why. Here's my code below:
    The main class:
    * IF YOU RUN THIS OFTEN ENOUGH, YOU'LL NOTICE THE "Child Please!" MESSAGE NOT SHOW AT SOME POINT. WHY?
    public class InterruptingParentFromChildThread
         public static void main( String args[] )
              Thread child = new Thread( new ChildThread( Thread.currentThread() ) );
              child.start();
              try
                   child.join();
              catch( InterruptedException e )
    // THE LINE BELOW DOESN'T GET PRINTED EVERY SINGLE TIME ALTHOUGH IT WORKS MOST TIMES, WHY?
                   System.out.println( "Child please!" );
              System.out.println( "ALL DONE!" );
    The class for the child thread:
    public class ChildThread implements Runnable
         Thread mParent;
         public ChildThread( Thread inParent )
              mParent = inParent;
         public void run()
              System.out.println( "In child thread." );
              System.out.println( "Let's interrupt the parent thread now." );
              // THE COMMENTED OUT LINE BELOW, IF UNCOMMENTED, DOESN'T INVOKE InterruptedException THAT CAN BE CAUGHT IN THE MAIN CLASS' CATCH BLOCK, WHY?
              //Thread.currentThread().interrupt();
              // THIS LINE BELOW ONLY WORKS SOMETIMES, WHY?
              mParent.interrupt();
    }

    EJP wrote:
    I'm not convinced about that. The wording in join() suggests that, but the wording in interrupt() definitely does not.Thread.join() doesn't really provide much in the way of details, but Object.wait() does:
    "throws InterruptedException - if any thread interrupted the current thread +before+ or while the current thread was waiting for a notification. The interrupted status of the current thread is cleared when this exception is thrown."
    every jdk method i've used which throws InterruptedException will always throw if entered while a thread is currently interrupted. admitted, i rarely use Thread.join(), so it's possible that method could be different. however, that makes the thread interruption far less useful if it's required to hit the thread while it's already paused.
    a simple test with Thread.sleep() confirms my expected behavior (sleep will throw):
    Thread.currentThread().interrupt();
    Thread.sleep(1000L);

  • The main part of the safari page is grey and won't respond/can't type in any commands.  I can move back through the previous pages, and even open new ones via the URL, but can't get onto the main part of the page and I can't get onto the 9 page option. !?

    The main part of the safari page is grey and won't respond/can't type in any commands.  I can move back through the previous pages, and even open new ones via the URL, but can't get onto the main part of the page and I can't get onto the 9 page option. !?
    Help, please.

    Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • When I try to access the store I can't get to the main screen. It freezes up. I have the latest version.  An

    I can do everything in iTunes but get to the store.  When I try to access the store I can't get to the main screen. It freezes up. I have the latest version.  Can anyone provide any suggestions or help?

    Also try to reinstall itunes do no t worry no media will be erased.
    http://youtu.be/3c90vXO8K5w
    Look into what security software you are running and disable it and also go to apple.com/support and search for
    itunes store connection issues by actually typing that into the bar next to support then scroll down to one of the TS articles and begin a jounrey of internet explorer configuration.
    I have done the looking for you all:
    http://support.apple.com/kb/TS1379
    http://support.apple.com/kb/HT1527
    http://support.apple.com/kb/TS1368

  • Using Flach CS4 and action script 2.0 how do I advance to a specific frame of the main timeline when a movie clip instance come to the end of its timeline?

    Using Flach CS4 and action script 2.0 how do I advance to a specific frame of the main timeline when a movie clip instance come to the end of its timeline?

    code on the last frame of your movieclip instance:
    _root.gotoAndStop('whatever_frame');  // will work unless this swf is loaded into another swf.  in that situation, you should use a relative path to the main timeline (eg,  _parent or _parent._parent etc).

  • How can I allow a sub-vi to run independent of the main program once it has been called while still sending data to the sub-vi

    I have a main program where I call a sub-vi. In this sub-vi, there is a while loop that is used to wait for commands in the sub-vi. While the while loop is running, I cannot continue with normal operation of the main program. I would like get the sub-vi to run independently once it has been called, but not hold up the main program. As well, I need to still be able to send data to the sub-vi

    One way is to use VI Server, which has been mentioned by others. This will allow you to start another VI (by name) and run it entirely independently of the calling VI. This is a good way to start various independent VIs from a main menu, for example. None of the VIs thus called need have any connection to the others.
    Another way it to have the SubVI in a separate while loop on the calling VI's BD. Then, use a local var to start this sub VI from the main loop. The calling VI sets a local START bit and continues running. The sub VI's while loop watches for this START bit to go true, and then runs the Sub VI. The advantage here is that one can more easily pass arguments to the SubVI when it is started, using local vars, which are preferable to globals. Once the Su
    bVI is running, however, you must use a global Stop Bit, set in the calling VI, to stop it when the calling VI exits, or the calling VI will hang up, waiting for the Sub VI to close and exit its while loop.
    If you need an example of this, email me. ([email protected]). I can also recommend Gary W. Johnson's excellent book which discusses this. ("LabVIEW Graphical Programming", 2nd Ed).
    Note: Where possible, I try to call a subvi from within the main VI, wait till it is done, then continue. It avoids the use of locals & globals, and results in cleaner code, with fewer "race" conditions. However, the main VI stops until the subVI is done, hence one should make the subVI modal.

Maybe you are looking for

  • Can't open project unless trash prefs or eject ext hd... ???

    I want to start off by apologizing ahead of time if I miss a detail or seem like I am rambling but I am going on 48 hours no sleep, half of which trying to figure out my problem, and my doc's air date is quickly quickly approaching. I will try to mak

  • How to open a file with a link ?

    I am using servlets to design an application. The application supports uploading and downloading of .DOC and .RTF files. My problem is that I am opening an uploaded file via a link. OPen File The above is also working fine and opens the file in the I

  • WRVS4400N Any chance linksys will fix the bugs?

    So, do you guys think there is any hope that linksys will ever fix the firmware on this router? I have to buy some more VPN capable routers and quite honestly I'm debating if I should just find a way to return the ones I already have and buy them all

  • Posting to One time Vendor with SPL GL indicator

    Hi Experts, I want to post to a one time vendor using a special GL indicator. Standard SAP does not allow this. Is this possible through some round about way  without a very big z development. if not then is there any other way out. Regards,

  • Reg : Are3 print out issue

    Dear experts, After posting are3 document print screen is populating but when we click print preview or print tab , we r unable sea print preview and print, if we click print/preview we r getting the massage are3 document has posted successfully , We