Pause function working with haptic joysticks.

I've come into an internship, and have been working on some code. What is being done is information is read from haptic joysticks for transferal to different cRIO setups. The next thing I would like to be able to do is pause the application with one button press on the joystick while still reading for the a different button press to continue the application. From what I can see there is no easy way to continue reading data from the joysticks while also pausing the application without rewriting larger portions. Am I just missing something or is there an easier way?
If anyone would like to look at the code, it is included. The test parts in question are in inner frame seven, as well as the bottom of the parent loop. The example in the bottom currently has a stop button for test purposes, but I would like to just have it be with one button press on the joystick.
Attachments:
NB Control 2.vi ‏91 KB

You are right, there is no easy way to get to where you want to go.
The first problem you will encounter is figuring out what the cde is actually doing -- and with the number of sequence structures you are using, that won't be easy. You also need to connect up your error clusters so you can tell if an error occurs.
You have a lot to learn about LV and should go through some of the online tutorials, but to do what you want the approach I would start with is to create a loop with an event structure in it that has a timeout event. In this event handler, put all the logic that you want to be able to start and stop. Next, create a shift-register to hold the timeout value -- this way to "pause" the VI you just pass a -1 to the timeout  to disable it.
So create two buttons called "Pause" and "Resume" and define separate value change events for them. In the Pause event handler, pass a -1 to the shift register. In the Resume event handler pass a number that is equal to the desired update interval (in msec). 
That's the barebones approach at least.
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 E-mail functionality works with Interaction Center Webclient

    Dear all,
    How the E-mail functionality works with IC Webclient, How can we can send and receive E-mails to customers and internal employees through Interaction Center.
    Does SMTP server required to be involved for this functionality or External Telephony system Vendor iprovides this function.
    What is ERMS? and why we use this in IC Webclient.
    Please educate me to understand the concept of E-mail functionality in IC Webclient.
    Your help will be highly appreciated.
    Best wishes,
    Raghu ram.

    Hello Raghu ram,
    The SAP CRM Interaction Center uses a concept of a shared email inbox for agent teams. This allows customers to communicate with your Interaction Center by sending emails to a corporate email address like service@yourcompany. You typically group your agents together into queues based on a particular product or skillset. Using this concept, customer's don't send emails directly to a specifc agent's email address, and agent's don't send emails directly to each other. That would rather still be done with groupware products like Microsoft Outlook.
    You have three options for routing emails into the CRM Interaction Center. You can push emails real-time to agents via a screen pop using third-party contact-center software like SAP BCM, Genesys, Avaya, and so on. Or there are two options for sending emails into the agent inbox, where the emails are processed in offline mode by agents, technicians, and engineers. You can route emails directly to a specific inbox group/queue by using different emails addreses. Or, you can leverage ERMS to decide where which agents to route the email to based on business rules.
    Please see the various notes mentioned above that appear in the sticky note on top of this forum. For example, there is a nice 85 page FAQ document on the Agent Inbox in note 882653. And ERMS note 940882 is also very useful.
    Regards,
    John

  • Does ORACLE functions work with Oracle Database 10G

    Hi,
    I am wondering if ORACLE functions work with Oracle Database 10G or is it mandatory to use OCI functions?
    Thanks in advance!

    I was able to run a simple query with ora_* functions using 10g on Windows.
    The Oracle OCI calls used by PHP's ora extension still exist in the Oracle 10g libraries
    But I cannot recommend this obsolete extension.
    -- cj

  • Does the bluetooth function work with the scanner function on my Photosmart C5550?

    I have a new Dell computer and an HP Photosmart C5550.  I use bluetooth to connect to the print. The printer function works correctly but the computer does not recognize the scanner function. Does the scanner function work with bluetooth?
    This question was solved.
    View Solution.

    Sorry. I hit post before I could elaborate. Not sure what I was thinking. The Bluetooth connection will only support printing. To use the scan feature you will need to connect the printer using a USB or network connection. Hope that explains it a bit better.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Why can't I get the average function work with empty cells?

    Why can't I get the average function work with empty cells?

    The thing that I am having a problem with is that I made a different form that calculates the average no matter how may of the cells have numbers or not and I didn't use an if function.  I have tried with this other form and and it calulates as if all the cells where being used.  I am using the [*] in both instances but it only works in the one I did earlier.

  • How does the sync functionality work with large libraries on small devices?

    How does the sync functionality work with large libraries?
    Say I sync 100gb of photos with the new Photos app and turn on sync on a 16gb iphone. Will it fill the device up to 16gb? Can I tell it to limit to xgb so I leave room for music and apps? How does this work? Will it slow down my phone if its trying to sync 100gb across smaller devices?

    "Will the Apple TV now read directly from the Time Capsule?" ATV does not 'read' from the TC. It connects to the Mac and itunes library associated with the Mac. Of course the itunes program can 'point' to a library on the TC. You'll still need to have itunes open and the Mac powered on and not sleeping with the TC mounted to the Desktop to use ATV properly. So bottom line the use of TC just adds one more step to view files on the ATV.

  • Does magic mouse track pad functions work with OSX10.5.8?

    Does the Magic Mouse track pad function work with OSX 10.5.8? Or do I need updated software to use all of the functions?

    The Magic Mouse system requirements:
    Mac OS X v10.5.8 or later with Wireless Mouse Software Update 1.0* or Mac OS X v10.6.1 or later with Wireless Mouse Software Update 1.0
    The Magic Trackpad requires 10.6.4 or later.

  • What functions work with iPhone 3GS on OS4 with Apple wireless keyboard?

    I've successfully paired my Apple Wireless Keyboard with my iPhone 3GS running OS4. I can type messages and emails, but many functions seem to be missing, like moving to the "send" button in email or moving around my iPhone screen. Does anyone know where to find info on what keys on the wireless keyboard perform what functions on the iPhone? Thanks

    Joe Z in VA wrote:
    Does it matter?
    On topic, there are a few things that work with the keyboard on to iPhone:
    * F1 and F2 - Brightness
    * F3 - Disabled
    * F4 - Disabled
    * F5 and F6 - Disabled
    * F7 - Previous Track
    * F8 - Pause/Play iPod
    * F9 - Skip Track
    * F10 - Mute
    * F11 - Volume Down
    * F12 - Volume Up
    * Eject - Disabled (unless Apple adds a mini-Disc)
    * Caps Lock - YEAY
    * FN Control Option/Alt Command - All Disabled DOH
    * Arrow Keys - YEAY
    Wow, troll. Stop bringing up dead threads...especially when you can't get your information correct.
    The eject key hides and displays the softkeyboard in text entry mode.

  • Will the magic mouse track pad functions work with OSX 10.8.5?

    Will the Magic Mouse track pad functions, i.e. scroll, zoom work with OSX 10.8.5.? Or do I have to upgrade to get those functions to work?

    Yes, they'll work with 10.8.5.

  • Pause function works, but I loose soundTransform

    I am stumped on pausing a sound and keeping the volume sound transform on play again.  Pause works, but when I play again it plays correctly from pause position; however, the sound transform vol reverts to 1 (100%)
    //soundbed vars
    var mySound:Sound = new theme();
    var sndVol:SoundTransform = new SoundTransform(0.2);
    var channel:SoundChannel = mySound.play(0,2,sndVol);
    /pause function
    musicOn_mc.musPause_mc.addEventListener(MouseEvent.CLICK,togMus);
    function togMus(e:MouseEvent) {
    var pausePosition:int = channel.position;
        if (musOn) {
            channel.stop();
            musicOn_mc.musPause_mc.gotoAndStop("off");
            musOn = false;
        } else {
    //THIS IS THE PROBLEM
           channel = mySound.play(pausePosition);
            // ???? any idea how I would re-apply the sound transform?
    //END OF PROBLEM
            musicOn_mc.musPause_mc.gotoAndStop("on");
            musOn = true;
    Thanks

    If you look in the Help you will see that each time you call play a new channel object is created and assigned the variable - so you lose the old transform. You just need to reassign it...
    channel.soundTransform = sndVol;

  • Does family share function work with the family members in China?

    I have two family members who use iphones in China. I wonder if family share works with them overseas. Thank you.

    Hi,
    If you have iChat 3.1.8 then you are past Panther and on Tiger and can multichat if your computer is good enough (G4/1ghz single processor or above)
    Yes it is compatible with iChat 4 (and iChat 2 for that matter).
    Some of this info for us may be helpful
    http://discussions.apple.com/thread.jspa?threadID=527902
    10:17 PM Wednesday; December 5, 2007

  • Only some functions work with new CS5 install

    I just installed CS5 and was checking to see what had changed from the CS3 I used to use. So I opened a new document, drew a rectangle, and tried to change the stroke. When I use the Stroke pallet I cannot access either the weight or the type adjustments...either the up/down arrows, the pull-downs, or my typing in the box. Same for the toolbar buttons.
    I can create a text box like normal but I can only change type characteristics using shortcut keys, not the buttons on the toolbars.
    These are pretty basic IND functions.
    Has anyone else suffered a similar install where only about half of the functions work?

    I dunno if I qualify for "geezer" but I sure would like some larger fonts so I can get a better look at my large fonts:
    The worst part is that yes, this is legible Chinese text, technically speaking. But a fix for ye olde Aero bug would save me a great deal of eyestrain.

  • How  can you avoid that an ABAB-Function works with an  EXPORT_PARAMETER

    Hello everybody,
    I have to call the ABAP-Function ECATT_EXECUTE via JCO.
    In SAP 7.0 there is a new EXPORT_PARAMETER for the function ECATT_EXECUTE, which is called E_RESULT_XML.
    There is a statement "IF E_RESULT_XML is requested" which gives always TRUE, so that the function tried to fill this Parmeter and an error occurred while processing.
    How you can avoid this ?
    What you can do, that this IF-Statement gives FALSE ?
    Every helpful hint is welcome !

    Hi Klaus,
    It may be because when calling a function via JCO all import/export/table parameters are always passed with the call.  Have you tried running the function from a test ABAP program and NOT requesting the parameter E_RESULT_XML?  If that works ok, the simple solution is to create a custom wrapper function module that you can call from JCO, which will call ECATT_EXECUTE for you ignoring E_RESULT_XML and then return the results to your Java.
    Hope this helps,
    Gareth.

  • Way to use an animation panel function working with DPS

    I’m making a mobile magazine using DPS in Adobe Indesign program.
    Is there a way to use any function on animation panel?
    I want to apply fade-in & fade-out effects to the mobile magazine, and I’ve tested it several times with smart phone and Adobe Contents Viewer but it does not work.
    (I have used an animation function in different mobile magazine before.)
    and plus,
    When testing, image and text on the scroll frame are not seen because of scroll frame.
    Waiting for an answer from who are advanced in this program.

    MungukBae wrote:
    Is there a way to use any function on animation panel?
    Not without a third party solution. Check out in5. http://indesignsecrets.com/in5-include-indesign-generated-animation-dps-articles.php
    When testing, image and text on the scroll frame are not seen because of scroll frame.
    That makes no sense to me. Can you expand on it?

  • IF functions working with T functions

    I'm working on a Numbers form where I want two sheets to talk to each other. I started with creating a pop-up menu in one cell, and a completely separate sheet with text information. What I want to happen is when I choose one pop-up selection, the cells in the main sheet will talk to specific cells in the other sheet to create information.
    Example: When I choose Bob Jones from my drop down in the Info Sheet document, the cells in the sheet will pull information from Bob Jones' Data Sheet.
    I know it should use an =If() function and a =T() function, but it keeps giving me errors! Help!

    melika0904 wrote:
    =IF(B1="Smith, Joe (TEST)",=T(TEST Billing :: C6,"))
    Hi melika,
    Yvan has provided a pair of corrected formulas. What follows should be considered a tutorial example on trouble-shooting these kinds of errors.
    There are at least three visible errors in this formula. At least one of them is one of the finicky little things that catches us all at one time or another.
    The = sign serves two purposes in formulas.
    Placed at the beginning of the formula it indicates to Numbers that everything following is a formula.
    Placed within the formula (as 'B1="Smith, Joe (TEST)" it is a comparison operator that compares the contents of B1 to the text string Smith, Joe (TEST). If they are the same the operator returns TRUE, if they are not identical, it returns FALSE.
    The third = sign, placed within the formula, is also interpreted as a comparison operator, and, as there's noting on its left side to compare, will return an error. It is not needed to identify T() as a function. remove the = sign.
    The pair of double quotes containing "Smith, Joe (TEST)" identify their contents as a text string.
    Near the end of the formula there is a single double quote character ( " ). My assumption is that this is intended to make IF return 'nothing' if the IF condition is not met. The format for that is the empty string—a pair of double quotes with nothing between them ( "" ).
    Commas serve as separators between the arguments of functions that have more than a single argument. There are two functions in your formula, IF(), which accepts either two or three arguments, and T() which requires (and accepts) only one argument.
    Placed where it is (inside the brackets for T(), the final comma is interpreted as a separator between two arguments for T(). Place one of the two right parentheses immediately after C6 and before the comma. That makes the material following the comma (corrected to "" ) the third argument for the IF function.
    As Yvan notes, you could also remove the T() function itself, leaving only the cell address as IF's second argument.
    That would make your (edited) formula:
    =IF(B1="Smith, Joe (TEST)",TEST Billing :: C6),"")
    which returns the contents of cell C6 on the table TEST Billing if B1 contains Smith, John (TEST), or the empty string (which displays as an empty cell) if B1 is empty or contains anything else.
    Regards,
    Barry

Maybe you are looking for

  • Why can't I print from Illustrator a non-faded print. It always prints as if I wanted a  proof or something.

    Why can't I print from Illustrator a non-faded print. It always prints as if I wanted a  proof or something.

  • Remote Desktop Connection Client 9.3.9600 unable to connect to Server 2012 RDS via Gateway

    Hi, I have a Windows Sever 2012 R2 RDS environment with two Gateways servers configured in high availability mode (RD Web Access, RD Gateway, RD Connection Broker roles installed) and four Windows Server 2012 R2 RDS Session Hosts. The servers are all

  • Deploy same EAR twice in WLS

    Hi, I have an application developed under Jdev 11g. I prepared my ear file. I need to deploy the ear file twice on the same WLS. I deployed the first time. The second time i was told that the context "CGB" is already user. I created a deployment plan

  • Is Airport Extreme a real router ?

    Hi, Apple does advertise the AEBS as a router. But is it a genuine router? When I compare this to other routers, then I am able to locate the WAN port in a different network as compared to the regular LAN ports or the Wireless. So for example, can I:

  • Access  error

    When I attempt to convert a PDF file to Word using Export PDF, I receive an error message "An error occurred while trying to access the service".  No other words or hints as to the cause are offered.  My subscription to Export PDF is current and ther