How to detect keystroke and control a digital potentiometer?

Dear All,
I want to use PCI-1200 to control a Xicor X9C103P digital potentiometer.
The procedure is as follows: If the computer detects any keystroke from
either UP or DOWN arrow keys, it send a chain of digital signals to a
digital potentionmeter to increase or decrease its resistance accordingly.
Each keystroke control the potentiometer to change a fixed amount, say,
around 500 Ohm. How to detect these keystrokes using LabVIEW and
send to digital potentiometer through PCI-1200?

If you are refering to the ability to capture user key strokes you will need to add a listener to the class. If is a matter of is it a charater or a number then look into isDigit. Or are you trying to capture Hot-Keys? Please specify and will see if we can help - Bart

Similar Messages

  • How can we run and control live images form a camera plz help

    hi
    i want to now how can we run and control live images form a camera on to a aaplet.what technologyi used for this project . u can check the url http://www.jal.co.jp/en/live/ as a demo.plz can anyone guide me.how to start and which technologies to use,
    regards
    sheetal

    Hi,
    You can try a package named: JTwain, which is available at http://asprise.com/product/jtwain.
    JTwain supports all kinds of digital cameras and scanners. You can use Java to access, contorl digital cameras and scanners, and of course, to acquire images with flexible settings.
    The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
    In the simplest case, one line of Java code can solve your problem.
    Good luck!

  • How to create parameter and control file like filename + date

    Hello there
    I am trying to create parameter and control file with following command
    in SQLPLUS
    create pfile='/u03/oradata/WEBDB/backup/initWEBDB.ora' from spfile;
    In RMAN
    copy current controlfile to '/u03/oradata/WEBDB/backup/cf_longterm.cpy';
    how can I put date at the end of filename like
    initWEBDB8jan06.ora and cf_longterm8jan06.cpy
    Thanks in advance
    Lionel

    ASM is reliable but a smart DBA is very careful. If ASM is doing mirroring this is like RAID doing mirroring. What happens if you accidentally delete one copy ... the other one disappears instantly. Not a good idea.
    With respect to redo logs you need a minimum of three groups, two members, and one thread per instance. So a 2 node cluster should, at a minimum have 12 physical files.
    Not mirroring the redo logs, assuming multiple members, is not as critical.

  • How to customize function and control menus

    I am making the painful transition from 7.1 to 8.6. How can I customize the function and control menus, and have them always come up the same way on a right-click?
    Otherwise it takes several clicks to display the useful items, wasting time and effort.

    Dennis,
    It looks like this was never continued, but I have the same querstion. It seems like now when I right click up the menu I get what you see in the Not Very Useful Menu jpeg, and I have to clcik 3 more times to get to the More Useful Menu.
    Can this be changed by some option setting? I haven't found it and I wish I could.
    ~~~~~~~~~~~~~~~~~~~~
    Paul Johnson
    Renco Encoders, Inc
    Goleta, CA
    ~~~~~~~~~~~~~~~~~~~~
    Attachments:
    Not Vey Useful Menu.jpg ‏10 KB
    More Useful Menu.jpg ‏42 KB

  • How to create redlog and control file at ASM in linux RAC

    Hi Experts,
    I will to maintance a oracle 10g database at ASM as RAC iin linux red hat.
    i am a new person with some question.
    nornally speaking, oracle recommadition for oracle 10g database as
    create 3 copy fills for control file
    create at least 2 redo log with mirror files in system.
    However, I checked find
    redlog file is at FRA place +FLSdisk1 and no mirror
    control file is at FRA place--+FLSDISK1/
    datebase file at ‘+DATA1/
    There are no mirror for relog.
    Go to EM, I also could not find place to enter file name.
    We use ASM to hold database to support RAC.
    Do i need to create redlog file as
    ALTER DATABASE ADD LOGFILE GROUP 1 ('+FLSdisk1/sale/onlinelog/REDO01.LOG','+FLSdisk1/sale/onlinelog/REDO01_mirror.LOG') SIZE 1000M reuse;
    my boss told me that ASM is reliable.
    Do you need to creat more directory to arrange redlog and control files in ASM for RAC system?
    FRA is a good place to store control file and redlog file ?
    Thanks
    JIM
    Edited by: user589812 on Jul 3, 2009 3:03 PM

    ASM is reliable but a smart DBA is very careful. If ASM is doing mirroring this is like RAID doing mirroring. What happens if you accidentally delete one copy ... the other one disappears instantly. Not a good idea.
    With respect to redo logs you need a minimum of three groups, two members, and one thread per instance. So a 2 node cluster should, at a minimum have 12 physical files.
    Not mirroring the redo logs, assuming multiple members, is not as critical.

  • (ask)how to detect locking and how to kill session

    I want to update a row in a table, table "X" for example.
    I got ORA-00054:resource busy and acquire with no wait spesified.
    How do i search and kill the session that is locking the table? i dont have oracle Enterprise Manager so i think it has to be done by querying against v$session, v$transaction etc. to get the session and kill it.
    Can anyone show me the select statement to find out the sesion and the command to kill it.
    thank you

    DBA_OBJECTS holds the object_id.
    Use the object_id to select locks from V$LOCK, where object_id equals ID1 or ID2 (depends on the type of lock).
    See Oracle Database Reference for more details.

  • How to adjust the value of the digital potentiometer such that it outputs a desired value of voltage.

    Hi all, I have a digital potentiometer in a circuit which needs to be adjusted to control the voltage it receives. Its a 2 channel 256 position AD5207 dig pot. I need to adjust the wiper position of the dig pot(which we need to do using labview)such that it outputs a particular desired voltage value.For example, if the input to the pot is 200mV, then we need to adjust the pot such that it sends out a value of 50mV. How can we do that?? Please help. The DAQ iam using is PCI-MIO-16E-4. Thank you......Ausuri

    Hi Chaitanya,
    We never know who our audience is when we answer these questions. There has ben quite a few occations when I have insulted people because my answers was too basic.
    The creattion dates on the files show that "project xx SPI.vi" has the latest mod date.
    Open it and take a look at the diagram.
    Put the VI in execution-highlighting mode (click the light bulb) and the run the VI and watch what happens.
    There are pictures included in the diagram that illustates what is happening.
    If you have specific questions after watching the VI run, ask away.
    This is a wonderful example!
    I would have charged big bucks for this example.
    Good work Wha!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to detect keystroke events on the console

    I'm currently implementing a basic menu driven system which needs to
    identify keystroke events (eg. alpha characters). I'm not too sure of the
    best way to deal with this, but can anyone suggest how one could go
    about doing this?
    Cheers,
    Richie !

    If you are refering to the ability to capture user key strokes you will need to add a listener to the class. If is a matter of is it a charater or a number then look into isDigit. Or are you trying to capture Hot-Keys? Please specify and will see if we can help - Bart

  • How do I play and control music from my MP3 player through my

    Thanks in advance

    Tommyknocker,
    How about just a simple minijack to minjack patch cable, from headphone out into the line-in on your soundard? The Soundcard's mixer could be used to set volume and then you still have control on the player, current song information listed in front of you, and can use the volume on the player when needed to mute / lower for different scenes in the game.
    Daniel

  • How do i open and control other programs using labview?

    I'm presently trying to use labview to try to open and operate another program,but having much difficulty.The external program i'm using is called the Foundation program.
    This Foundation program will use VHDL programming to create a virtual chip and then synthesising it.This program will then simulate the output of this VHDL program to verify that it is working as desired.Then the last stage is to download the whole VHDL program into a FPGA chip using a xilinx cable.
    All this need to be done using a labview program - to open the Foundation program and then extract the saved file and then to execute the download command to cause the VHDL program to be downloaded onto the FPGA chip.How do i go
    about doing all this?What is the first step i must do.Also all this have to be done thru networking..looks like its too difficult..I really need help.
    grays

    I haven't done VHDL so pardon my ignorance.
    LabVIEW can call external DLL via "Call Library Function" or C programs via "Code Interface Node", both located in "Advanced" function.
    If your program is a DOS program, use "System Exec.vi" found in "Communication" function. If you need to format your DOS command prior to sending it, use the "Format Into String" function in "String" function palette.
    Lastly, if you're trying to extract data, assuming it is text, use "File I/O" functions. If the data is binary, use "File I/O -> Binary File VIs".
    Hope that answers most of your questions.
    Shan Pin Koh

  • XI Sender file adapter - How to process data and control files.

    Hello all,
       I have the following requirement to fulfill: I am using an FTP client (XI Sender file adapter) to retrieve data from an FTP site. To make sure I am not picking up a data file that is currently being written to, 2 files are actually present on the FTP site (for each data file):
    1. abc.ctrl (control file with no data in it. Indicates that the data file has been completely written).
    2. abc.dat (actual data file).
      I want the file/ftp connector in XI to retrieve the data file (abc.dat) only if the control file (abc.ctrl) is present. After the processing of the data file is finished, both files (.dat and .ctrl) should be deleted.
      Is there an elegant and robust way to accomplish this?
    Thanks for your help.

    Hi Yves,
    in my opinion there's no problem with files currently being written in combination with a polling file adapter because the final file name should be available only when the file is transferred completely. I'm using different file sender adapters very often and never had any problems. After picking up the files I move them to the corresponding archive folders mentioned in the adapters so that a second processing cannot occur.
    Regards
    Ralph

  • How to detect apostrophe and add double quote on that?

    Hi!
      I have a user name is CH'NG
      His name has an apostrophe ' over there.
      I use GUI_UPLOAD to read from a xml file and store inside a local variable,
      <b>lv_name = 'CH'NG'.</b>
      I encounter the problem of endless ending because of these 3 apostrophes.
      Therefore, I wish to write some code like, if i detect the lv_name contains any apostrophe, i will add another 2 apostrophes infront of the single quote (which i viewed from other threads, saying that putting a 2 apostrophe can solve the problem ), such as:
      IF lv_name CA apostrophe.
         lv_length = strlen( lv_name ).
         lv_len = sy-fdpos + 1.
         CONCATENATE lv_name+0(sy-fdpos) 2 apostrophe lv_name+ lv_len(lv_length) into lv_result.
      ENDIF.
    so, my lv_result: CH'''NG
    Kindly advise.
    thanks a lot!
    br,
    hy

    Huai,
    Just copy this code and execute
    report ZTEST11.
    DATA :         V_len type i,
                  v_num type i.
    parameters : v_str(20)   .
    start-of-selection.
        v_len =  strlen( v_str ).
        do .
           v_num = v_num + 1.
         if  v_len eq v_num.
            exit.
          else.
             if v_str+0(v_num) ca '*'.
                  REPLACE '*' WITH space  INTO v_str.
                   v_num = v_num - 1 .
                   v_len = v_len - 1.
             endif.
         endif.
        enddo.
        condense v_str.
        write v_str.
    don't forget to reward if useful

  • How to Detect Resolutions and Resize accordingly

    Hello,
    This is my first website and I just published it here at
    cattrigger.com.
    I published the swf at 1024X768 and have found anybody with a
    resolution of 1024X768 or lower will not be able to function around
    the site without ferviously scrolling up and down.
    Being that this is 50% of the people that are currently
    looking at the site, I am wondering if somebody can help me on
    this. I am trying to find a way for this swf to resize when it
    detects a user's video resolution.
    I have searched for solutions but everything I find have been
    too advanced description or vague for me to figure it out.
    Thank you in advanced for any information I can use!

    You can try using the following class instead of yours
         class RadioButtonEditor extends DefaultCellEditor implements ActionListener
              private static final long serialVersionUID = 1L;
              private JRadioButton radio;
              public RadioButtonEditor(JCheckBox checkBox)
                   super(checkBox);
              public Component getTableCellEditorComponent(JTable table, Object obj, boolean isSelected, int row, int column)
                   if(obj == null)
                        return null;
                   radio = (JRadioButton) obj;
                   radio.addActionListener(this);          
                                         return (Component) obj;
              public Object getCellEditorValue()
                   return radio;
              public void actionPerformed(ActionEvent ae)
                   System.out.println(ae.getSource()+"<<<< Button Clicked");
                   // TODO Auto-generated method stub*
         }

  • How can I configure and control a non-plug and play VXI card using the NI-controller (NI-VXI/NI-VISA software)?

    Defining the slot, logical address and sending data across the card bus are the main operations I would like to perform. The non plug&play card is a VXI send & receive slave card. Low-level programming is probably required. Has anyone tried this before? If so I would be so grateful if you could share your experiences or refer me to someone who has.
    Thank you for your time and help,
    Nandeesh

    VXI cards are, by specification, plug and play, so I'm not exactly sure what you mean by a "non plug&play card." I'm guessing that the card is effectively a VME card. In this case, you can just add the VME device in the proper configuration utility. Here is a link to a document on our website about configuring VME cards (http://ni.com/support/vxi/vmeinfo.pdf).
    You should easily be able set the slot, pseudo Logical Address and memory space. Once configured, you should be able to write to registers using NI-VISA commands (viIn, viOut, and viMove). These high level commands are included in the highreg.c example which shipped with your NI-VISA software (installed in vxipnp directory).
    I hope this helps.
    Trey Hamilton
    National Instruments
    Applications Enginee
    ring
    http://www.ni.com/support

  • How to copying, comparing and control large projects with deeply arranged directory tree?

    MacBook Pro, Redina, Mid 2012.
    When copying large projects with su and sub-subdirectories some files are copied with 0-data and other files are not at all.
    Is there a command to copy and compare files with deeply branched directory?
    To copy level by level of the directory is very time-consuming.
    Ramob44

    Hi,
    Its good that u pasted the complete log file. In your environment you have to run this upgrade tool only once from any of the middle tier.
    And with respect to your error that u got in precheck is quite simple. All u have to do is just run this script from by connecting to portal schema using sqlplus.
    Run dropupg.sql
    Location-------- /raid/product/OraHome_1/upgrade/temp/portal/prechktmp/dropupg.sql
    Later you re-run the upgrade tool and let me know the status.
    Good luck
    Tanmai

Maybe you are looking for