Interfacing SRF04 range finder with LABview

Hi all,
I have a project to use the SRF04 ultrasonic range finder to measure the height of the person, I already interface it to the computer with using the labview but the problem is that the readings are strange and I can not calculate the distance
can anybody help?
Thanks,

Dear Basil,
I’m struggling to get this sensor connected to the NI USB- 6009 DAQ. this is the only DAQ that we manage at the University that therefore i don´t have choise. I´ve purchase an externa supplier that can provide me the 30mA, however i´m not able to adquire the Data from the DAQ, is there any clue or documention  that you can provide me to make this work.
I´ve been followed a couple of examples but they use a different DAQ
Attachments:
distance sensor counter (notes).vi ‏89 KB
myDistance v2010.vi ‏36 KB

Similar Messages

  • Interfacing temperature sensor LM35 with Labview

    I would like to know the best possible way by which I can interface a temperature sensor LM35 with Labview for monitoring the temperature of patients that can be incorporated into a patient monitoring device that includes monitoring of ecg, hrv, spo2 and cuffless bp (calculated using PPT, pulse transit time).

    Sorry no Danny, thanks to Dennis_Knutson,
    By some how you have cleared my confusion a little bit, now i will apply it practically and will ask queries if having any problem.
    I appreciate to you quick response Dennis_Knutson

  • Has anyone interfaced an Instron 5500 with Labview?

    I'm trying to get my company to buy labview.  If I can get it to control an Instron 5500 they will be sold.  Has anyone attempted to do this?  Instron tells me that they do not have Labview drivers.

    I did a couple of Instrons with Labview a few years back, but they were older models (2725 and 2734 if my memory serves me right for numbers). I wrote the daq and machine control software in Labview from scratch. Neither of these machines was new enough to have a GPIB port, they were the type with the old mechanical recorder outputs. I had to re-work some of the machine mechanics and electrics to take a custom interface adapter from a NI Lab 1200 Daq card. I also had to build a custom extensometer for one unit. I don't know if I could be of any help to you, but I would be willing to work with you via e-mail and offer what assistance I can. I have 38 years in custom machine controls and general process instrumentation, so I have quite an extensive background to call upon. If you are interested drop me an e-mail at:
    [email protected]
    Dave

  • Interfacing a piezioelectric actuator with Labview

    im looking at controlling a Melles Griot piezoelectirc actuator with Labview to obtain real time data of voltage vs displacement. However, i do not know how to write the program for a closed loop function block. Ie, i need to ask the actuator to move a distance by applying a suitable voltage when there is resistance to motion.

    Unless you are using LabVIEW RT on a PXI system it's not a good idea to do control loops in LabVIEW or any other Windows based software. On Windows the timing behavior is not deterministic. That means the loop cycle time varies. The loop cycle time directly influences the control algorithm. The faster a PID loop runs, the lower your Kp, Kd, Ki values need to be. Thus on a system like Windows without deterministic timing it's hard or even impossible to get a stable system.
    A much better choice is the use of a motion control board, e. g. the PCI-7344 or PCI-7342 board. These devices run the PID loop onboard in realtime and you only need to set parameters like travel distance, speed and acceleration. You can use quadrature encoders or analog signals as feedback signals and
    with the latest release of the driver software, NI-Motion 6.0 there is also an assistant included that helps you to eliminate the effects caused by static friction that are immanent to piezo systems.
    Please visit the following link to get more information:
    http://www.ni.com/motion
    Best regards,
    Jochen Klier
    Applications Engineering Group Leader
    National Instruments GERmany GMbH

  • Interfacing a network HUB with LabVIEW.

    I want to converge three data inputs, in which two are video outputs from an IP converter and one is from cRIO 9012, to a single point and transmit it wirelessly to my Laptop. Is it possible to do it using a network HUB and please guide me how to distinguish different type of data coming from a network HUB using LabView?
    Regards
    Ali
    Solved!
    Go to Solution.

    Ali bin Wahid wrote:
    Yes these all are giving output through Ethernet!
    My knowledge about networking is not that good so I don't know what is the network bandwidth of wireless router we'll use. Can you please tell me what is bandwidth of typical Wireless Routers? Will a typical Wireless router be able to handle a single video input from video converter and data input from cRIO 9012?
    That's entirely dependent on the wireless protocol that's used (a, b, g, n), the distance on the devices from the router, and any interfering items (like walls, big metal slabs, that sort of thing). You really need to read the specifications on the wireless router that you have.
    So basically what you mean by saying "everything is on one flat network" is that we don't need to worry about seperating data coming from video converter and cRIO. LabVIEW will handle it all by itself?
    Not directly. You have to open connections to devices (or accept connection requests from devices), and then you send/receive data over that connection. Please take a look at the TCP/IP examples that ship with LabVIEW.

  • MAX shows my GBIP-USB Interface, but no communicatin with Labview

    I'm using a GPIB-USB(Agilent) Inferface to communicate with my devices.I Install the drivers form agilent and Labview 6.0.2. MAX 2.0 does not show me my USB-GBIP Interface and no devices. So i have download MAX 2.2 and now i can communicate with my devices. The problem ist, that i can't open the VISA session in LABVIEW, so that i can't communicate with my devices. I try to open the NI-Spy, but it show me an error. Have erverybody a idea how can i solve this problem. THX

    Adi wrote in message news:<[email protected]>...
    > I'm using a GPIB-USB(Agilent) Inferface to communicate with my
    > devices.I Install the drivers form agilent and Labview 6.0.2. MAX 2.0
    > does not show me my USB-GBIP Interface and no devices. So i have
    > download MAX 2.2 and now i can communicate with my devices. The
    > problem ist, that i can't open the VISA session in LABVIEW, so that i
    > can't communicate with my devices. I try to open the NI-Spy, but it
    > show me an error. Have erverybody a idea how can i solve this problem.
    > THX
    My friend at Agilent supplied the following answer. There are suppose
    to be two pictures at the end of this note, but my news group
    interface
    does not allow them to be added.
    Les Hammer
    [email protected]
    Complete Test
    PO Box 6
    Loveland, CO. 80539
    ===========================================================
    I understand you want to control GPIB instruments using NI LabVIEW, NI
    VISA, and the Agilent 82357A USB/GPIB Interface.
    This method works for me. Perhaps you can compare your results to
    this procedure, and then make progress.
    1. Starting Conditions:
    I start with my HP Kayak XU800 PC (single 800 MHz CPU), with an NI
    PCI-GPIB+ card installed.
    My Agilent 82357A USB/GPIB Interface is not connected to PC nor
    instrument.
    The attached Visagpib01.vi LabVIEW program is on an uninstalled floppy
    disk: A:\Visagpib01.vi
    I format the C: hard disk and install Windows 2000 Professional. I
    reboot.
    Windows runs a Found New Hardware Wizard (for a PCI Simple
    Communications Controller). I assume that is for the NI PCI-GPIB+
    card. I click the Cancel button. I'll run a similar wizard AFTER I
    install the NI software.
    2. Install NI-488.2 for Windows:
    I put in my NI-488.2 for Windows CD (July 2000, 500739E-00) and let it
    autorun. I click on "Install NI-488.2 Software for Windows". I use
    the default Destination Directory: C:\Program Files\National
    Instruments\NI-488.2\ .
    I choose the default "Typical" installation, and complete the
    installation.
    Now I click on "Explore CD" and run the "SetupVisa" icon to install
    NI-VISA 2.5 . I use the default NI-VISA Folder: C:\VXIpnp\ . I
    choose the default "Complete" installation, and complete the
    installation.
    I click the Yes button to reboot my PC.
    Now that I have installed the NI software, the NI-488.2 Getting
    Started Wizard runs. I click on "Verify your hardware and software
    installation". It found my NI PCI-GPIB+ card as GPIB0. The Agilent
    82357A will not be visible yet. I click the Exit button. I'm done
    with this NI-488.2 Getting Started Wizard, so I click the x in the top
    right of the window.
    3. Install Agilent I/O Libraries for Windows:
    I put in my Agilent I/O Libraries for Instrument Control for Windows
    CD (L.01.00) and let it autorun. I click the Next button a few times
    until I see 2 big buttons: Full Installation & Custom Installation.
    Because this is the L.01.00 release and I installed the NI VISA first,
    either button would work. But I'll be precise and click the Custom
    Installation button. I use the default Destination Folder: C:\Program
    Files\Agilent\IO Libraries . I choose "SICL and side-by-side Agilent
    VISA Installation". This will leave the NI VISA as the primary VISA,
    and install the Agilent VISA as secondary VISA. After a few clicks on
    the Next button, it says the Agilent IO Libraries have been
    successfully installed. I choose neither View Readme nor Run IO
    Config. I click the Finish button.
    Some Operating Systems may require a reboot here. My Windows 2000
    does not.
    4. Prove NI VISA is Primary VISA:
    Start button - Programs - Accessories - Windows Explorer. Browse over
    to and highlight My Computer\C:\WINNT\system32\visa32.dll . File
    pulldown menu - Properties - Version tab. My file is National
    Instrument's VISA Library 2.5.0.0 .
    I click the Cancel button. File pulldown menu - Close.
    5. Plug the 82357A into the PC:
    I finally plug the 82357A into my PC's USB port (any USB port). The
    standard 82357A live configure window pops up: "Agilent 82357A
    USB/GPIB Interface Detected". Because Agilent VISA is installed, the
    VISA Interface Name defaults to "GPIB0". Because I know I already
    have a GPIB0 (my NI PCI-GPIB+ card), I click the Edit button and
    change the VISA Interface Name to GPIB1, by clicking the nearby little
    up arrow. I click the OK button.
    6. Configure NI Software to Recognize Agilent Interfaces:
    Start button - Programs - National Instruments - Measurement and
    Automation Explorer. I click the OK button because I don't care when
    MAX searches for new devices. Tools pulldown menu - NI-VISA -
    Passport Editor. I put a checkmark in the "NIVisaTulip.dll - VISA
    Library Passport for Tulip" line. I click the OK button. Because I
    changed a setting, I need to click the OK button again. File pulldown
    menu - Exit to exit MAX.
    7. Access an Instrument through the 82357A:
    The Agilent 82357A USB/GPIB Interface should now be accessible from
    NI-VISA. With my 82357A plugged onto my HP 34401A Multimeter, Start
    button - Programs - National Instruments - VISA - VISA Interactive
    Control. Below the "GPIB1 (hpib7, 82357)" line, is a line for my
    instrument, "GPIB1::23::INSTR". I double click on that "INSTR" line
    to pop up a session window. Basic I/O tab - viWrite tab, I click the
    Execute button to write the default "*IDN?\n" string. viRead tab, I
    click the Execute button to read the expected
    "HEWLETT-PACKARD,34401A,0,5-1-1\n" string. I'm done, so I click the x
    in the top right of the window. File pulldown menu - Exit to exit the
    VISA Interactive Control window.
    8. Install NI LabVIEW Evaluation 6i:
    I put in my NI LabVIEW Evaluation Software for Windows 2000/NT/Me/9x
    CD (version 6i, 350778A-01) and let it autorun. I click the Install
    button. Eventually I choose the Complete installation. It says
    LabVIEW 6i Evaluation has been successfully installed. I click the
    Finish button. Eventually I click the OK button.
    9. Run the attached Visagpib01.vi LabVIEW program:
    Start button - Programs - National Instruments LabVIEW 6i. I click
    the lower left RED Start using LabVIEW button. I click the Open VI
    button and enter the File name as A:\Visagpib01 . I close the
    Controls and Tools palettes by clicking the x in the top right
    corners. Notice the resource name field of "GPIB1::23::INSTR" to use
    my GPIB1 82357A connected to my 34401A at GPIB address 23. Operate
    pulldown menu - Run, and the read buffer field now says this expected
    string: "HEWLETT-PACKARD,34401A,0,5-1-1". Running the example again
    simply writes over the earlier string, and so does not appear to
    change the display. The attached Visagpib01.vi LabVIEW program is
    simplified from the "C:\Program Files\National Instruments\LabVIEW 6
    Eval\Examples\instr\visa\SRQ Event Handling.vi" NI example program.
    I attach 2 GIF files to describe the attached Visagpib01.vi program:
    Visagpib01_panel.gif
    Visagpib01_diag.gif
    I hope this helps!
    | Ted Cline
    | IO Support
    | Basic, Emerging and Systems Technologies (BEST) PGU
    | Agilent Technologies
    | CU-326, 815 14th Street SW, Loveland, CO 80537-6390 USA
    | 800-452-4844 Customer Support (United States)
    | 877-894-4414 Customer Support (Canada)
    | 970-679-5260 FAX
    | [email protected]
    | ftp://ftp.agilent.com/pub/mpusup/index.html Postsales Support
    GPIB and Connectivity Solutions:
    http://www.agilent.com/find/xbv_pgr_gpib
    IO Libraries:
    http://www.agilent.com/find/iolib
    http://www.agilent.com/find/iolibux
    VEE:
    http://www.agilent.com/find/vee
    Instrument Drivers:
    http://www.agilent.com/find/inst_drivers
    http://www.agilent.com/find/inst_drivers_pnp

  • How can you interface IEEE 488 bus with labview

    Hi
    How should I proceed to interface labview with an instrument (an impedence analyser with a IEEE 488 port) and labview through a IEEE 488 interface card in the PC.
    Thanks
    Mal

    Hi,
    You hava a group of functions to do that. Go to Instrument IO --- GPIB.
    There you can find the tools you need to comunicate with an instrument via GPIB.
    You can also use MAX (Measurement and Automation Explorer) to test your comunication before implementing it in LabVIEW.
    Hope this gets you started,
    Paulo

  • Interfacing HP 34401A DMM with Labview 2010

    Hey Everbody,
    I am new to LV and have been handed over a project. A part of it is to interconnect HP34401A Digital Multimeter with the LV. i have used a GPIB interface for the interconnection and all drivers have been installed for this purpose. in the query i can see the DMM but do not know how to proceed.
    any suggestions will be a great help

    Did you try any of the examples? Help>Find Examples>Hardware Input and Output>Instrument Drivers.

  • BASYS 2 Spartan3 interface with labview

    Hi I am new to xilinx. but unexpectedly i am in a situation to work with BASYS 2 Spartan3 board from digilent.
    Please help me to interface BASYS 2 Spartan3 with labview 2012.
    Thanks in advance.

    1. If you are using a webcam, ensure that the camera is compatible with DirectShow, and that the camera driver is installed and functioning.
    2. You will need to install the Vision Acquisition Software. The software features the activation-based NI-IMAQdx driver for acquiring from DirectShow-compliant devices. A license for this software is included with all NI vision hardware and all NI vision software licenses, and is also sold separately for applications that do not require image processing or specialized hardware.
    3. I am not sure how you are 'comparing' the acquired image with the image that is stored in the harddisk. But, if you want do machine vision & image processing, then you will need the Vision Development Module. In general, VDM functions are to be used for post processing images. Some example functions are: pattern matching, particle analysis, edge detection, thresholding, histograms, and optical character recognition. This module includes the VAS that was described earlier.
    4. There are lots of examples that are shipped with the software to help you understand and achieve what you are trying to do.
    Here is a good article that describes the different vision software provided by NI:
    What is the Difference Between Vision Software VDM, VBAI, and VAS?
    NI Vision Software Comparison
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • How do you use Synergy 7.1 with LabVIEW?

    My company has reciently installed and configured IBM Rational Synergy 7.1 to be used as our Source Code Control tool.  I have installed the appropriate Microsoft Source Code Control Interface so that Synergy will show up in LabVIEW and it does show up in the "Source Control" options window.
    However when I select Synergy as my source control tool it does the following:
    1.  Brings up the login window - I am able to login with no problem
    2.  Brings up a dialog allowing me to select the project to work on, and after I select the project I get two errors...
    one from Synergy: "The workspace/project you want to add to IBM Rational Synergy is not under the work area path 'C:\xxx"
    (where xxx is my work area for the Synergy project I selected)
    then one from LabVIEW:  "Error -2941 occured at prefPage_Source Control.vi     An error occured trying to get the source control project path.    Possible reasons:  LabVIEW:  The source control provider does not support the specified operation."
    I first tried this on an earlier version of Synergy that matched what is being used in:
    http://digital.ni.com/public.nsf/allkb/16D37CCC8659123F8625720500087DB4
    But I was getting pretty much the same errors back then too.  It seems like it should work in LabVIEW, I just have no idea what I am doing wrong!
    Anyone out there successfully using LabVIEW with Synergy????
    Thanks,
    Trevor.

    In theory if a source control provider supports the Microsoft SCC interface, it *should* work with LabVIEW. In practice, each provider has custom implementation that sometimes causes problems when trying to configure the provider from LabVIEW. One sticking point for many providers is the expectation or assumption that an IDE will use some concept of a "project" and therefore pass data associated with that project to the provider. LabVIEW does not enforce that concept but does pass valid information.
    Synergy was tested back when it was a Telelogic product. It was difficult to configure and required exact steps to get it to work correctly. The linked knowledge base were steps taken that worked for a few customer setups. It's possible that on other Synergy setups the exact steps may not work. Also, you might check to make sure you try to configure existing Synergy projects  and not try to create new ones from LabVIEW.
    The error you mentioned seems to imply that some data is not supported by Synergy. I am not sure if Synergy would be able to track down the issue, but I would recommend contacting them to see if they can pinpoint what data LabVIEW is sending is not valid.
    George M
    National Instruments

  • Controlling Solenoid Valves for a water level application with LabVIEW:

    Hello,
    I am trying to control the water level in a tank using solenoid valves with LabVIEW.
    I have an ultrasonic sensor that is going to measure the water level in the tank, I have the working VI (attached) for how the sensor measures the water level, I have made the vi so that it measures the distance the water level is away from the sensor (the sensor is attached to the top of the bucket). The vi which is attached also calculates the volume as more water is added into the bucket (the bucket is frustum shaped). 
    What works: VI interacts with ultrasonic sensor. VI measures the distance the water level is away from the sensor, VI calculates the volume in the bucket as more water is added. 
    What I am trying to do now: I want to have another bucket (filled with water) sitting above my bucket with the sensor on it, and with a solenoid valve attached to that bucket, and another bucket sitting below my bucket with the sensor on it (not filled with water). I want to interface these solenoid valves with LabVIEW in a way, that the user can enter in say "70%" as the desired percentage of water in the bucket with the sensor, and LabVIEW controls the the valve on the bucket to fill up the bucket with the sensor up to 70% and if there is any overshoot, there will be another valve attached to the bucket with the sensor that will let water out to go into the empty bucket).
    Basically, turn on and off the valves based on how much more water needs to be added into the bucket and what the desired percentage is. 
    The equipment that I have is:
    Ultrasonic sensor: http://www.amazon.com/Ultrasonic-Module-HC-SR04-Distance-Arduino/dp/B004U8TOE6
    Solenoid Valves: http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=290763981675&ssPageName=ADME:LU:US:3160
    3 buckets.
    I need some ideas on how I can complete the rest of this project. Thank you in advance! Please see the attached vi.
    Attachments:
    Sensor.vi ‏28 KB

    Thinking off the top of my head, if it were me, I'd start with the master-slave design pattern.
    In the master loop, put your vi for reading the level.
    In the slave loop, put very simple logic that looks at the value coming from the notifier and takes one of three actions each time a notification is received:
    If the level is greater than the setpoint (+some "empirically determined" hysteresis value, say 1-2%) open the valve to let water out of the middle bucket.
    If the level is equal to the setpoint (+- the same hysteresis value) make sure both valves are closed.
    If the level is less than the setpoint (-the same hysteresis value) open the valve to let water into the middle bucket.
    Repeat until you're done.
    You will probibly want to figure out a better way to stop things than what is shown in the design pattern template - using an error to stop works, but in the long run limits your options.
    Oh yes, when shutting down, there is one thing that you will need to be sure that you do - to prevent wet feet. But I'll leave that for you to figure out as well.
    Mike...
    PS: This is homework right?
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • New Range Finder Camera

    I would love to see a Canon Digital Range Finder with 70D AF tech, but also with true manual focus finger control, in the 20 MP range, and a mechanical slide that allows the operator to remove the bayer layer on the sensor for better B&W imaging, in a G sized body. When can I expect this?
    LOL.

    Johnny Magee wrote:
    I'm guessing, but if the 7D uses MPEG4, it's probably AVCHD, in which case the transcode will be to Apple ProRes. I reckon it would be pretty straight forward. But the file size will become bigger.... 1GB of AVCHD transcodes up to about 5GB of ProRes. It will look good though!!
    The 7D will not use AVCHD. Canon's website says that it'll save movies at .mov files using h.264 and linear PCM audio. The bitrates will be well beyond the max for AVCHD.
    Log and Transfer won't be an option so the best workflow for converting these files will be either making a simple droplet in Compressor that changes the video to ProRes 422 and Linear PCM Audio or using MPEG Streamclip with the same settings.

  • Warner/superior electric's SS2000PCi motion controller interfacing with LabVIEW 6i

    Sir,
    In our application, we are controlling the movement of X-Y arm on the X-Y table. For this we are using superior electric products:
    (a) Slo-Syn SS2000PCi Programmable Step Motor Controller
    (b) MD808 Motor Drive
    We are using two such controllers and motor drives to drive two 2 Amps Sanyo Denki Stepper motors: one each along X-axis and Y-axis. Along with the arm movement a data acquisition also has to be carried out. So, the motion control and Data Acquisition has to be synchronized by means of software. The problem now is to program the controller. Though MCPI Version 4.41 is there, we want to program the controller in LabVIEW 6i so that we can synch
    ronize both motion control and Data Acquisition.There is no driver which is compatible to LabVIEW 6i.
    Is there any 32-bit DLLs for this controller? If any one has these dll's please let me know. My E-mail ID: [email protected]
    So that i can call these DLLs in LabVIEW 6i and program it.Or else send me at least the detailed low level command sets of the controller in pdf format so that i can develop our own drivers.
    Regards,
    Nagendra

    Nagendra,
    Unfortunately, I was unable to find any helpful resources for you based on a cursory web search. I recommend that you contact the manufacturer of the hardware and ask them if they have a driver (DLL) that you can use to interface with LabVIEW.
    Good luck with your application, and have a good day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How interface N5181A MXG signal generator with labview by using LAN Interface????????????

    hai every one ...i have a doubt how  to interface N5181A MXG signal Generator with Labview by using LAN Interface???? and
    how to find IP Address of N5181A MXG signal Generator????????
    when i connect instrument with labview it shows that no instrument connected and what are the requirements for LAN interfacing with that instruments in labview and please help me?????? 

    You can set the IP Address on the instrument.  You may need to be in the same subnet of your controlling computer, so you may need to set your computer's IP Address to something static.
    Use VISA.  It makes life easier if you decide to use another bus (like GPIB, USB, serial, etc).  In MAX, create a network session with the static IP address you set the instrument to and use that as the VISA Resource.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Need to find a driver for cRIO-9211 thermocouple to be used with LabView

    I am using the NI cRIO-9211 Thermocouple input and the NI USB-9162 Hi-Speed USB Carrier and need to find a driver to interface the thermocouple with LabView 8.5.1. Could you point me in the right direction as to where I can download a driver for this?

    Hi Durnan,
    You will require the DAQmx driver for the USB 9162. This can be found here: ni.com/downloads, see DAQmx 8.8 - would do.
    You only require the DAQmx driver, as the C Series modules are supported - they can just be used in a cRIO as well.
    Hope this helps,
    Kind Regards,
    James.  
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

Maybe you are looking for