How to fire an event with a Boolean button only when you switch on IT?

Hi, I have a problem with my structure of the event: I use a value Boolean on/off button to launch a State (using producer consumer architecture).

When I turn it on, my structure of event get "change value" and the code is executed.

But when I turn it off, the loop in the code ends, but there is a problem: the event 'change of value' is activated again, and the code is run again.

How can I avoid it? It is not 'on' or 'off' events to the event structure, only "value change.

Here are a few screenshots, thanks in advance

J.D.,

Use the NewVal Terminal in the case of the event.  Who has the value of the control.  If it is true, queue the message.  If it is false, do nothing.

Generally, it is better to have order in the case of events and to send messages to consumers through queues.  Nested loops as you seem to have can create difficult problems of what must happen when.  It is unusual for a state machine need a nested loop which requires intervention by the operator.  Without the VI all I can really say what you do, but I strongly suspect that there are way more robust and easier to do.

Lynn

Tags: NI Software

Similar Questions

  • How to activate a button only when an item of component tilelist is selected

    Simple question, but it seems quite difficult for me. How to activate a button only when an item in a tilelist currently selected?

    For example, lets say if I have a button named button1, which is disabled by default and a tilelist component called tilelist1 that I should add in brackets the following (the enabled property of the button) code to make sure that the button is only enabled when an item in the tilelist component is currently selected but disabled when no item is selected :-

    enabled = "{}".

    Enabled = "{tilelist1. SelectedItem} ".

    that should do it, it is making an implicit comparison with null (tilelist1.selectedItem == null) which will result in a Boolean value.

    SelectedItem is null when nothing is selected, non-null when something is.

  • How can I get rid of the box that appears when you start Firefox 'Restore previous Session'?

    How can I get rid of the box that appears when you start Firefox 'Restore previous Session'?

    Subject: House is the default in Firefox 4 home page - look at the address bar containing the addresses of web page - it is the container for Google search, with a 'extract container' and below these elements is the Previous Session Restore button. It's not the same homepage that previous versions of Firefox used (although it is similar in appearance), it is a 'local' page that won't load the Internet.

    Set this page as your home page, which is what Firefox 3.6 and earlier versions had for the default home page. He has Previous Session Restore button/link.

    http://www.Google.com/Firefox

  • How is it that some machines running windows vista, when the router is updated or changed, they show "limited or local only" when you reconnect then wireless.

    problems with wireless Vista "local only".

    How is it that some machines running windows vista, when the router is updated or changed, they show "limited or local only" when you then reconnect wireless... nothing else was changed on those computers and other devices can connect ok?

    Hello

    Each router is assigned to the specific address (called IP address or IP address). And each router maintains its own database (called as base of router) to follow the networking devices communicate with him. When the router is changed, the particular router is unable to detect the device, especially the network card to communicate with the computer.  Since he does not have details of the database of network devices, communicate with him.

    • You are able to access the Internet?

    Try the steps mentioned below and check:

    Method 1:

    Step 1: Enable or disable a network adapter and then check:

    http://Windows.Microsoft.com/en-CA/Windows-Vista/enable-or-disable-a-network-adapter

    Step 2: Run Network Diagnostic tool and check:

    Network connection issues: http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-connection-problems

    Method 2: Wi - Fi and in Windows network connection issues:

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Reference links:

    Of network connectivity status incorrectly as 'Local' only on a Windows Server 2008 or Windows Vista-based: http://support.microsoft.com/kb/947041

    Setting up a wireless network: http://Windows.Microsoft.com/en-us/Windows-Vista/setting-up-a-wireless-network

    Connection to wireless with Windows Vista: http://technet.microsoft.com/en-us/library/bb878035.aspx

    Hope it works.

  • How can we change the default zoom setting so that when you open a PDF the size of the displayed document zoom is that you need it to be?

    How can we change the default zoom setting so that when you open a PDF the size of the displayed document zoom is that you need it to be?

    Hi CKWAZTRANSINC,

    Open Acrobat Reader DC, navigate to the Edit-> Preferences-> Page Display menu-> set your required Zoom percentage.

    Click OK to confirm the change.

    Restart the Acrobat Reader DC to test.

    Let me know if it solves your problem.

    Kind regards
    Nicos

  • How to associate a browser with a new tab. When I click on the new tab, it's a blank page. I would like to a browser to load automatically into a new table.

    When I open a new tab, there is a blank page. I would like to a browser to load into a new tab, instead of having to click a browser after I opened the tab.

    Firefox and IE are web browsers, where Google and Bing are the search engines.

    By default, Firefox has a blank page when you open a new tab, which can be changed with a few different extensions.

    https://addons.Mozilla.org/en-us/Firefox/addon/NewTabURL/

    Place it just to any web page or a page of search engine as you want to see in a new tab.

  • How can I change the list of actions that appear when you right-click on a file?

    When you place your cursor over a file, then right click, you get a pop-up window with a list of actions that you can do in the file. Depending on the type of file, you get a different list of actions. How can I change this list. Or add or subtract from the it. Where Windows keeps related lists?

    In Windows Explorer, remove it all also missing button?
    Try to restore the files ZIP file association.

    For Windows Vista file association problems
    http://www.Winhelponline.com/articles/105/1/file-association-fixes-for-Windows-Vista.html

    Make a right click on the zip link, save target under... Right click on the REG file and choose merge. Note that you must be an administrator to apply these fixes.

  • Problem with Internet connection - connect only after you turn off allowing then again.

    It is a recent problem that unfortunately I have very little information on. In other words, after months be happy and connection to the internet when you start the computer has decided he won't d more, instead he wants to deactivate and then activate the connection to the local network before it will connect.

    There is no error message and the convenience store could not find that something wrong then directed me here! I tried to diagnose too but didn't know what was wrong either. There are two computers connected through a router and the other is fine, ISP technical support assures me it's nothing to do with them either.

    It left me speechless. I tried the system restore, I crossed the two diagnoses available in internet options and I called ISP support. Although this isn't a direct threatening problem, it's one of those little niggles you want just leave.

    If anyone has any ideas on how to fix things, I'd be grateful.

    * Acer Revo running Win 7.

    Hi tmaxwell83,

    1. did you of recent changes on the computer?

    2. do you have security software installed on the computer?

    3. What is the type of internet connection you use?

    This would happen if the NIC driver is corrupt or needs to be updated.

    I suggest that you install the updated drivers for the network adapter on the computer by visiting the network card or the computer manufacturer Web site, the check if it works fine.

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

    Network adapter problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-adapter-problems

    I hope this helps!

    Halima S - Microsoft technical support.

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

  • How to fix the text so it is not jumping when you type?

    I have Windows 7 on my Dell laptop.  When I type "anywhere" the characters jump all over the page, I type in.  How can I fix it?

    Hello Michele,

    A fairly common problem for laptops - its caused by the thumb, finger or palm (s) hit the Touchpad when you type. The infallible remedy only is an external mouse with Touchpad disabled. To do this, or just disable the Touchpad, go to control panel, select mouse properties and select the Touchpad tab in the top row of tabs.

    This will open an applet that allows you to select the order of Touchpad buttons, a check box parameter to disable the Touchpad when an external mouse is detected.  If you want faster access to this setting, make sure to display the icon in the system tray is also checked, and you will be able to access this setting in the notification area (bottom right of the task bar, click the arrow to access the Touchpad icon).

    To avoid problems to repeat in the future, make sure that if you go to Device Manager to "RID" the Touchpad you only disable the Touchpad as opposed to uninstall the Touchpad. If you uninstall the Touchpad, the next time you restart your computer, the applet will appear again back in place. You can only disable the Touchpad to get rid of him.

    Let me know if this solves the problem for you.

    Kind regards

    BearPup

  • Problem with Photoshop CC 2015, crashes when you click PRINT

    Hi all, I have problem with protoshop CC 2015. When I click on 'print', photoshop crashes. It happens when I am trying to print pictures that I printed before. New images work fine. It seems that there is save the settings to print on these images and photoshop can not find them because the printer driver has been reinstalled. How to solve this problem?

    The HP printer driver crashes - so HP is the only party that can help you, because they have to correct the bug in their printer driver is the cause of the crash.

  • How to prevent a new tab in Firefox to open when you open a PDF file in Adobe.

    First of all, this problem started Monday, August 25, 2014 when I was forced to update Firefox to log in my accounting online program. I had no such problem in the previous version of Firefox.

    When I open a PDF document to an e-mail (which displays a Firefox icon next to it), the document opens in Adobe reader, but also a blank tab opens in Firefox, even with it is not already open. When I close the PDF, the Firefox tab remains open and I have to close it manually. Happening with PDF documents that I saved to the network of my company or my computer (which have the Adobe icon). I don't want to have to save a PDF file on my computer as a workaround for this problem.

    Under Tools > Options > Applications, I already spent the Adobe/PDF options to open it in Adobe. In addition, in topic: config, the value of 'pdfjs.disabled' reads 'true' and 'plugin.disable_full_page_plugin_for_types' contains "application/pdf".

    I work with a lot of PDF files and I'm frustrated to the point where I'm about to uninstall Firefox and just use Internet Explorer.

    Hello, it works when you enter in the Acrobat > edit > Preferences > General & click on the application by default option at the bottom? to reselect it adobe application and confirm this selection...

  • How can I get Firefox to open a new URL when you enter a URL that already has an open tab?

    When you enter a URL that you have already opened, Firefox instead of opening a new tab back to this tab where the URL was already open. If you cannot open duplicates.

    How can I disable this feature?

    Thank you!

    I have already installed Omnibar, but now also installed Omnibar. This seems to have taken the trouble of having the switch so that the first variant.

    I recommend so these two addons that also makes the top address bar! Like the excellence of Google Chrome.

  • How can I solve the error 2503 and 2502 codes when you try to install a program?

    When I try to install a program I get the error 2503 and 2502 codes, what should I do to get rid of them?

    2438651 how to solve problems that may occur when you install, uninstall, or upgrade a program on a Windows computer

    http://support.Microsoft.com/kb/2438651

    Also:

    Unregister Windows Installer and then reregister Windows Installer. To do this, follow these steps:

    1. in the menu 'Start', click on ' execute:.»

    2. in the "Open" box, type "msiexec /unreg", and then press ENTER.

    3. in the menu 'Start', click 'run '.

    4. in the "Open" box, type "msiexec/regserver", and then press ENTER.

    -----------------

    Check your hard drive for errors:

    Click Start

    Type: CMD, according to the results, right-click CMD

    Click on "Run as Administrator"

    At the command prompt, type: chkdsk /f /r

    When you restart your system, your computer will be scanned for errors and will try to correct them.

    --------------

    then

    Click Start
    Type: CMD, according to the results, right-click CMD
    Click on "Run as Administrator"
    At the command prompt, type: sfc/scannow

    This will check for any breach of integrity

    Restart your system

  • Problem with Dell inspiron 15r graphics when you try to play Pro 2013

    Hello! I bought Dell inspiron 15r (i5.12GRam.1TGB) with Intel HD 4000.

    When I tried to play pro 2013 I get a message saying that my card is not compatible, because it is 64 MB.

    What can I do?

    Hi simosmme,

    Dell Inspiron 15R is supplied with technology switchable graphics in which you cannot disable the integrated video card and use only the discreet graphics card. The two video cards work in tandem.

    Please follow the steps mentioned below to select the PRO 2013 application and assign the discrete graphics processing unit.

    1. Click on the Start button and select programs
    2. Click Catalyst Control Center
    3. Power , click on select switchable graphics
    4. Choose an application from the list or browse and select an application and set the discrete GPU.

    Please let me know if it helps.

  • Error "this graphics driver is not compatible with this version of windows" when you try to install the graphics card

    Title: windows 7 Enterprise 64-bit

    I have hp Pavilion dv6 2138 ca for computer pc laptop and intel hd graphics and nvidia grahics on my windows 7 Home premium 64-bit, but after I've upgraded to windows 7 Enterprise and try to install the graphics driver nvidia. It is said

    the NVIDIA Setup program cannot continue and this graphics driver is not compatible with this version of windows.

    while I chose the latest graphics driver from the hp Web site.

    kindly tell me, that means the sentence above means and what programs and features must be changed in windows? or what steps should be taken to install nvidia graphics?

    answer me

    Thank you

    Hi Hamdullah,
     
    Welcome to the Microsoft community.
     
    "I understand from the description of the issue, you do not know the error' Nvidia graphics drivers are not compatible" when you try to install the drivers. I will definitely help you with this problem.
     
    (1) what is the model of the graphics card are you using?
     
    Method 1: If the NVIDIA GeForce GT 320 M graphics driver, I suggest you to download the Nvidia graphics drivers from the link and check if it helps.
     
    Method 2: If the problem persists, I suggest to select the graphics driver and check if you have any driver update available.
     
    I hope it helps. If you have problems in the future, please let us know. We will be happy to help you.

Maybe you are looking for

  • Measure the period and the peak value at crest of a sine wave

    Hello I am new to Veristand and Labview and I was wondering if there is the possibility to do the following: I would like to measure the period of a sine wave that I capture from analog input of my data acquisition (SMU-6363). Apart from that, I also

  • Error code: code 80072EE2 (cannot install updates)

    I can not install download windows updates comes back with the error code 80072EE2

  • laptop power down after installing SP2

    Computer laptop Medion is underway down completely - do not sleep - since sp2 installed.  Power option has the value o sleep after a hout on battery, but never when it is plugged.  System is always connected and no failures did meet.Starts again when

  • Media Player 11 not to recognize length of mp3 files

    Until a week ago, everything was great with wmp 11. Then all of a sudden I have more the length of track to one of my mp3s in my library. If I play a piece of the library, the scroll bar down does not recognize the length. When I try to move the scro

  • Clip 2 GB screen freezes on refresh database

    Hello I bought a new clip 2 GB a day ago. Have copied songs in the folder music, I removed the device safely, and he showed me the refresh database screen. However, after about 80% finished, the screen freezes and doesn't answer since. I left my clip