How to use the structures of the event for long-running tasks

I created a state machine that scans a cluster of Boolean controls in a State of 'home '. Most of the States run a Subvi or two in ~ 100 ms or less.

However, a State run for 10 seconds.

The code works but the user interface is limited because the controls are outside the cluster because they provide inputs to the structure of State machine case but do not cause changes in the State. In other words, I all orders cluster stacked vertically on one side of the main panel and do not have the flexibility to move the controls to the more intuitive positions on the Panel.

My question: How can I convert this code in a structure of the event and keep this long term 'event' and prevent that the operator by clicking another button event during the execution of this event?

Thank you

You say you have controls outside of your main code... You should really put these inside and manipulate them in a State of your state machine is initialized. This allows you to make changes to the code easier and limits of line entering your outside loop.

You can do different things to lock the user.

You can disable specific controls so that they can't be clicked or edited.

You can use the palette of the mouse to define the busy cursor and disabled again once finished, I do this a lot during treatment when my code something loads the user just clicked.

One of my favorites is to set a Boolean value in your data that passes through you event titled structure "disable mouse." When the value is True, a mouse down event will effectively reject the event, clicking on disable. I also added an event mouse move where if the bool disable the mouse is set to True, it moves an indicator of string with the mouse by telling the user why it is disabled.

If you want more specific suggestions, I suggest to post an excerpt of your code, or attach your screws, so that we can better help you.

Tags: NI Software

