Labview code for flowmeter sensor

Hi all
I am using NI USB 6229 DAQ and Omega FTB-1302 flowmeter sensor.I made the proper wire connection.Now its time to labview coding but i dont know what to do.i am new in labview.Please help
Best regards

Look at some of the DAQmx examples in the Help...Find Examples.   Your sensor most likely outputs a 0-5V or a 4-20mA signal.  You can read those signals into Labview using the examples.  You will probably need to apply a scaling factor to get a meaningful value. 

Similar Messages

  • Visual C/C++ code/Labview code for interfacing NI Hardware

    Hi,
     i need Visual C/C++ code/Labview code for interfacing NI Hardware and sample project example.

    Duplicate - http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Visual-C-C-code-Labview-code-for-interfacing-...
    You are just spamming now.

  • Hello sir,i need labview code for a code which is written in matlab,latter one is attached with this message.

    hello sir,i need labview code for a code which is written in matlab...
    clc;
    close all;
    clear all;
    Ez= zeros(1,200);
    Hy=zeros(1,200);
    Ca=1;
    Cb=.4519;
    n=1;
    while(n<1500)
    for k = 2:200
    Ez(k)=Ez(k) + Cb*(Hy(k)-Hy(k-1));
    end
    Ez(1)=1;
    for k=1:199
    Hy(k)=Hy(k)+Cb*(Ez(k+1)-Ez(k));
    end
    plot(Ez,'b')
    hold on
    plot(Hy,'r')
    hold off
    pause(0.001);
    n=n+1;
    end
    thanku

    Well, this code is quite trivial and if you have to learn LabVIEW anyway, you might as well try to implement it.
    A few things to remember:
    The first array element in LabVIEW has index #0, while in matlab it has index #1, so everything dealing with array indices needs to be adjusted slightly.
    The zeroes function equivalent is "initialize array".
    Keep the array in a shift register as you update elements.
    use FOR loops.
    Use one of the graphs to display the data.
    LabVIEW Champion . Do more with less code and in less time .

  • Labview code for closing the command window

    Hi,
    This is naveen.Actually we are using 3rd paty test software for our mobile hardware testing which creates an DOS or Command window after execution.We have automated to execute this software using labview.the problem we facing is that we couldn't run the test software unless we close or kill the dos window opened in the previous run.So i like to know whether you have any labview code for closing or killing the DOS window ,i request you help me in this regard.
    regards,
    Naveen 

    Use the System Exec VI Owning Palette: Libraries & Executables VIs and Functions.
    And take a look here http://www.tech-recipes.com/rx/446/xp_kill_windows_process_command_line_taskkill/
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Can some body help me to develop labview code for generating pulse to drive ac servo motor

    can some body help me to develop labview code for generating pulse to drive ac servo motor... i am using NI 9401 card ....tnx

    Driving an AC servo motor would (I missed AC on the previous msg) requires some complex hardware. This is generally done by drivers specifically designed for this purpose. I doubt you will be able to accomplish this with the hardware you currently have and it might be cheaper to just buy a driver for it and control the speed through the driver.

  • Need help with Labview code for DAQmx

    I'm currently trying to write Labview code for some thesis research and am having problems.  I'm using the cDAQ 9172 with strain gage modules and two voltage input modules.  I'll be reading/recording a voltage from an external source on one channel, while recording strains and accelerations with the other channels.  I need to do all this simultaneously.
    Everything I've done to this point has been in SignalExpress so I'm not sure how to program any of this.  I also need to be able to calibrate the strain gages prior to each set of recordings.  Any help you guys could offer would be greatly appreciated.  Thanks.

    Hi,
    I'm not sure how much this will help you, but I've attached a screen dump of code from a project I did that sounds pretty similar to what you're working on. The code is from a subVI that I used to create the daqMX measurement task for my data acquisition. I was also using a 9172. This was written in 8.5, but the only thing that you may not have access to is the functions for null offset and shunt cal of the strain gage channels. Hopefully this will at least get you started on your way to setting this up.
    Andrew Carollo
    Attachments:
    create task.jpg ‏208 KB

  • LabView codes for RTlinux

    Dear fellow LabVIEW users,
    I have found the LabVIEW codes for RTAI real time linux. But I cannot find any for RTlinux. I am wondering whether they can be used for RTlinux as well.
    Your reply is highly appreciated.
    Regards,
    "LabVIEW user"

    Hi Balagyi2001,
    Which codes do you refer to? We do have   LabVIEW for Linux that
    may or may not be compatible with certain kernels that have been made
    to run more deterministically.
    Richard
    Field Sales Engineer, New Jersey
    National Instruments

  • Need help with LabVIEW code for motor control.

    Hi,
    My name is Sasi. I am a BME grad student working on my thesis topic of evaluating spine implants for low back pain. For this I am building a test machine that would apply pure moments to a spine specimen. I am using LabVIEW 8.5 to implement control of a brushless AC servo motor. My requirement is,
    Step 1: Initialize the motor.
    Step 2: Start moving it at a uniform RPM to the right (This RPM value too user can enter).
    Step
    3: While doin Step 2; simultaneously read torque cell data (Using DAQ
    asst.). DAQ o/p is from 0 V to 10 V; 0 V being -10 Nm n
                10 V being  +10 Nm
    Step 4: When Torque value reaches +10 Nm, i.e 10 V, the motor stops.
    Step
    5: From the position where motor stopped (i.e no need to reset to
    initial position) Start moving in the opposite direction at the same
                uniform RPM as in Step 2 while reading torque cell data.
    Step 6: Once again when torque reaches -10 Nm, i.e. 0 V, the motor should stop.
    Step 7: Repeat 'Step 2' to 'Step 6' 3 times.
    Step 8: Reset motor postion.
    Till now I have managed to get the motor to move forward n backward @ a desired vel, accl, n deceleration for 3 cycles. I am attaching my code. I am having problem inserting the code for reading DAQmx amidst all this. Can anyone help me out.
    Thnks,
    Sasi.
    Solved!
    Go to Solution.
    Attachments:
    Test_012609.vi ‏35 KB

    Hi Sasidhar,
    I took a look at your problem and I think I have a workable solution for you.  I definitely agree with Lynn's suggestion of using parallel loops.  This will allow the DAQmx portion to run uninhibited by the motion portion, and vice versa.  Plus, you only need to iterate the motion loop whenever the voltage level crosses a threshold.  So, by iterating on the motion code in the same loop that you are iterating on DAQmx code, you are essentially wasting processor.
    I created a VI that should do what you are wanting.  I tested it out myself and it works great.  You might have a tweak a few things to apply to your system (like motion board ID and DAQmx physical channel, etc.).  I used two parallel loops and event-based programming.  Basically the motion loop starts the motor spinning at the specified velocity.  Once the motor is spinning, it waits for the DAQmx loop to tell it that the voltage value has crossed the threshold.  When the voltage value exceeds the maximum threshold (which I set to a value slightly less than 10 to allow for jitter and saturation), the DAQmx loop signals the motion loop that it can finish its iteration.  The motion loop stops the motion, reverses the direction, and starts the motion again.  Once motion has started, it again waits for the DAQmx loop to tell it that a threshold has occurred, but this time, it is looking for a minimum threshold.  I used "Occurrences" to implement the event-based programming in LabVIEW.
    I have commented the code rather thouroughly, so hopefully the comments will answer any remaining questions.  The benefit of using event-based programming for this is that you save processor time, and your motion is more closely synchonized with the DAQmx.  Instead of iterating the motion loop as fast as you can, checking for updates each time, you just pause it, and wait for the other loop to tell you when to start up again.  In the mean time, the processor doesn't have to worry about iterating that loop over and over again.  Also, when the occurrence does occur, you catch it immediately, instead of having to wait until the next iteration.  Thus, you are more closely synchronized with the DAQmx portion of the code.
    I hope this will help you.  Please post back if you have any questions about the code or its implementation.  Good Luck!
    Message Edited by Wes P on 02-03-2009 05:18 PM
    Wes P
    Certified LabVIEW Developer
    Attachments:
    Motion and DAQ.vi ‏59 KB
    DAQmx Loop.png ‏24 KB
    Motion Loop.png ‏17 KB

  • Continuous Servo Sample Labview Code for FTC Robotics

    We are trying to use a continuous servo on our FTC team. The motor just runs and runs and never shuts off even when the programmed button is released. We see sample code for the 180 degree servos, but nothing for the continuous ones. Is there any sample code anywhere? Thanks.

    Hi,
    There is a dedicated discussion forum for FTC robotics which is located at https://decibel.ni.com/content/community/first/ftc 
    and monitored by other FTC teams and some dedicated R&D teams.  
    Thanks and have a great day!
    Regards,
    Dave C.
    Applications Engineer
    National Instruments

  • Has anyone written any Labview code for a Luxtron 790, a SRS RGA 100 or a Spectrapro 300i?

    I'm looking for some code to control these three devices. I know I might have to write the code myself but if there is someone out there who has already gone through the trouble, it would save me a lot of time.

    Thanks for that info. Unfortunately, I just looking for someone who wrote something to change the grating.  They supply some library functions written in C and they are called using a .Dll, but when i do call them the grating does not change.

  • Example Labview code for Cypress FX2/EZUSB devices?

    Is there any example code available to interface a USB device based on the Cypress FX2 (EZUSB) series chips using NI-VISA (for cross platform support)?
    The Cypress EZUSB devices require you to first download the microcontroller code to the device using a simple on-chip download mechanism - then access the device to do whatever that code allows you to do.
    I need to support the device under both Windows and Linux, and would think a NI-VISA based interface would be a fairly simple way to do that.
    Hate to reinvent the wheel - anyone done this before?
    Any comments?

    Hi
    I have not been able to find any example code to the Cypress EZUSB device...
    But I have found a tutorial that explains how to use the NI-VISA to control the USB device!
    Regards
    Mohadjer

  • Labview code for generation of pulses like radar pulses inputting sine waves

    dear sir,
    kindly send me labview block diagram as simple as possible who could convert

    This is a duplicate post. Please refer to this link for further
    information.
    In order to maintain the
    forums in an orderly manner and to keep problem solutions and information in a
    consolidated fashion easily searchable by customers, duplicate posts are often
    linked. Best of luck in future applications.
    Jared T.

  • Would anyone know how to program the Labview code for the following: Recording an analog input signal for 100msec and then repeating this 100 times in order to finally have an averaged signal (waveform)​?

    I have added a vi, but it doesn't quite work. Would be very grateful if someone could help, thanks!
    Attachments:
    Average_0411041_2.vi ‏77 KB

    The attached VI collects 100 ms of data and does a rolling average. Since your sub-VI were not included I created this from scratch. There are comments in the code. I hope this is what you need.
    Dirk
    Attachments:
    rollingaverage110x100.vi ‏47 KB

  • Where can I download LabVIEW example codes for NI PCI-6014

    I bought an PCI-6014 DAQ device, please tell me where I can download the LabVIEW codes for this device.

    Hi,
    If you have labview package, you can find lot of examples there.
    Start Labview -> Help Menu -> Find Examples-> Hardware input and output -> DAQ -> Here you either you can go to analog input -> then general -> search vi as per your requirement.
    Or you can use timer/counter/digital input & output example vi from here.
    Hope it helps. Your feedbacks are welcome.
    Best Regards,
    Nirmal

  • Visual C/C++ code/Labvi​ew code for interfacin​g NI Hardware

    Hi,
     i need Visual C/C++ code/Labview code for interfacing NI Hardware and sample project example.

    Then your question does not make much sense. NI hardware such as DAQ devices use a proprietary driver that you can't use. Interfaces such as serial, USB, Ethernet, require specific hardware and firmware on your device. Have you decided on the physical interface or are you looking for suggestions?
    You've already been told where all the LabVIEW examples are.

