Labview footswitch control

Hi I am new to this forum and wanted to ask how to take digital input from external switches I am making a project which needs to control different sections of a labview project design file via a footswitch ,the switches i will be using are momentary switches ,also do i send the signals from the switches via the rs-232 port or is there an alternative to this I have hit a brick wall at this point in time and any help at all would be very much appreciated,cheers.

Hi PodgeRambo,
Thank you for contacting National Instruments. You will not be able to read the Digital signals straight into a serial port. This is mainly due to the RS-232 port being a communication port and as such, you need to translate the Digital input into a signal that a Serial port could understand. 
I have made a short list of the options that are available to you:
1. Construct an RS-232 interface device that can talk to your PC and relay the states of the switches through to your code on your PC. You will then need to modify your code so that you can read the RS-232 port. I would strongly discourage this idea, it will be very time consuming and will cause you no end of grief.
2. Buy a Multifunction DAQ device to read the state of the Digital signal. National Instruments produces a huge variety of different Multifunction devices and if all you need to do is read a digital line then something like a 6008 or 6009 will do the job. The other great advantage with this approach is that it is very easy to integrate this with your existing LabVIEW application and will reduce your development time. 
I would recommend phoning the UK office on 01635 523 545 to speak to one of the Inside Sales Engineers about your application.
I hope this helps,
Thanks,
Andrew McLennan
Applications Engineer
National Instruments

