using the key to toggle the button and retain a mechanical Action

I'll put in place to control the race of a stepper motor and I have 2 buttons for jogging forward and backward to jogging. These buttons have the mouse down and mouse events sends commands to the motor controller. The mechanical action of the buttons are set to release the latch.

I would also use the previous Page and Next Page on the keyboard to toggle these keys. But I would like the button to act in the same way that the mouse when the button is pressed and held the button remains pressed and released with the release of the key.

However when I press on and press and hold the button continues to activate / deactivate. Is has something to do with the repeat button, but I don't know how to operate it. Any advice would be appreciated.

I've attached an example of how I started. The mouse down press the reverse button opens a dialog box, but the key does not work and when the key is held down the button flashes. Page Up for forward and Down to the opposite Page.

Concerning

Terry

Simply use another event and manages press button from the bottom to the top in the same way. The button using local variables while active, you can switch to event.

I don't know why you use latch action. Why not with the button until this that released and value change events?

Tags: NI Software

Similar Questions

  • HP Pavilion Notebook 17.3 ": cannot use the buttons and moving the mouse

    Hello

    I'm a pretty heavy gamer and I recently I brought a HP Pavilion Notebook with windows 10 on it, and I expect to play games on it

    But the problem im getting is, if I hold one button, the mouse does not work, which, as you can tell, is unplayable.

    Is there any solution to this? his v19.0.12.97 of Synaptics Pointing Device running

    Thanks in advance

    Hello

    I tried the following on a machine not that different to yours and it seems to work.

    First, download the Synaptics driver on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp63001-63500/sp63417.exe

    Disable your wireless card (should be f12).

    Open Control Panel, open programs and features, right click on the Synaptics driver and select uninstall.

    When you are done, reboot the laptop.

    When windows has reloaded, open your Downloads folder and launch the installer of Synaptics - when this is complete, restart the computer again.

    Open the Synaptics settings panel, disable SmartSense, then check if the touchpad works now with a key on the keyboard is pressed.

    If so, turn on your wireless card and use the utility on the following link to prevent Windows 10 to update automatically the Synaptics driver.

    https://support.Microsoft.com/en-GB/KB/3073930

    Kind regards

    DP - K

  • Open a read-only text field using the button and javascript

    Hello

    I have a form with text fields that I préremplira data. The text fields will be in read-only by default. I want to ensure that when a user wants to make changes, he will need to click on a button and in turn, background of the text field will become gray and he can make changes to the text field. I can already do gray running in background, but I can't make the text box open.

    This is the code that will run after the button is clicked:

    color.ltGray = new Array ("G", 0.75);

    this.getField('TestField').fillColor = color.ltGray;

    this.getField('TestField').access = "open";

    Background of the text box becomes gray, but it is always read-only. Any ideas?

    Thanks in advance!

    If you have created the form in Acrobat (as opposed to LiveCycle Designer), change the last line to:

    this.getField('TestField').readonly = false;

  • How can I get my favorites back sidebar its more quickly than using the button and opening all extensions

    My favorite sidebar has disappeared and I can't find a way if this reverts. How do I restore it?

    On a Mac, it is not [Ctrl + B], try out different options, I found that it is however [command + B] to open the Bookmarks Sidebar which allows use and rename bookmarks.

    Hope that helps someone!

  • How to use the capture and the print button

    I tried to figure out how to use the capture and the "print" button, or add or what you call. I press it and the whole page of a different color changes, so I try to cut the section I want but I don't know how to send it to the printer. Can someone help me with this. I'm not at savvy with tech stuff, but when I find a recipe or something and it doesn't have an option to print a certain area, I can't understand how to use it?

    Thank you

    Andi Starbuck

    That happens to me is, I click and drag to make a rectangle of yellow selection, and as soon as I raise my finger on the mouse button, the part I've selected is captured as an image, a new tab opens and preview before printing, the image display. I can use the installation of the Page or simply print. But if I close the preview, this temporary image vanishes and I'm back on the page where I started. You see something different?

  • I can't use the tab key to move to the next field or use the shift and tab to move to the previous field in the forms.

    After update to 7.0.1 I can't always use the tab key to move to the next field or use the shift and tab key to move to the previous field in forms. He has always worked in previous versions and it is essential for my type of work. Does anyone know of a setting to enable this? If this is not the case, can the developers of Firefox is working on this issue (please). I love Firefox but desperately need this feature to work properly. Thank you!

    No - because it works in Mode safe mode, this means an extension is probably to blame. See http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes

  • How many phone numbers can be connected simultaneously, use the most and merge buttons

    How many numbers phones can be connected at the same time, use the most and fusion of the buttons after you make the first call?

    It depends on your operator.

    It's been a few years since I've really looked into it, but I think that AT & T supports up to 5 concurrent calls. I know that other major U.S. carriers support less, but I don't remember the exact numbers. I want to say that Verizon and Sprint are in charge 3 and T-Mobile supports 2, but my memory on this subject is blurred.

    Contact your operator for more information.

  • How do I resize BOTH the frame AND the image? I used to use the command and shift (to keep the proportions), but NO keys working!

    How do I resize BOTH the frame AND the image?

    I just started using CC online I usually use the command and shift (to keep the proportions), but NO keys work now!

    It's frustrating to have to resize the image and frame separately. The SHIFT key does not keep the proportions more!

    The shortcuts have changed?

    I'm on Macbook Pro - Yosemite.

    Please help me! Thank you!

    In the panel control is a check box resize the content with the framework.

  • Body crashing all the time when I have the shuttle using the J and L keys

    Can someone please help? I seem to have really struggling with constant crashes when I try the shuttle well clips using the L and J keys. Any suggestion would be great. Thank you

    We have fixed some problems here in the version 9.0.2 update yesterday, can you make sure that you have updated?

  • the window on my computer does not return to its original size and I can't use the max and min and exit button

    my window is too far to the right and ive tried to get to the original size and it will until a certain point to the left. This leaves me unable to use the max and min and exit tabs

    Hello

    1. What is the brand and model of the computer?

    2. is it a laptop or a desktop computer?

    3. the problem occurs after leaving the game or program?

    4 did you a recent software or changes to the material on the computer?

    Method 1:

    If this happens when you leave a game, I suggest you to follow the steps mentioned in the link and check.

    Open the troubleshooter of display quality

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

    Method 2:

    I also suggest you go through the steps mentioned in the link and the Coachman.

    Change your screen resolution

    http://Windows.Microsoft.com/en-us/Windows7/change-your-screen-resolution

    Method 3:

    Step 1:

    I also suggest you to check if the problem persists in safe mode.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Step 2:

    You can also check if the problem persists in a clean boot state.

    Clean boot:

    This could happen if one of the substantive programmes is in conflict with the proper functioning of your computer. To help resolve the error and other messages, you can start Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7 http://support.microsoft.com/kb/929135

    Note: when you are finished troubleshooting, follow step 7 article to start the computer to a normal startup.

    Hope this helps and keep us posted.

  • Arrow keys on the keyboard. Try to use the keyboard and mouse.

    New Gateway laptop with windows 7. I play a lot of games online and I can't find anywhere how to change this, or if it's the phone or the operating system. When I try to play a game on IE with the arrows that they automatically stick causing the game almost impossible to play, also when you try to use the keyboard and the touchpad the touchpad locks when the keyboard is in use. Help, please.

    It is a known problem if all goes well with Flash and Internet Explorer.
    Source: http://social.answers.microsoft.com/Forums/en-US/vistagaming/thread/d006871e-4701-4e80-9062-197f28251ac5/

    The only thing you can do is use another browser until what Adobe fixes the problem.

  • Safari freezes when I use the button "share" after OS updated 10.11.5

    Since I upgraded to OS X to 10.11.5 I can no longer use the ' share' button as it freezes Sarari. If Safari is open in multiple windows, it freezes only the active window. Pls does anyone know a fix?

    10.11.5 - Safari 9.1.1 - MacBook Pro OS (retina, 13-inch, mid-2014, 2.6 GHz Intel Core i5, 8 G 1600 MHz DDR3)

    Hello..

    Safe Mode boot removes the system caches can help after an update.

    Follow these steps to start in safe mode.

    Start or restart your Mac.

    As soon as you hear the startup tone, hold down the SHIFT key.

    Release the SHIFT key when you see the logo Apple appears on the screen.

    After the Apple logo appears, this may take longer than usual to reach the login screen or your office. This is because your Mac performs a check of directory of your drive to boot in safe mode.

    To leave safe mode, restart your computer without pressing any keys during startup.

    Then launch Safari and try to use the button share.

    On Safe Mode

  • Re: Satellite A665 - 16K: touch the buttons and the question of the FN functions

    Hello

    I have a problem with the Satellite A665 - 16 k: press the buttons and FN functions. When I install pvat they stop working, but when I uninstall the pvat only some of them work.

    How to fix? Model mu has a keyboard backlight and mine has a problem?

    > When I install pvat they stop working, but when I uninstall the pvat only some of them work.
    The current situation of the article, but I would like to know what you've done in the past. As far as I know, and my own experience, FN keys can not stop working without any reason.
    Are you using the original OS from Toshiba that was preinstalled on your laptop (WIN7 64 BIT HOME PREMIUM)?

    Usually after installing fresh PVAT everything should work again. Akuma wrote install the version of the TOSHIBA Flash Cards 1.63.0.6C support utility but do it before installing PVAT.
    > Model mu has a keyboard backlight and mine has a problem?
    I m really confused that you don't know if your laptop has this keyboard or not. Have you checked laptop specification before you bought it?
    Please read the manuals for the user's document. You will find all the info on your laptop, on the use of hardware and software. Somehow, I think you don t know what you have before you.

    Anyway, the control button Z as akuma wrote. You can also change the settings of the keyboard backlight.
    Open Toshiba Assist > optimize > HWSetup. You can find it here.

  • The sign @ arrives with the ' button and the "comes up with the 2 - How can I fix?"

    The @ sign with the ' key and the 'types of sign with button 2.  How can I fix?

    It looks like your dad keybaord was put at the disposal of the UK.  This can happen if you accidnetally you press a special combination keys that been implemented as the means of getting that deliberately.  Here's what to do: -.

    1 go to Control Panel, region & language, keyboards & languages, Change keyboards, general tab, select the correct keyboard in your area * if isn't one already shown [click on Properties... to see a preview of the keyboard layout] or click Add... & Select a new keyboard from the list [while you are in the list, click on the Preview button to see a preview]. When you have finished adding a new keyboard, move it to the top of the list using the buttons on the dialog box.

    [* The region for which the keyboard was made and for which its route has been set.  [I understand that there is a "US International keyboard" who suffers from this confusion between change quite easily, unless you have a need for special versatility, choose a keyboard layout United States specific instead if you find that this is what has been implemented on your system]

    2 then go into Control Panel, region & language, keyboards & languages, Change keyboards, tab bar of language and, if you regularly change the language settings, make the hidden language bar.

    3 then go to Control Panel, region & language, keyboards & languages, change keyboard, tab Advanced key settings where you can see the shortcut key sequence that could you have this problem by chance. You will also see the change key sequence that you may want to change by clicking on the button change the key sequence and affecting the switch input language & keyboard Switch not [when I changed them, I had to set not to switch input language and accept the change, then return to the dialog box set not to switch keyboard configuration].

  • Use the button to set a variable

    Hi, can someone help me.

    I would use a couple of buttons I made to set a variable. I would use the name of the instance of the keys as the value stored in the variable. How can I code this?

    Thank you.

    You can use the currentTarget of the event to target the button and acquire its name...

    var btnName:String;

    btn.addEventListener (MouseEvent.CLICK, storeName);

    function storeName(evt:MouseEvent):void {}
    btnName = evt.currentTarget.name;

    trace (btnName); will trace "btn".
    }

Maybe you are looking for