Similar Questions

  • Any how to use the Cloud for business training

    As in the topic I'm looking for inspiration, examples, how to use the Cloud for his work.

    My organization is a training, coaching and HR solutions company. (If you are interesting in, welcome to [deleted by Moderator])

    I believe that such tools as a Cloud technology could training more effective and more attractive to the user in its form.

    Will be grateful for any suggestion

    Wik

    Hello

    Please see the pricing and membership creative cloud plans | Adobe Creative Cloud

    You can also attach sales to understand plans and benefits.

    Contact us | Adobe

    Hope that helps!

    Kind regards

    Sheena

  • performance problem, when I use the lappy for long periods... he get odious

    I installed windows 7 in my lappy... When I use the lappy for long... he get odious... I'm irritating with that... and when I restart it started working as usual.please help me form this problem

    Hello

    1. have there been recent changes to the computer before the show?

    2. this happens to you when you work on any specific application?

    I suggest you follow the given steps and later a update on the State of the question.

    Method 1: Try to run the troubleshooter of Performance:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-performance-Troubleshooter

    Method 2: Optimize Windows 7 for better performance:

    http://Windows.Microsoft.com/en-us/Windows7/optimize-Windows-7-for-better-performance

    Important: when running chkdsk on the drive hard if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lost.

    Ways to improve your computer's performance:

    http://Windows.Microsoft.com/en-us/Windows7/ways-to-improve-your-computers-performance

    For all windows questions do not hesitate to contact us and we will be happy to help you.

  • How to use the DPS for a daily with as wordpress content management system

    Hello

    I use the DPS for magazines.  I would like to use urgent for a media company.  the content will be in the form of such as wordpress content management system, joomla.  I know that I can download html in pages content.  How can I display content such as the New york Times and the Washington post on iPad using digital publishing suites?

    Hello

    Please send me a private mail (ktukker at_sign adobe d o t - com) with your question and description of the workflow. Can you give me some links to sample from the Washington Post / NYT that you talk too much?

    You can associate a workflow HTML with DPS. Take a look at the application of Shell scenarios; content has all be created in the HTML articles.

    Shell scenarios: https://itunes.apple.com/nl/app/scenarios/id605820338?l=en&mt=8

    -Klaasjan

  • How to use the widget for payment? I was told that it was already in my library of widgets. But it's not.

    How to install the widget for payment? I was told that it was already in my library of widgets. But it's not.

    Hi, Edwina,.

    The default widget is paypal: How to add a PayPal button. Adobe Muse CC tutorials

    Or you can refer to Adobe Muse Widget Directory for third-party widgets.

    Kind regards

    Akshay

  • How to use the complete for FLV as3 component method

    Hi team,

    I use one component FLV dragged to the scene and then bringing video content.  How can I make visible = false when it has finished playing using the COMPLETE event?

    See you soon.

    void

    If the name of your component instance is flv_pb, use:

    flv_pb.addEventListener (Event.Complete, completeF);

    function completeF(e:Event):void {}

    flv_pb. Visible = false;

    }

  • Web service data control - how to use the data for the axis2 service manager

    Hello

    I have the following questions:
    I consume a Web service using the web service based on axis2, MTOM data. The webservice response returns a complex response object.

    1. How can I link the (type axis2 DataHandler object) the response content to be stored in a column of data?
    2. in the response object, the name of the file is stored in a hash table structure, how can I retrieve the value of a specific key only? In an ideal world, it's a no-brainer, in ADF(newbie here) I do not know how to extract it?
    3. in addition, the display of collectibles for a response from webservice with a radio button beside each line?

    Any help is greatly appreciated.

    Thank you
    J

    Published by: 843190 on March 22, 2011 18:16

    Published by: 843190 on March 22, 2011 18:20

    Is the part of the information that you want to display available as a separate attribute in the results of the Web service in the data control panel?
    If not, and you do a manipulation of the result to retrieve content, you can consider creating a Java proxy for the Web service, in that proxy to expose a method that gives you the news you need and then expose the proxy as a data control. Then, you can call the specific method to get the specific information in the format you need.

  • How to use the Call executable to run a ping command?

    Hello

    I use TestStand 2014 and that you want to use the executable call to open cmd.exe and run ping 127.0.0.1

    To do this, I currently inserted C:\Windows\system32\cmd.exe to the path of the file and "ping 127.0.0.1" to the Expression of Argument.

    But it opens the command window when executing the step.

    How can I get it corrected?

    Thank you

    Ed.

    Solved: Only the /r parameter was missing in the Argument Expression before the Ping command.

    Hello

    Ping is an independent executable tool. This isn't an argument. The executable is under "C:\Windows\system32\PING.exe". Configure step to call Ping.exe and give arguments like "127.0.0.1".

    You can use the attached sequence.

    Thank you

    Sirot S

  • How to use the GPU for the AMD over-pants D500 in Mac pro 2013

    I install the first CC 2015 Pro and After Effect CC 2015 to 2013 with the graphics card AMD over-pants D500 Pro Mac, I can set GPU rendering in Premiere Pro, but impossible to define in the After Effect, only can use the CPU in the preview of the setting, how can I do?

    AE uses only a few NVIDIA CUDA enabled cards to speed up rendering drawn with RADIUS. This feature never quite worked, with disabilities masks and effects on layers 3D, and NVIDIA has changed the direction of their development of this technology for the Ray-traced rendering feature is is more developed by Adobe. They are working on another technology to use the GPU, but it is not yet available. There is nothing you can do to enable the GPU acceleration, unless you have a compatible NVIDIA card.

  • How to use the Socket for AS3 networking?

    Hello, I'm a Flash game and have successfully obtained the RTMFP to work, but it is not very reliable and has a little loss of packages inside. I've heard many people only using TCP (socket), it is much tighter, but I have no idea on how to do it. I've Googled it many times, yet I really can't seem to find a clear answer. I hear you must have a server... How do you get one? Is it possible to make your own simple server that people your LAN can play? Thanks in advance.

    Yes, you can make your own simple server using the ServerSocket class and connect with the Socket class. And then you have TCP... it's actually pretty simple. Discover the ServerSocket docs to start, and there are also many examples if you googled around.

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/NET/ServerSocket. HTML

  • Need help to understand how to use the SDK for our use case

    Hi all!

    I'm having a lot of problems with understanding the SDK and how to work with it.

    The documentation available only is generated comments PHP which summarizes the methods, variables, about classes and groups.

    It is a reference that helps a little more on the technical aspect of the classes and their relationship with each other, but it IS NOT tell me, for example of one of the sample files:

    echo "-ch. |" -netmoref < netmoref > [choose] Vim portgroup MoRef. Required to create. \n » ;

    It's the example script that creates an external network, what I have to do to set up a new client, organization.

    Another unknown is what is a "fence Mode" in the present: $config-> setFenceMode ($fenceMode);

    Another concept of basis of the SDK I could not really grasp yet - is why some of the classes start as VMware_VCloud_API * while others are VMware_VCloud_SDK *.

    Another example? in the scree of new organization of the GUI, in terms of policy, there is a section 'Limits' - I searched carefully and found no corresponding SDK/API method in the documentation!

    Also, I couldn't find a way to delete organization (when a customer cancels a subscription, for example).

    I apologize if my attitude invades a bit on the angry side, but I was home for a while now and every time I get more irritated watching the "documentation" try to understand something

    Nevertheless, Kimberly Wang code is simply remarkable and very well written, just help to know how to make this huge puzzel I wish (even in the sample code that I do not understand how to find the right order of things in nesting objects in order to do something like object of class VMware_VCloud_API_OrgSettingsType for the parameters for example then feed him in a VMware_VCloud_API_AdminOrgType (as well as other parameters - why are they not in the $settings object? And finally another object of VMware_VCloud_SDK_Admin is to truly create the Organization!

    Why the VMware_VCloud_API_AdminOrgType couldn't be the class doing the creation of the Organization)?

    This is a brief summary of the things I'm trying to understand.

    Perhaps, I missed some sort of guide for this? and if not, I would be very grateful if someone could explain in a few words to help me to understand this puzzel so that I can start doing my work and build something out of these awesome (even if cryptic) building blocks!

    Thank you

    Sorry, you must use

    $SDKAdminOrgObj = $service-> createSDKObj ($adminOrgRef);

    It should return you a... Object SDK_AdminOrg.

  • How to use the trigger for Hammer

    Hello

    I used a hammer and an accelerometer of pcb to do some tests of beam. I want to express signal for start of log data after I use the hammer hit something. Here is my configuration in express signal.

    Trigger type: analog edge. Source of relaxation: the channel of the hammer
    Slope: fall. Level: 0

    However, once he began to run, it says "logging was stopped because an error occurred with a step in the project. If this error is due to a device buffer overflow, you can improve performance by disabling updates to screen using the "view > views of Signal update during the race" menu item. You can also change the way in which the signals are recorded by changing the Logging Options in the tools > Options dialog box. Disabling "Prepare the log for display data" will greatly improve performance. "I've changed everything, but it didn't work.

    Should I use other types of trigger?

    Thank you
    Ningyu


  • How to check the event for any activity view?

    My PC wakes up in the middle of the night recently, and I would like to know what to check the event viewer and see what type of program wakes up my PC for the Hibernate.

    Does anyone have any suggestions?
    Thanks in advance for your suggestions

    I would look at the branches and Application System.

  • How to use the validator for an inputtext inside the af: column

    Hi Experts ADF,

    Jdev version 11.1.1.7.0

    I created a datacontrol pojo based. And trained as a table in a jsf page. I have a column in which I have an inputText.

    Initially the inputText is a certain values as 0, 10 and 12 respectively.

    Now, I want the end user to change some values in this column and the validation range must be between 1 and 10000.

    But after using the validator if other lines have default values 0 then validation is triggered for all lines.

    Thank you

    AR

    Try to put the table in clickToEdit mode.

    Timo

  • How to use the carousel for the page navigation in the Page of Index

    Hello
    I want that the componet carousel for the Index Page.Each carouselItem should have a click Image.When on the image that he must break into a new appropriate pages.

    Kind regards
    Tom

    Hello
    Follow this procedure,

    1.Premier, create a view object with imageURL and pageName as its attributes,
    2. drag and drop the object from view of the DataControl in Jspx page
    3 inside of the carouselItem, drag and drop the af: commadImageLink
    4. inside of the commandImageLink do drag a setActionListener and bind the item.pageAction with a property in the managed bean,
    5. in the commandImageLink property inspector.
    In icons, give #{item.imageURL} and Action link it to a method in the managed bean that method must return the page action that is taken by the setActionListener

    Now run the Application

    Kind regards
    Felix

Maybe you are looking for

  • How to exit mode full screen on a Tablet PC to operate Win8.1 and no physical keys?

    Accidentally I clicked on the option Full screen but now the icon Menu not coming back and I not minimized nothing I don't know to return to the mode.

  • Cooling warning on Satellite L500-19Z

    Hello I'm on a Toshiba Satellite L500-19Z and I get the "warning: a problem with the cooling system has been detected." Message please turn the computer off immediately and return it for service. The cooling system apparently works very well: PC Heal

  • BitLocker does not apply on a T400

    I have problems of application of bitlocker on a T400 Windows 7 64 bit despite the smart TPM is enabled in the BIOS. Evertime I try to launch bitlocker, I get the below error message: "the module trusted platform module (tpm) has not been activated."

  • Printer network disconnected by Win - 7?

    I added that a Win PC - 7 XP network works with a shared network printer (HP Officejet Pro L7680), now the XP cannot go to the printer. Impressions are sitting in a queue. I downloaded the fresh drivers from HP for XP, (0), I uninstalled, ran CCleane

  • Is there a page limit to send an attachment?

    If an attachment page 20 or more can be sent by electronic mail? Or is there a limit of pages by e-mail?