Using keyboard to control inputs into realtime VI

Hi,
I have a vi which runs on my compactRIO and controls the balancing of a robot. The robot balances pretty well but it would be nice to move it around. I have two slider control linked to the motor outputs of the control system so i can simply add or subtract a voltage from the motors so they move in a certain direction and hence move it around.
However sliding the vertical slider is not ideal especially when you need to move both motors at the same time to get it to move diagonally for example. Is it possible to use the keys on my laptop (which is hooked up to the compactRIO) to add small values to the controls on the front panels. So for example i could press the up key and it would add 0.01 to the vertical slider and hence add a little voltage to the motor when it ran through the VI. This would make controlling it a lot easier and also good for it's intended use as a demonstrator for uni classes as they could just intuitively use the keyboard to control it rather than having to know all about labview.
Thanks,
Sam

The attached uses the left and right cursor keys to change a value. Adapt as required.
Ian
Attachments:
cursor keys.vi ‏13 KB

Similar Messages

  • Using Keyboard or Mouse in LabView RealTime

    Hi,
    I would like to know whether keyboard or mouse can be used as input in LabView RealTime. If yes, can anyone explain me how to get the input coming from the keyboard or mouse?
    Thanks

    Hi e_Rik,
    Could you explain what you are trying to do a little further?  Currently the only real-time targets that can have a keyboard or mouse plugged into them is a PXI chassis or a desktop ETS system. 
    The following links also touch on the subject as well.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=147602&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=149424&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=180&message.id=27461&requireLogin=False
    I double checked and currently there are no keyboard or mouse VIs that work on real-time targets.  You may be able to get around this by finding a serial keyboard and mouse and using VISA calls.  Hope that helps clarify, and have a good day.
    Brian K.

  • Keyboard will not input into search bar on IOS5 Iphone 4

    I have been using iOS 5 for a few days and an hour ago or so the keyboard stopped inputting text into maps, search bars, etc. It still inputs into the body of emails though. I tried restarting and resetting the phone which did not fix the issue. Anyone else having this problem?

    I have exactly the same problem with my iPodTouch 4th gen and my wifes iPhone 3GS. When you login to icloud on the settings page it says the password is incorrect then the device locks up. It's fine on my iPad and both our Mac laptops.
    iCloud fail so far 8(...

  • Using for-each for input into a database adapter

    As input to a Web service I have an XSD that has parent elements and two unbounded child elements. I want to use XSLT to loop through the child elements to include them as comma separated strings for use in an IN clause in the query of the database adapter. I have the following XSLT in the input to database adapter XSL:
    <db:child_elements>
      <xsl:attribute name="xsi:nil">
        <xsl:value-of select="/inp1:path/inp1:to/inp1:child_elements/@xsi:nil"/>
      </xsl:attribute>
      <xsl:for-each select="/inp1:path/inp1:to/inp1:child_elements/inpl:child_elements">
        <xsl:value-of select="."/>
        <xsl:if test="position() != last()">
          <xsl:text>,</xsl:text>
        </xsl:if>
      </xsl:for-each>
    </db:child_elements>I am getting three error:
    1) Error: Invalid Usage of <for-each> Element
    2) Error: Invalid Usage of <if> Element
    3) Error: This node is already mapped, repeating nodes not supported : "/db:databaseAdapterInput/db:child_elements"
    Any idea of what the problem is here? Are for-each loops and if statements simply not allowed in Oracle SOA Suite? Thanks in advance!

    For SQL Server 2005+ you can use the OUTPUT clause. E.g.
    DECLARE @Source TABLE ( ID INT, Payload INT );
    DECLARE @Destination TABLE
    ID INT IDENTITY ,
    Payload INT
    DECLARE @IdentityValues TABLE ( ID INT );
    INSERT INTO @Source
    VALUES ( 1, 1 ),
    ( 2, 2 ),
    ( 3, 3 );
    INSERT INTO @Destination
    ( Payload )
    VALUES ( 0 );
    INSERT INTO @Destination
    ( Payload )
    OUTPUT INSERTED.ID
    INTO @IdentityValues
    SELECT S.Payload
    FROM @Source S;
    SELECT D.ID ,
    D.Payload
    FROM @Destination D;
    SELECT IV.ID
    FROM @IdentityValues IV;

  • Is it possible to use *only* voice control - no keyboard or mouse at all?

    Short story, hope you can bear with me.
    I have a client who was using Windows for years. He has some disability that means he really can't use a mouse or keyboard. He has been using Dragon Naturall Speaking for about 5-7 years *on Windows*. He also has a Wacom tablet, but uses it sparingly.
    About 6 months ago, he was having problems and was fed up with the problems he was having on his Windows machine. He called me and said "That's it. I'm going to Mac." He bought an iMac the next day, about two weeks before Lion was released. He had also purchased Dragon Dictate for Mac.
    I set it all up, installed it and he was ready to start training Dragon.
    A few months later, he calls and says, "I need to install Windows on my Mac because the Dragon Dictate for Mac is useless. I've spoken to them and they admit that there are several things you just can't do. Like moving the mouse." I think he means things like dragging an item into another folder, or drawing a box around several items on the desktop in order to trash them or copy them or drag them into an email as an attachment, etc. I keep asking him to be more specific, but all I can really get is that It. Can't. Be. Done. On. A. Mac.
    And that, of course, really makes my skin crawl. I mean, come on, it's a Mac. They have *great* features for Accessibility. Surely, this must be a solved problem.
    But, I have looked. I looked at the additions in Lion. I looked at the literature for Dragon. I have tried to do it myself on my computer. So far, I'm stumped.
    I understand that there might be a learning curve, such as learning to say *where* you want something to be dragged to, instead of actually dragging it there visually. "Move selected document to Documents" and so on. But, I'm still hard pressed to find a way to do *every*thing (or a 99+%) using only voice control.
    Does *any*one have any ideas, suggestions, thoughts, solutions?
    His solution? He bought a used Windows computer today. I've copied (again) all his data from his iMac back to the Windows PC and installed Dragon Naturally Speaking, etc.
    Surely, this can't be the only solution. There *must* be a way to do this on the Mac. Right?
    Thanks.

    Hi again,
    I checked the Bios of my neighbors A100, so he has no option for Wake-on-Keyboard, too. I think its not implemented in that bios.
    If this helps you: try the latest bios for that machine, maybe the implemented that option in a newer version.
    Greets man

  • Keyboard used for drum sound input unsuccessful

    I just got the M-Audio Keystudio. I am trying to use it as a drum kit controller. Unfortunately, I can hear drums AND piano instead of just drum sounds when I am using garage band, Any suggestions?

    Is your keyboard connected via USB or an audio/MIDI interface?
    1) If you have cables running from your keyboard's audio out through an interface before going into your computer, disconnect them. (Note: you of course must leave the MIDI cables connected.)
    2) If you are connected via USB, check your keyboard manual to find out how to turn off the built-in sounds internally.
    3) Or go to GarageBand>Preferences>Audio/MIDI and select something other than your keyboard for audio input.

  • Is there a way of using keyboard input?

    Is there a way of using keyboard input in Edge? For example when you press the space-bar it will open a url. This is probaly done though programing.

    Shift/Command and Alt/Control have there own separate event routines.
    Example
    e.metaKey         // depends on browser and targets the Apple key
    e.ctrlKey             // targets the Control or Ctrl key
    e.altKey              // targets the Alt key
    e.shiftKey           // targets the Shift key
    So if you only wanted the event to fire when the Shift key is pressed, then
    if (e.shiftKey){                                              //If Shift key is pressed 
           window.open("http://www.adobe.com", "_blank");
    If you wanted to combine the Shift key + Space Bar to trigger the event, then resort to logical operators. In this case you want to 'combine' key strokes, then the logical operator would be a double &&, and demonstrated below.
    if (e.shiftKey && e.which == 32){                     //If Shift Key + Space Bar pressed
          window.open("http://www.adobe.com", "_blank");
    If you wanted to combine the Shift key + some other keyboard Character Code from the above noted list (http://rmhh.co.uk/ascii.html), then change the value of e.which to equal (==) that Character Code. Example from the list, the Character Code for the keyboard 'a' is 65, as altered below.
    if (e.shiftKey && e.which == 65){                     //If Shift Key + A pressed
    window.open("http://www.adobe.com", "_blank");
    To get an accuarte keycode value, there are two demonstrations on this page http://api.jquery.com/event.which/, whereby you can type in thee field and it will capture the value for you.
    Good luck
    Darrell

  • [Trick] Use Keyboard + Mouse from Xorg to control another Xorg session

    So you have two computers sitting together,  you don't have a kvm switch, and using two keyboards and mice is just plan annoying!
    X2X is the solution. This program allows you to use your mouse and keyboard from Computer A on Computer B.
    From the man page
    x2x  allows the keyboard and mouse on one ("from") X display to be used to control another ("to") X display.
    How to make it work?
    Allow TCP from xorg on both systems
    Edit /etc/X11/xinit/xserverrc and change
    exec /usr/bin/X -nolisten tcp
    to
    exec /usr/bin/X
    Computer A = computer that has the keyboard and mouse you want to use
    Computer B = computer that does not have the keyboard and mouse you want to use hooked up to it
    On Computer B run the command
    xhost +ComputerA
    Where ComputerA is the hostname/ip address of ComputerA
    This allows ComputerA to connect to ComputerB's xorg server
    On Computer A run the command
    x2x -to ComputerB:0.0 -west
    Where ComputerB is the hostname/ip address of ComputerB
    Now on ComputerA you should be able to move the mouse left, off the screen, and be able to control ComputerB!
    I use this to control my laptop using my desktop's mouse and keyboard. It's a lot easier than switching between my desktop keyboard/mouse and laptop keyboard/mouse!

    diederick76 wrote:
    I have used x2x for some time before I started using Arch, but recently I decided to start using it again to control my laptop from my desktop box. I have installed x2x on the laptop. However, when I do
    # ssh -X laptop 'x2x -west -to :0'
    I get:
    X Error of failed request: BadWindow (invalid Window parameter)
    Major opcode of failed request: 25 (X_SendEvent)
    Resource id in failed request: 0x400001b
    Serial number of failed request: 21
    Current serial number in output stream: 21
    I have tried following your howto, but I seem unable to start X with tcp support. I have changed /etc/X11/xinit/xserverrc as you instructed, but when I start X and issue
    ps ax | grep X
    from a console, I still get:
    1670 tty7 Ss+ 0:15 /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth
    Can you tell me what I'm missing? Are these at all related?
    Thanks!
    Today I was looking into this and got working very fast using this thread. Are you sure you restarted your X server after changing xserverrc? Are you sure your display is at :0?
    Use
    echo $DISPLAY
    on the terminal to find out. Also you need x2x installed on both machines.
    Last edited by quiquex (2011-11-08 18:59:08)

  • Can I use a MIDI keyboard as an input device for a software instrument?

    I have a Casio CTK-2100 that I am currently playing around with in Logic Pro 9. It can record and playback the different instruments fine using MIDI tracks. But I was wondering if it is possible to use the keyboard as an input device for a software instrument instead of the "Step Input Keyboard".
    Is it? If so, how do I set it up?

    Yes, the terminology can be a bear, many, many years ago when I started using Logic the manuals were written completely by the programmers, while they were quite humorous in places the were also really hard to understand so I learned/realized.. you can't really do anything so wrong it's going to destroy your computer so why not go ahead and experiment. I learned the basics of Logic without a manual, months later when I went back to find some some details I could figure out the manual made a lot more sense.
    Logic has been somewhat Appleized but it's not really an Apple program, it was purchased almost as developed as it is now... a lot of the additions a fluff to make it easier to understand for new users while at the same time there are some real improvements.
    This is personal opinion: With all of the forums/online tutorials...etc...etc. It seems users are learning (but not understanding) the same things, plus everyone wants to use it right away so nobody takes a deep breath and investigates on their own. Logic is a deep, deep program, while learning don't be afraid to go off on a tangent and explore the program without any other input, it can actually be inspirational. One other thing good about the manual or "Online Help", in looking up a function you will invariably come across a related concept that will provide further insight.
    And..... have fun.

  • How to use DB toolkit to input string 255 into ACCESS Database

    I am converting an existing LV-Application from LV5.1.1 w/SQL toolkit to LV7.1 with DB-Conn. Toolkit.  One of the tables in my MS-Access database has a field of TYPE=memo (allows string lengths > 255 characters).  I can't seem to find how to insert this field in the DB-table using the "DB Tools Insert Data.VI" without getting an error.  I have tried converting the input string to a [U8] array, but that also doesn't work.  Just inputing the long string (390-chrs) also gives an error.  Reducing the string length to < 255 allows the new record to be input into the table without errors.  However, I need to be able to input the longer strings for the application to work.
    Does anyone have a solution to this problem.
    Thanks,
    Jim Cardinal

    Something like this
    David
    Message Edited by David Crawford on 01-12-2006 11:53 AM
    Attachments:
    Insert Text to Memo Using DBT.jpg ‏14 KB

  • Using spdif input into logic to record..

    hello, I am trying to record a track in logic 9 using spdif input..
    It does not seem there is an option to choose a digital input, just input 1 and 2.
    I am actually recording from a second mac running logic so i have two m-audio interfaces for each computer
    so i am recording a stereo mix in logic on one machine goint to logic on my second machine.
    There is a reason I am doing this!
    help please!

    But not the standard Fast Track, that doesn't have s/pdif.
    The Master Computer in this case is the playback computer, you don't need to do anything as far as setting the clock goes. The Recording computer must be set to external sync in THE FAST TRACK software, don't mess with Logic or it will get confusing, this is all done in the Fast Track software applet. The important part is that the recording computer's audio interface is synced to the digital clock coming in on the s/pdif cable (along with the audio of course.
    Don't try and use MIDI to sync the two, Logic only send MIDI clock it doesn't receive it, might be able to make it work using MIDI Machine Control but the start commands will come from the recording computer not the playback one.  One thing at a time, the important thing is to get s/pdif working correctly.
    What are you trying to do?

  • Triggering input into a MIO-16XE-50 using a DIO-96

    Hi there,
    I was wondering if anyone knows how to trigger input into an MIO16XE50 using a DIO-96 card. I want to send out a digital pulse to a BNC-2090 that is connected to both the MIO16XE50 and the DIO96 using the DIO96 card. After this digital pulse, I want to collect data before the trigger and after. I am using NIDAQ Tools for Igor Pro to acquire data from the MIO16XE50 and I am using MatLab to send the trigger pulse from the DIO96. Should I use the external trigger option in NIDAQ Tools, or is there a better way to do it? Thanks a lot!
    Arul Thangavel

    Arul;
    The best way to go about that is to set a digital trigger analog input acquisition, and have the trigger channel to be PFI0. Then, you need to make the digital trigger pulse to be wired to the PFI0 pin of your DAQ device connector.
    You can also configure your Software to acquire some points before the trigger. It will acquire data after the trigger by default. The parameter you need to set to acquire data before the trigger is "pre-trigger number of points".
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • Use buttons to control keyboard

    What im trying to do is create 8 button in flash using as2 to control certain keys on the keyboard.
    When i click a button ive created in flash i want it to trigger a key eg. "a"
    Is this possible, if so how would i go about this?

    In what way do you expect Flash/actionscript to control a key of a keyboard?  Are you expecting the key to be pressed, like a player piano?  If you need a button to produce an "a", then just program it to produce an "a".

  • Why is it so hard to just use Keyboard controls to navigate Finder?

    In pre OS X days I and my co-workers would use only keyboard shortcuts to navigate file servers faster than the network could even refresh the display just using Command keys and Tab and letters…
    In Finder if I want to move to the shortcuts side-bar (the way you can in an Open dialogue box with Tab) it seems to require cursor action, and since I use a tablet that means moving RH away from keyboard and gripping pen, which we all seem to hold between thumb and palm.
    If I hit Tab with a Finder window active, I get the current directory of files and I can manually move thorugh Cmd-Sft-D for desktop and then drill down etc etc  I also find it can be really hard to make a window or floating pallete the active window, and even when it is, impossible to highlight the correct field/content just using Keyboard shortcuts. I'm finding hard to beleive I not missing something, this being Apples OS and Apple have had unviersal access for a few decades!

    Hmmm, if these are commonly used Folders, try dagging them to the right side of the Dock between Applications & trash.

  • How can I use LabView to control Altera Scripting

    Hi
    I have kind of run into a stone wall. I am building a production test executive based on LabView. Part of this process includes loading an FPGA image on to a CFI flash that is in the JTAG chain. I am trying to make so that the production operators don't have to open a second application, select the right FPGA and Flash navigate to the file then load it, then go back to LabView and run the rest of the tests.
    Altera has a command line interface that will let me load .cdf file.  The problem is that nowhere in Altera’s documentation does it show me how to first load the “Parallel Flash Loader IP” into the FPGA. The flash loader acts as a temporary bridge between the JTAG input and the CFI Flash.  I have looked on Altera’s Forums and have had an open ticket with Altera’s support engineers for more than a week.
    I can’t be the first person to want to do this; I am hoping someone here has done it before. I would really rather not try to use the activeX controls to manipulate the windows based program.
    Any suggestions would be greatly appreciated (Note I am not trying to put LV code on the FPGA/Flash just use LV to control the process)  
    Thanks in advance
    Below is the error message and the script I am using. It almost works just missing the flash loader IP
    C:\altera\12.1sp1\qprogrammer\bin>quartus_pgm -c USB-BLASTER -m JTAG  S_FPGA.
    cdf
    Info: *******************************************************************
    Info: Running Quartus II 32-bit Programmer
        Info: Version 12.1 Build 243 01/31/2013 Service Pack 1 SJ Full Version
        Info: Copyright (C) 1991-2012 Altera Corporation. All rights reserved.
        Info: Your use of Altera Corporation's design tools, logic functions
        Info: and other software and tools, and its AMPP partner logic
        Info: functions, and any output files from any of the foregoing
        Info: (including device programming or simulation files), and any
        Info: associated documentation or information are expressly subject
        Info: to the terms and conditions of the Altera Program License
        Info: Subscription Agreement, Altera MegaCore Function License
        Info: Agreement, or other applicable license agreement, including,
        Info: without limitation, that your use is for the sole purpose of
        Info: programming logic devices manufactured by Altera and sold by
        Info: Altera or its authorized distributors.  Please refer to the
        Info: applicable agreement for further details.
        Info: Processing started: Thu Oct 03 18:16:53 2013
    Info: Command: quartus_pgm -c USB-BLASTER -m JTAG S_FPGA.cdf
    Info (213045): Using programming cable "USB-Blaster [USB-0]"
    Info (209060): Started Programmer operation at Thu Oct 03 18:17:19 2013
    Error (209062): Flash Loader IP not loaded on device 1
    Error (209053): Unexpected error in JTAG server -- error code 5
    Error (209012): Operation failed
    Info (209061): Ended Programmer operation at Thu Oct 03 18:17:21 2013
    Error: Quartus II 32-bit Programmer was unsuccessful. 3 errors, 0 warnings
        Error: Peak virtual memory: 376 megabytes
        Error: Processing ended: Thu Oct 03 18:17:21 2013
        Error: Elapsed time: 00:00:28
        Error: Total CPU time (on all processors): 00:00:03
    Solved!
    Go to Solution.

    Hi Eric,
    I got it figured out today, basically you have to load the Parallel Flash Loader first into FPGA ram. It is a special .sof file (pfl_epXXXX.sof) based on your FPGA. Code is actually pretty straight forward, using the Sys Exec VI. Use the windows based programmer to generate the .cdf file that identifies your FPGA, attached Flash and .pof file .
    Syntax was odd going into Sys Exec. Note the extra "C" in in front of the "quartus_prm.exe" I have no idea why that was needed, but I was getting an error until I just happened to put it in there (Blind Luck :-))
    I used a 2 element array going into a four loop
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG -o P;pfl_epXXXX.sof
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG S_FPGA.cdf
    Defining the working director C:\altera\12.1sp1\qprogrammer\bin
    And added match string with "Successfully performed operation" on the output in the loop to make sure everything loaded correctly then adding the array to give me a overall P/F
    To anyone doing this same thing Altera's documentation is poor to say the least. It took most of a week to figure this out Not allowed to upload code, so anyone wanting details just post here and I will try to help. This was painful, with lots of lessons learned.
    Thanks for the interest though
    Best regards John

Maybe you are looking for

  • How can I sync 2 different iPhones with different music, videos, ringtones?

    My problem has already existed for quite a while, but I didn´t find a solution myself. Problem: My wife and I each have an iPhone 3G. I do the sync for both using iTunes. I start the PC with my account for syncing my iPhone and for my wife I start th

  • How to i determine what a 10.10.00 memory error means on a laserjet 3600

    Printer: HP 3600n Error message: 10.10.00 memory error What is this error and what can be done to resolve it.

  • Inactive Condition Types

    Dear Sapients,             I need ur valuable solution in solving an issue. I have created a pricing procedure for domestic sales and in tht some condition types r in inactive mode. I have verified the settings in condition types n also checked the c

  • Inactive sessions increasing over time

    But, the number of open connectios(ie.,other than SYSTEM active session, i could see only inactive sessions ) is not staying constant. Rather,it grows over time. [NOTE: I dont know why the application user sessions are always in inactive state. If th

  • BAPI for Pricing & Conditions

    1. what is the use of Function     Module "BAPI_PRICES_CONDITIONS"? what value we have to pass to BAPI BAPI_PRICES_CONDITIONS"? 2. Which function Module will use to Extract the Pricing & conditions Details (from SD) ? 3. Can anyone help me how to ext