Maybe you are looking for

  • DBLINK truncation with SAP HANA db

    Hi - I have Oracle 11g installed in my Windows laptop and dblink connected to SAP's HANA database via ODBC using the HANA odbc driver. My NVARCHAR data in HANA is being truncated in half. I am working thru sqlplus. Same result in SQL developer client

  • AC adapter for

    Hi there.. I am just about to order myself a Zen Touch (which i'm quite excited about..yay)..but given that I really don't know that much about electronics, I was just wondering about the AC adapter since i'm going to be ordering from the US... Do i

  • I need a phone that will use system ring tones to ...

    I want a Dect phone that will plug into the analogue socket on a telephone syetem. When the phone rings I need to be able to tell the difference between the internal and external ring tones.  Many phones are unsuitable because they use there own inte

  • Ibook Clamshell Airport issues...

    hello everyone! I have an iBook Clamshell, Graphite color, OS 10.4.3, 320MB RAM, 466MHz Processor. I also have a macbook with OS 10.6.4 2GB RAM, 2.4 GHz Processor. I am trying to connect to the internet on my clamshell via it's Airport. The Macbook w

  • Transferring home videos on DVD to external harddrive through macbook

    I want to transfer all our old home movies which are all on DVD to an external harddrive. I try dragging but that didn't work. I made a copy of the video and dragged to hard drive but that also didn't work. What do I do?