Keyboard control on Labview

Hi,
I have a test fixture with power on and off switch, 6V to 4V switch, reset button, enable button, beep button and shock test button.
I also have PCI 6250 board and NI 5112 board.
I would like to create a Labview program using keyboard shortcut key to control the buttons on my test fixture. Can I do that?
and how?
Can I also not let anyother people to touch anything on my program except using the shortcut key? If so, what do I need to do?
I am in a urgent. Can you reply to me promply?

Hi Brett,
First, I would like to know if LabVIEW program can control the buttons of my test fixture.
Second, where is advanced >> key navigation for a keyboard control? Can you show your direction more specifically?
Third, not to provide mouse with your system. Did you means there is something you need to do besides assigning keyboard
control? That is the next step.
Forth, why you mentioned event structure? did you mean if you can restrict user not to touch using the mouse, you should ignore
the event structure part.

Similar Messages

  • Send a keyboard event from labview to C#

    Hi,
    We currently have a program in c# that takes keyboard inputs from a user and will fly a quadrotor. We aim to have a LabView .vi generate keyboard commands based on our experiment and send the commands to the c# code creating a feedback loop where the .vi will keep track of sensor and experimental data.
    Our problem is that we have tried many different methods to send the keyboard commands in LabView. 
    1) http://zone.ni.com/devzone/cda/epd/p/id/3711
    2) http://forums.ni.com/t5/LabVIEW/Send-keyboard-commands-to-another-windows-program/td-p/330670/page/2
    as well as other variations and similar .vi's that do the same thing. Here is an example of a .vi used to press the letter "t" once.
    http://i.imgur.com/hwmjZ.png
    All of them can write the string to a text (open notepad put cursor in blank window) file but none can do it in such a way that it is detected by the c# code. On my own I can open and run the c# code and press keyboard buttons myself and the commands are recognized, so I think it could be an issue with how LabView sends the keyboard events and how c# reads them. Here is the c# code segment that we are using to read the input commands:
    public override List<String> GetPressedButtons()
              KeyboardState state = device.GetCurrentKeyboardState();
              List<String> buttonsPressed = new List<String>();
              foreach (Key key in Enum.GetValues(typeof(Key)))
                        if (state[key])
                                  if (!buttonsPressed.Contains(key.ToString()))
                                            buttonsPressed.Add(key.ToString());
              return buttonsPressed;
    Can anyone help trying to figure out why using the keybd_event function in LabView can not interface correctly with the above detection code in c#? I can provide any code and clarification if you think it can be helpful.
    Thanks,
    Andy

    Hi,
    I can't say with certainty where the problem is or even how many there are. I do know that the KeyboardListener.cs class should work according to what I have read online. I also know that if I press the keyboard myself then the state is changed and the correct action is taken. If I try to issue an event from Labview then the event is not captured. Here is the code, it is rather large ~20 MB.
    https://www.dropbox.com/s/vsvcje1ro364otu/ARDrone.zip
    https://www.dropbox.com/s/p3h3tj8bcqc29gk/Forward_backward0924.vi
    The key listener is in ARDroneInput>Utils>KeyboardListener.cs and the polling takes place in ARDroneInput>KeyboardInput.cs
    The reason I wanted to use keyboard inputs is because the quadrotor we are using takes keyboard commands W,A,S,D,T and L. Initially I thought having Labview issue these commands would be the simplest method. That may not be the case.
    I was just thinking that it is not necessary that key events are sent from Labview. Instead, one could send an array representing the frequency of each button press rather than the button press directly. In that case an array that is updated continuously from Labview will just have to be kept track of in the C# code. The C# can then convert that to whatever control input we want. Can it be easier to send a vector of numbers in real time to C#?
    If you think it is better to establish a connection between Labview and C# using .NET to send keyboard commands (rather than the vector idea above) can you explain that a little more? How does one go about doing that? If you think the vector idea is simpler how should the interface be set-up?
    I just talked with my collegue and we think that maintaing a .txt file in Labview and having C# read it is the best option. We will begin working on that and will update you tomorrow.
    Thanks,
    Andy 

  • Keyboard control for AR.drone help

    Hi guys, I had been trying to modify the AR.drone LabView toolkit given in order to add a keyboard interface. I am a newbie. I tried a lot of ways but I still can't control the AR.drone by my keyboard. Can anyone help me with it?

    I started doing a certain part of the program but my keyboard parameters program can't seem to toggle the 3 important button ( takeoff , hover and stop) after connect to the the control of the drone program. You may want to see the VI
    Attachments:
    Keyboard control.zip ‏562 KB

  • Keyboard Control FAIL: Using TAB key on websites directs cursor to nowhere!!! Why?

    (using 2.3 GHz Intel Core i5 MAC MINI, OS X Lion 10.7.5)
    I have always felt safer using the keyboard rather than mouse-clicking on search fields etc. (Open Firefox, hit command+L to the URL I want to go to, then hop to next field with TAB key).
    Most notably frustrating example is with using Google, this has not worked right for some time. Say that you to start to search for something on google "main page" and then it goes to the search results page... You go to edit your search or type your next search and the cursor is flashing inside (but off center) of the search field and inputting text is not an option. Also you may instictively hit ESC (while in search field) when you are being given suggestions you don't want, and then the cursor moves again to this no-man's land in between fields.
    The other KEYBOARD control issue that I have found is this:
    Sometimes you cannot Close Window or even Quit Firefox with the usual keyboard shortcut. Usually when a few windows or tabs are open, or when there is some pop-up survey etc. on page. You can usually ALT+TAB to another open program and then back, and then you can close window or application. But that seems really sketchy to me! This happens all the time on major websites. You can go File-> Close Window or File->Quit, but when you use the same keyboard command the file menu just flashes with an "error tone."

    The TAB key thing was the same in safe mode. Actually I should add/correct, regarding that google search example: when the cursor is in "inbetween fields" positions, actually it lets you type at the END of the text that you had typed in the field (even though the cursor is blinking before the text). and if you "Command A" to replace the text in the search field while cursor in this position, it instead selects all the rest of the text OUTSIDE the field. Just doesn't make any sense. I think this happens with fields on Facebook as well.
    That first issue is just very annoying because it comes up every day and I never get used to it. I would be actually be curious to hear from someone whom this DOES NOT happen to.
    The 2nd issue I mentioned occurs more randomly, and seems more definately a Firefox issue. (When you can only close a window or quit from the drop down menu with the mouse, Command W and Command Q just give an error beep)

  • How Stop Pop-Up Window: Allow Fullscreen With Keyboard Controls?

    How can I cause the cessation of the pop-up window that asks me, "Allow fullscreen with keyboard controls?" 
    In the last month or two (January- February of 2013), this black, semi-transparent pop-up has appeared every time I go to full screen in the game Battle Pirates on facebook.
    After numerous iterations, this confirmation request has become completely unneccessary and nothing more than an unwelcome annoyance.

    Tom,
    Moderators have the authority and privilege to mark answers as correct, in addition to the original posters. ANY moderator here could have marked it that way.
    The Bug report/Feature Request link is not a "vote" page per say, but a place to submit a request for a feature you'd like to see added or dropped from Flash Player. It's the best way to voice a concern or "wish" for a feature, since the development team reads the reports/requests. Management who'd make the decision to add or remove something won't read about it here. They WILL hear about it from development.

  • Is it possible to create user defined control in labview

    in .net we can create user defined contol in which i can put more then one control and,, can use it as single control when needed,, but,, how this possible in labview,,
    actually in my program i have a tab control and,, in that tab control there are 8 pages,, now there are 5 different kind option selection for each page lets say "a" "b" "c" "d" "e",,,,,.,. so,, when i select "a" configuration for tabpage 1 should show.. "a"(control collection)  on tabpage1....and,, same should b possible for all 8 pages............................. this can possible if its possible to create user defined contorl in labview
    while in .net its very easy task i m confused here,..,.
    i put these controls in another 5 different  VI,,,, and tried to call in subpanel but,, i dont find the solution,,,
    Attachments:
    tabcontrol.vi ‏1 KB

    Hi,
    I've tried to open you attachment but LabVIEW tells me it's not a vi... could you check it and repost please ?
    I'm not really sure of what you need but you CAN customize you control in LabVIEW, it is not hard, you just have to know how it works
    Sometimes being good at another programation language confuse you more than it helps because you try to do as you are used to... the difficulty it to "translate" functions from a language to another.
    I do know how frustrating it can be when you think "Damned, it would take me only 5 minutes to do that with language a and after 10 hours with language b it is still not working "
    You have to get in LabVIEW way of thinking, I wish you good luck !
    A quick exemple... this might not do exactly what you need but it may help you anyway.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    exemple.vi ‏55 KB

  • How can i use activeX Control in labview?

    how can i use activeX Control in labview?
    please describe me step by step.
    thanks.

    Well..that was quite helpful..but now I'm encountering certain problems. I've attached the VI I've made.
    I don't need sound at the moment so I dropped it. (Although I tried to play it..but all I could hear was a very annoying sound.) Secondly I don't want to display any date or time..so i dropped that property too.
    Now when I run this Vi...the webcam turns on, the screen of videocapx pops up..then the webcam light goes off..and another pop up appears saying..labview is not responding..and i have to close it reluctantly.
    I haven't placed the stop capture property in this vi. i checked it by placing it too..but that doesn't work.
    I would like to notify that my actual task is to acquire image and then compare it with another one already present on my pc. I want you to please help me out..solve my first query then I'll proceed with the latter part.
    Attachments:
    activexvideocaps.vi ‏20 KB

  • How to add keyboard control on our tree.

    hi,
    any body can kindly tell me that how can we add keyboard control on out tree widget.
    I am also anxious to know that when I compiled and loaded the PnlTreeView sample in Debug mode, keyboard control on this panel was also not working fine, it worked sometime and not on the other.
    Can anybody help me for the above 2 questions.

    There's no calendar control per-se, but you have an option - create an HTML image-map prompt - that should work....the only problem would be making it dynamic, but I'm sure you can create a big image map

  • Auto Tune prior to running motion control program (LabVIEW)

    Hi,
    I am controlling Parker Compumotor (404-LXR) linear servo table via GV6 drive and PCI-7344 motion controller.
    The problem is that I always have to run automatic tuning in MAX when I turn off all the system and restart it.
    Before I use the automatic servo tuning in MAX, the servo table buzzes and oscillates wildly. Cabling seems to be successful as linear servo motor is completely controlled by LabVIEW after auto tuning in MAX.
    I wonder how I can just run my LabVIEW program without running Auto Tune step.

    Hello Gino,
    Thank you for using our discussion forums. Yes, you can programmatic load the PID parameters from LabVIEW. Tune your servo using auto tune, once you are satisfied with the response look under the Control Loop tab for the PID parameters. In LabVIEW use the Load All PID Parameters.flx and use the tuned parameters from Measurement and Automation Explorer as the PID Parameters input for this VI. Place the VI before the multistart.vi. This will make sure the correct PID settings are used. I hope this helps you out. Have a nice day!
    Regards,
    Nipun M
    Applications Engineer
    National Instruments

  • Implementing keyboard control on a window

    Hi, I'm currently trying to implement keyboard control for a tetris game I'm attempting to make, but I've done it a rather dodgy way. I've implemented it on a Jpanel instead.
    What I want to do is, implement the keyboard control on the window, however I've been unable to do so. I'm new to java (this is quite an ambitious project - but I'm trying to learn) so any help would be really appreciated.
    This is the code for constructing the window with the Panels:
    please note: I have omitted the import statements.
    public class MainWindow extends JFrame
        public MainWindow()
            setTitle("Tetris!");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container contentPane;
            contentPane = this.getContentPane();
            contentPane.setLayout(new BorderLayout());
            Game game;
            game = new Game(10, 20);
            GameView gameView = new GameView(game);
            contentPane.add(gameView, BorderLayout.CENTER);
            InfoPanel infoPanel = new InfoPanel(game);
            contentPane.add(infoPanel, BorderLayout.EAST);
            KeyboardControl keyboardControl = new KeyboardControl(game);
            contentPane.add(keyboardControl, BorderLayout.SOUTH);
            this.pack();
            game.start();
    }This is the code for the keyboard control:
    public class KeyboardControl extends JPanel implements KeyListener
        private Game game;
        public KeyboardControl(Game game)
            this.game = game;
            setLayout(new GridLayout(0,-1));
            setFocusable(true);
            addKeyListener(this);
        public void keyPressed(KeyEvent event)
               int key = event.getKeyCode();
                if (key == event.VK_LEFT)
                    // Move the block left
                    game.moveLeft();
                    else if (key == event.VK_RIGHT)
                        // Move the block right
                        game.moveRight();
                        else if (key == event.VK_UP)
                            // Rotate the block
                            game.rotate();
                            else if (key == event.VK_DOWN)
                                // Drop the block
                                game.drop();
        public void keyReleased(KeyEvent event)
        public void keyTyped(KeyEvent event)
    }Can anyone provide any hints and sites to look at? I've been through the java tutorials, and the above is what I have achieved.

    Your implementation of the keyboard control (or listener) looks correct.
    To change it to listen to keyword on the window, would require only a
    small change.. See below code.
    public class MainWindow extends JFrame implements KeyListener
        public MainWindow()
            setTitle("Tetris!");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container contentPane;
            contentPane = this.getContentPane();
            contentPane.setLayout(new BorderLayout());
            Game game;
            game = new Game(10, 20);
            GameView gameView = new GameView(game);
            contentPane.add(gameView, BorderLayout.CENTER);
            InfoPanel infoPanel = new InfoPanel(game);
            contentPane.add(infoPanel, BorderLayout.EAST);
           addKeyListener(this);      
            //KeyboardControl keyboardControl = new KeyboardControl(game);
            //contentPane.add(keyboardControl, BorderLayout.SOUTH);
            this.pack();
            game.start();
       public void keyPressed(KeyEvent event)
               int key = event.getKeyCode();
                if (key == event.VK_LEFT)
                    // Move the block left
                    game.moveLeft();
                    else if (key == event.VK_RIGHT)
                        // Move the block right
                        game.moveRight();
                        else if (key == event.VK_UP)
                            // Rotate the block
                            game.rotate();
                            else if (key == event.VK_DOWN)
                                // Drop the block
                                game.drop();
        public void keyReleased(KeyEvent event)
        public void keyTyped(KeyEvent event)
    }

  • Would like to monitor and control a labview application with a hand held device.

    Would like to monitor and control a labview application with a hand held device.
    Would like to use a palm or ipac on a local area network or communicate directly with the PC running windows.

    LabVIEW doesn't run on a hand held device. But, check out these documents:
    Is it Possible to Use Remote Front Panels to Control a LabVIEW VI Remotely Using my PDA?
    "What OS is recommended for LabVIEW to run on a PDA?"

  • Front Row - Did the 10.6.3 update break keyboard control?!

    So, I came across an odd problem today when helping a friend get her data moved from an old iBook G4 onto a new MacBook Pro 2.66GHz. I walked her through setting up the Migration Assistant while on the phone and drove over to help her install some new software. When I got there, she said she was exploring some of the new apps and Front Row looked like it had frozen on her. It wouldn't respond to the arrow keys, Return, or even Command-Escape. Force-quitting via Command-Opt-Esc worked though. I opened Front Row again, and the same thing happened. For kicks, I grabbed my Apple Remote from my backpack and tried it... it seemed to have control just fine, but the keyboard still didn't. Baffled, I told her I'd look into it more later.
    When I got home, I tried it on my MBP 2.53GHz and... low and behold... keyboard control wouldn't work on my machine either! I find this very strange because less than a month ago under 10.6.2 (I held out on 10.6.3 for quite a while... was just lazy, I admit) I KNOW I had full control without needing any Apple Remote to do it! I used it for photo slideshows, movies, and quicktime trailers with NO PROBLEM at all. Now, suddenly, under 10.6.3, I can't use Front Row without an Apple Remote?! What gives??
    Am I being stupid or blind to some simple setting somewhere, or did Front Row seriously take a change for the worse and disable keyboard control?? If anyone else can chime in here, it would be most appreciated, particularly if you know of a way to help me regain control like I had before without needing an Apple Remote. (For a computer that sits less than two feet away from me, this is a real annoyance!) Thanks for the help!

    I have tried that now, but still the same and now my wi-fi printer has stopped working - it is in the print and scan folder and showing as idle but when I send something to print it appears in the folder but does not print. This too was working fine before the update.
    I am afraid as a newbie Mac person all this is just far too much for me. After spending £1500 on a machine only 4 days ago, over £50 on books from Amazon to make sure I learn about the Snow Leopard OS X platform, I do not expect to have these issues from just a simple update. When I wanted to turn back the system to 10.6.2 Apple Care told me I have to re-load the iMac operating system to put it back into its original state - on a pc you would just have to do system restore and the whole thing would have been corrected in 5 minutes whilst I waited for all the apparent issues to be resolved relating to the current update.
    I have packed it and today it is going back to the shop - sorry I really tried but this experience is just too much for me - but thanks for all your help.

  • Active content vs popups vs keyboard control

    Hi Forum
    I am using Dreamweaver 8 to build a web site to display some
    interactive art work I made in Flash 8. I used Fireworks 8 to build
    a navBar with popups and got that working OK with Dreamweaver, but
    the popups would not show in front of my Flash art work (Active
    Content). I found the fix for that in this forum's archives -- add
    the wmode parameter with a value of opaque for the Flash artwork in
    the XHTML, and set the z-index of the Flash Artwork below the
    z-index of the navBar in the stylesheet. This worked and I thought
    I was home free.
    Then I tried to add a page of my Flash artwork that uses the
    keyboard arrow keys. If wmode/opaque is present, the scroll bar
    intercepts the arrow keys in IE 6 and IE 7. In Firefox, no keyboard
    commands work at all. If I take out the wmode/opaque thing, the
    keyboard controls work fine in IE 6, 7 and Firefox 2, but the popup
    menu cannot be seen.
    Is there a way to make everything work? If I went to a
    commercial product like Project 7, would that solve all 3 problems?
    Thanks.
    Mote

    > Is there a way to make everything work? If I went to a
    commercial product
    > like Project 7, would that solve all 3 problems? Thanks.
    No, it wouldn't. Redesign the page so the menu doesn't
    overlap the flash.
    -Darrel

  • Keyboard control in Captivate 8?

    Hello, I am new to Captivate. If I have two buttons labeled "Next" and "Back" and have actions assigned to each, Next would be "Go to the next slide" and Back would be "Go to the previous slide" with "Enter" assigned for keyboard control it kind of sort of works (sometimes):
    1. Sometimes you will be clicking "Next" and it just mysteriously goes BACK a frame
    2. Sometimes you will be clicking "Back" and it just mysteriously goes to the NEXT frame
    3. To top it all off, you don't even seem to have to tab to the buttons for the Enter key to be active (which is not right)
    Am I doing something wrong or is there something I'm setting/not setting to make this work properly? I have enable accessibility checked in the publishing settings but I'm not exactly sure what that does (maybe make the text on the screen available to a screen reader?).
    If Captivate is not keyboard accessible it is NOT accessible.
    Any help would be greatly appreciated!!
    Thanks.

    Hi there
    What is your project type? Responsive? If so, that's why animation is disabled. Animations are usually built in Flash and Responsive output doesn't "do" Flash.
    Cheers... Rick

  • Question about keyboard control in Flash presentation

    I created a presentation in Flash. And I embedded the following keyboard control scripts so that I can pause the slide by pressing "Spacebar" and play it again by pressing "Enter".
    keyListener = new Object();
    var isStopped : Boolean = false;
    keyListener.onKeyUp = function() {
        var keyCode = Key.getCode();
        if (keyCode == 13) {
           _root.play();
    if (keyCode == 32) {
           _root.stop();
    Key.addListener(keyListener);
    I also embedded getTimer script to delay the speed of the flow so that key-point can be loaded one by one.
    stop();
    t = getTimer();
    onEnterFrame = function(){
        if(getTimer()>= t+3000){
            play();
            onEnterFrame = undefined;
    Other than the above keyboard control, I also add four buttons at the right bottom so that I can play and pause, fast forward and rewind by clicking those four buttons.
    Problems:
    1. the 1st and 2nd slide cannot be paused by the above keyboard control command.
    2. the play and pause buttons at the right bottom is not functional in the 1st and 2nd slide
    (i attached the fla for easier understanding of the above descriptions. appreciated if you can help me to figure out what goes wrong.
    http://www.beyondmusic.net/AdBanner/rm_dummy.zip

    remove all your code except your key listener code:
    keyListener  = new Object();
    var isStopped : Boolean = false;
    keyListener.onKeyUp  = function() {
        var keyCode = Key.getCode();
        if  (keyCode == 13) {
           _root.play();
    if (keyCode  == 32) {
           _root.stop();
    Key.addListener(keyListener)
    then change your frame rate so your slides display at the rate you want.

Maybe you are looking for

  • How to view Retrieved file in DMS Archiving.

    Dear All, My client is specific about DIR Archiving. Now the scenario is DIR has been marked for Deletion and archived and Stored in a repository successfully. After Archiving DIR has been deleted from the Database. Now using SARA Transaction using "

  • Sony KDL52V5100 and HDMI inputs

    I purchased a Sony KDL52V5100 from Best Buy in July, 2009.  Nice television. I have a Dishnetwork 922 DVR/Receiver as well a Klipsch theatre system attached to the HDMI inputs.  Suddenly, this weekend, the television would not pick up a signal from t

  • FB01 - Unable to do  Posting

    Hi experts, i ned to post some open items for a customer ina given coc cod but am getting an errror " Posting is only possible with a zero balance; correct document  " .. what is this  and how to correct this? Thanks Dany

  • Fill In Tax Forms

    I have windows 8.1 and office 365 when I try to fill in a 1065 fed tax form a window aqppears that says " Windows cannot access the specified device, path or file. You may not permission to access this data."

  • Export tray captions to PDF/Excel

    Hello, Does anyone know how i can export the tray captions to Excel/PDF. I'm missing all my captions when i export to excel or pdf. Please help. Kind regards, Jeroen