Similar Messages

  • I need to program a Hittite Fractional​-N Synthesize​r Evaluation Kit with a HMC702LP6C​E an external YIG oscillator​. Not sure how to use Labview to control the PLL.

    I need to program a Hittite Fractional-N Synthesizer Evaluation Kit with a HMC702LP6CE an external YIG oscillator.  Not sure how to use Labview to control the PLL.

    Here is how to use the PLL. But I don't know of how to interact with that device
    http://zone.ni.com/devzone/cda/tut/p/id/3781
    And for thouse who don't know what a PLL is a free bonus link is here:
    http://digital.ni.com/public.nsf/allkb/07BC8D77D4E​9AE258625708B007CE74F?OpenDocument
    and a second one on what that device is: http://www.hittite.com/products/view.html/view/HMC​702LP6CE
    Now we are all caught up to speed.
    Sam S
    Applications Engineer
    National Instruments

  • I want to do a project in Labview which controls 5 light bulbs which lights in a room.

    I want to do a project in Labview which controls 5 light bulbs which lights in a room. The switching on of light bulbs depend on amount of sunlight falling on a LDR. Small intensity of sunlight should cause the lighting of one bulb after the other. I need some help in writing my program in Labview.

    kasamaneka wrote:
    I want to do a project in Labview which controls 5 light bulbs which lights in a room. The switching on of light bulbs depend on amount of sunlight falling on a LDR. Small intensity of sunlight should cause the lighting of one bulb after the other. I need some help in writing my program in Labview.
    LDR is a resistor whose resistance decreases with increasing incident light intensity... I know, you are already aware of what LDR is...!!
    --> Well what exactly you want a LabVIEW program to do in this setup of yours...??
    --> If you want LabVIEW to take control and lit different bulbs, based on the light intensity, I would like to know, how exactly you planned to measure the resistance variation of LDR??
    --> What DAQ are you using??
    --> Are you aware that DAQ cards can measure the voltage across a shunt resistance (here LDR) and indirectly tell you the variation in the resistant, provided a constant current passing through the resistance.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Labview style controls in VB

    I'm developing an application in visual basic and I want to utilise some
    fancier graphing controls as the MSChart control is not going to be
    sufficient for my needs. I've had a look at a few National Instruments
    packages, Measurement Studio and the now obsolete ComponentWorks but they
    contain a lot of stuff that I don't need (eg. C++ classes) also the $2900
    price tag has scared me off a bit. All I want is a graphing activex control
    for VB6 that will handle real-time 2D plotting and has features such as
    cursors, etc. built in. Does anyone have any suggestions on a good control
    out there. I have Labview6i, is there a way to utilise its controls in VB6?
    Thanks
    Nick

    I don't think you can use any of LabVIEW's controls directly in VB but you can call LabVIEW app's from VB
    via ActiveX:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/862567530005f09e86256843004469c8?OpenDocument
    In LabVIEW, you could make a small simple VI that has just a chart on the front panel. Compile the VI into an EXE and enable ActiveX server. Then, in VB, you can call the LV ActiveX server and pass it data to plot on the chart.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • How to use LabView to control Primera Bravo II CD burner?

    I am trying to use LabView to control the Primera Bravo II CD burner and label printer. The software that controls the Bravo II is PTPublisher. How to use LabView to communicate/control the PTPublisher? Please help, Thanks

    Hi Qian,
    I installed PTPublisher on a virtual machine, and I was wondering what kind of tasks you wanted to control within LabVIEW.  From the program GUI, it appears like the only way to access functions is via mouse clicks.  Do you know of any other way to control the Bravo II CD burner besides the PTPublisher software?  If not, does the PTPublisher allow you to control it in some way other than clicking?
    Peter K.
    National Instruments

  • Use Labview to control two Picomotor actuators successively through Model 8753 iPico driver

    Hello All,
    I want to use Labview to control two Picomotor actuators(belong to channel A ,C) successively through Model 8753 iPico driver.Since the example VI's
    (Application.vi) from Newport's website just control one actuator at one time, so I copied the example code, thus there are two repetitive sections (see the attachment) in
    the while loop structure. The test result was that two Picomotor actuators moved to respective target position circularly. And I found the test was correct when two Picomotor actuators belonged to different address. Can anyone tell why ,what should I do? Any assistance with this matter is greatly appreciated.
    Best Regards,
    Attachments:
    control two picomotor actuators.vi ‏90 KB

    BRox,
    I had a look at the examples and obviously all it does is to communicate to the drive through RS232 with a proprietary protocol. With the documentation in the block diagram and the documentation of the protocol it shouldn't be too hard to understand what's going on, but on the other side NewFocus has obviously missed a chance to provide a high level and easy to use API for their product...
    I can't dive too deeply into the features of this drive, but before you spend too much time on understanding their command language, you should check with NewFocus, if it is possible at all to meet your requirements with their hardware. The main reason why I doubt that is the slow communication speed provided by RS232. The only way to reach a sinusoidal motion profile of 30 to 70 Hz with this type of communication is running the complete trajectory generation and interpolation onboard. If you have planned to generate the motion profile in LabVIEW and send setpoint commands to the drive this will probably not work.
    If the drive provides another command input (e. g. an analog +/- 10 V input for torque or velocity command signals), we can talk about alternative approaches.
    Regards,
    Jochen Klier
    National Instruments

  • Using LabView to control a pump

    I am a college student working on my senior project. My group is trying to use LabView to control two diaphragm pumps. We have a code written that generates the appropriate signal. The problem that we are having is getting this code to activate the pumps and make them run.
    Any help would be appreciated.

    You really need to provide more information.
    What is the interface between the code and the pumps? How does the code communicate with the interface? Are all the necessary drivers loaded?
    What happens, exactly, when you run the code? Do you get any error messages? What are they?
    Please post your code along with answers to these questions.  Also provide any other specific information which might be necessary for us to assist you.  Good questions can get good answers. Vague questions will only get more questions!
    Lynn

  • Help Using Labview to control Kikusui power supply with a PIA4850 controller

    HI I need some help using Labview to control 4 Kikusui power supplies. We have a PIA4850 Kikusui power supply controller. I can use the visa test panel and see the PIA4850 but can see any of the power supplies. I have very limited use of Labview and only wrote a couple programs using GPIB. The PIA4850 is a USB controller and can control up to 32 PS. I can get it to work with a Excel demo software that came with the controllers so I know that it is working. Any help will be appreciated. I am using LabView 8.2 and have updated to the Ni-DAQ 9.0. I have a program that I need to incorporate the PIA4850 into once I figure out how to operate it. Thanks in advance.

    HI and thanks for the help. I did get one power supply to work but have another problem. I need to control 4 power supplies at the same time and can only operate the one that is addressed N5!C1. If I set the other to N6!C1 and so on I get an error stating
     “Error -1074135008 occurred at ki4800_2 Configure Voltage Level.vi Possible reason(s):IVI Error in the method "get_Item" in the component "Kikusui4800". E_IVI_UNKNOWN_CHANNEL_NAME: Unknown channel name (N6!C1)”
      I am assuming that I should be able to change the node number and that will change the supply that I need to use. Everything works great if I use N5!C1 I can change any of the supplies to address 5 and can control it with no problem. I can even have multiple supplies with the same address N5!C1 (don’t think I should do that) and change them all at once. I need independent control of each supply.
      I am in a pinch here and need to figure it out but could use some help. Any ideas will be greatly appreciated.
      Thanks
    GBlair
    Attachments:
    KIKUSUI PS.llb ‏179 KB
    Kikusui Ps Controller.JPG ‏63 KB

  • LabVIEW tree control

    How to capture right click event on LabVIEW tree control? Thanks.

    Here is an example. You cannot get the right click itself--you get a mouse down and see if the right button was clicked.
    Attachments:
    Untitled.vi ‏25 KB

  • Need Sr. LabVIEW Development/Controls Engineer in Kyle (Austin), Tx

    Xtreme Power Solutions is
    currently looking for Sr. LabVIEW Development/Controls Engineer to support the
    Battery Energy Storage System Division.  
    This position will be based in Kyle, TX.
    Xtreme Power Solutions delivers
    integrated smart power management solutions from 500kW to 100MW. Proprietary
    solid-state power management and integrated storage enables efficient and
    available power for an environmentally sound 21st century electricity industry.
    www.xtremepower.com
    Primary Function:
    The Sr. LabVIEW Development/Controls Engineer will lead a
    small team of LabVIEW developers that is responsible for developing and
    maintaining the company’s energy storage SCADA systems.   There is Core software that is common to all
    customers and customer specific software requirements as well.  He designs control systems for XP
    products.  The position is initially for
    a Team Lead, but may develop into a manager role.
    Primary Duties:
    Lead of
    team of four to six LabVIEW or software developers
    Work with software
    team and project engineers to establish standards and procedures
    Writes
    LabVIEW Code
    Unit Tests
    and debugs code
    Designs,
    validates and maintains control systems.
    Mentors
    others
    Ability to
    travel up to 20%  in support of
    remote sites and/or customer installations
    Qualifications
    Bachelor of Science in Electrical Engineering or
    Computer Science.  
    National Instruments Certified LabVIEW Architect
    (CLA) or equivalent experience
    10+ years of experience developing automated
    test, measurement, data acquisition, and control systems.
     5+ years
    of designing, developing, implementing, and debugging LabVIEW and LabVIEW RT
    software.
    Technical requirements - Hardware
     Broad knowledge of instrumentation and data
    acquisition technologies including PXI, NI Data Acquisition, LabVIEW Real Time,
    NI FPGA, and signal conditioning.
     Strong hands-on hardware troubleshooting and
    debugging skills.
    Technical requirements – Software
     Experience using Source Code Control Systems
    like Subversion (SVN) and TortoiseSVN.
     Familiar with software communication protocols
    such at TCP/IP, UDP, and modbus.
    Familiar
    with all current LabVIEW application architectures.
    Experience
    connecting LabVIEW to third-party database systems such as MySQL.
     Strong
    background in architecture design and development.
     Good communication
    skills, both written and verbal.
     Experience creating documentation for large
    scale LabVIEW projects spanning VI descriptions to system diagrams.
     Experience writing software requirement
    specifications.
    Excellent people skills, must be a leader. 
    Previous start-up experience is a plus
    Must be a
    U.S. Citizen or a Permanent resident.
    Please
    email resumes to [email protected].  Thank you for your continued interest in
    Xtreme Power Solutions, we look forward to being in touch with you.

    Sir,
    I am an instrumentation and control Engineer with  3+ years
    experience.I am worked area is Process and Plant Design,Automobile
    testing Machine and test rig Design,Special purpose machine Design.I
    have knowledge in program developer of  DCS,PLC,HMI,SCADA,LABVIEW  as well
    as trouble shoot.I am very interested in this job.
    Thank you,
    Shanmugam.J
    +91 984042082

  • 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

  • How do I use LabVIEW to control and vary the voltage on my Agilent Power Supply and simultaneously record temp from 1 DMM and voltage from another DMM?

    I am using an Agilent Power Supply  to apply a voltage to a
    thermistor to heat an Al chassis.  I want to use LabVIEW to tell
    the power supply to apply 5V for 10 minutes, then step to 7V for 10
    minutes, etc.  I am completely new to LabVIEW, so any help would be greatly appreciated!
    In addition to that, I want to place a type J thermocouple onto the Al
    surface and use a Keithley 2000 DMM to monitor the temperature (it has
    a built in conversion from V to Temp for type J).  I will also be
    using another Kelthley 2000 DMM to record the output voltage of a new
    uncalibrated thermocouple.  I would like to collect the output
    voltage for this uncalibrated thermocouple and the temperature reading
    from the type J simultaneously.  How should I go about doing this
    in LabVIEW?  I will be using version 6.1.  The power supply
    and DMMs will be connected to a PC using GPIB.
    Again any suggestions would be greatly appreciated- I have no idea
    where to begin on such a project.  I have taught myself how to
    make a basic VI- converting temp in oC to oF, but  that is as far
    as my knowledge goes.

    What you want to do should be fairly straightward and a good way to learn labview. 
    First off, if you haven't already, I would download the drivers for the Keithley and Agilent instruments.  I found the keithley drivers at the link below.  You will need to find the labview drivers for the Agilent PS at their website.  Drivers are the VI's you will use in your program to control the insturments.
    http://sine.ni.com/apps/we/niid_web_display.download_page?p_id_guid=E3B19B3E90B0659CE034080020E74861
    If you open Labview and go to the help menu and click on Labview bookshelf there is alot of information on getting you started coding labview.   This should get you started, if you have anymore questions just ask in this same thread and I am sure you will get all the help you need.
    Brian
    Message Edited by BrianPack on 09-14-2005 05:21 PM
    Message Edited by BrianPack on 09-14-2005 05:21 PM

  • Labview remote control and data transcation

    Hi,
    We have a complicated timing control system written in labview
    6.1 running on our lab PC-1.  Since it is not easy to upgrade to a most
    recent version and limited PCI-slots, and we need to add a few device
    control programs (written in C++ or updated labview), we are thinking of
    an ultimate control system with two PCs and let the old timing program
    be a "slave" of "master" computer PC-2.  OS for both PCs are windows XP.
    The communication between the two PCs are
    fairly straight forward: suppose on PC-1, the program breaks into two
    parts: part A and part B. PC-2 sends selection messages to PC-1 to
    determine which part needs to be running during a particular shot. It is
    true that to our best interest we might need  PC-2 to send data to
    PC-1, in case for a particular run we have to change some data values of
    timing program. 
    The problem might appears to be a piece
    of cake to you experts. It is worth mentioning that on PC-1, any
    changes made to the timing program is nontrivial due to its structual
    complexity. The program is DAQ based (finite) pattern generation (using a
    lot of PCI 6534/PCI 6713/counters, external clocking). 
    The
    reqiurement for speed is not high. PC-2 can in general wait for 1
    second before PC-1 receives a message and start to output.   On the
    other hand, the smaller the delay, the better. 
    We have
    considered a few communication options like TCP/IP, RS232 ports, etc. 
    But before we start implementing the changes, we would really appreciate
    your suggestions/comments! 
    Thanks very much in advance
    for your time! 
    Kunyan

    Kunyan,
    there are really several different ways to solve this. The major question is: Is this a handshake protocol or simple "notifications"?
    If it's simple notifications, things are getting quite easy.
    You can use TCP/UDP/DataSocket/STM if there is a network connection between both PCs. Otherwise, RS232 might be a good idea as well for sure.... but i suggest a network technology in order to reduce delays.
    STM is a protocol built up on TCP and even if you do not use it (it is not available for LV 6.1!), it might get you some ideas about defining a custom protocol.
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How can I with LabVIEW programatically control the RS-422 port?

    I would like to talk to my hardware through the RS-422 protocal, how would I do this in LabVIEW?
    Thanks alot for ANY help.
    Brian

    Most likely the communication would be identical to what you do for RS-232, only you would use the port number associated with your serial hardware. Thus you can use VISA starting with the serial examples in LabVIEW.
    There are a few extra things like the transceiver control on NI-Serial RS-485 hardware that have special VISA calls, but those are easy to add.

  • I have some question on "Use LabVIEW to Control two DSP and RTDX"

    I have some question when writing LabVIEW. I have DSP6711 and DSP6416, I use RTDX to send data to LabVIEW.
    I write three programes for LabVIEW, one is RTDX for DSP6711, another is RTDX for DSP6416, and the final is RTDX for two DSPs.
    The program of LabVIEW is workable when doing DSP6711 or doing DSP6416. But there is some problem when running DSP6711 and DSP6416 on LabVIEW at the same time.
    How to tell the LabVIEW's tool of " RTDX read" to  get the datas from different DSP

    What you want to do should be fairly straightward and a good way to learn labview. 
    First off, if you haven't already, I would download the drivers for the Keithley and Agilent instruments.  I found the keithley drivers at the link below.  You will need to find the labview drivers for the Agilent PS at their website.  Drivers are the VI's you will use in your program to control the insturments.
    http://sine.ni.com/apps/we/niid_web_display.download_page?p_id_guid=E3B19B3E90B0659CE034080020E74861
    If you open Labview and go to the help menu and click on Labview bookshelf there is alot of information on getting you started coding labview.   This should get you started, if you have anymore questions just ask in this same thread and I am sure you will get all the help you need.
    Brian
    Message Edited by BrianPack on 09-14-2005 05:21 PM
    Message Edited by BrianPack on 09-14-2005 05:21 PM

Maybe you are looking for

  • Files in other user account are restricted to admin account...

    Hi everyone. 2 weeks ago, I've created a user account for my wife on my Mac Mini for iphone syncing purposes. My account is admin and hers is standard. Everything works great except restricted access to files. Besides regular Time Machine backups, I

  • Macbook pro /blue screen after shut down

    Hey im running snow leopard on mac book pro .When i try to shut down i get a blue screen with a spinning circle and then it stays there forever .I tried repair with mac os cd , i tried repair disk permissions , disk utility says that everything works

  • Whitelist adding

    Hi, Another question on my os x.4.8 server i want add some whitelist adress and domains ( like *@fnac.fr ....) But exectly in what file can i add them ? Thanks

  • Do I need this

    Do I need a virus software program, firewall software, disk defrag program. PS How do I make a question mark on the apple keyboard

  • Dynamic table copy

    I need to dynamically copy several tables from a different system to a target system. I need to commit after a specified number of rows rather than commiting after the copy is finished. The problem I have is that the columns in each table are differe