Pressure sensor interface

Hi,
I am trying to building an application to test pressure leak on my instrument. I am using (30) MPXH6400A pressure sensors interfaced to NI USB-6218 DAQ card. I looked at the signal level compatability for the outputs from pressure sensor and input to DAQ and everything looks ok. I am a newbie in using Labview and I am trying to build a .exe for manufacturing to test my instrument on the line for any pressure leak. I figured there will be some starting point which I could use to build my application. The way that I envisioned the program would work: Interface each output from the sensor to a seperate A2D channel in DAQ and have a threshold in the software. If it passes the threshold light an LED with green showing the instrument has passed pressure leak test or if not light the led "RED". I would really appreciate if I could get some pointers to where I could start.
Thanks

Help\Find Examples...\Hardware Input and Output\DAQmx\Analog Measurements\Voltage : will lead you to lots of examples
Pick this one: "Cont Acq&Graph Voltage-Int Clk.vi" as a start
On your computer, you should find it here C:\Program Files\National Instruments\LabVIEW 8.5\examples\DAQmx\Analog In\Measure Voltage.llb\Cont Acq&Graph Voltage-Int Clk.vi
Like Dennis said enter "Dev1/ai0:29" for 30 consecutive channels on a Device named "Dev1".
If you named your USB DAQ something else, use this instead of "Dev1" of course.
Process the "Data" output from the "DAQmxRead" vi as requested to turn your 30 led's red or green.
Attachment SNAG-002.jpg is just a very rough idea on what you could do.
Average 1 second data and compare it with some threshold levels.
Message Edited by Alain S on 01-03-2010 03:13 PM
Attachments:
SNAG-001.jpg ‏292 KB
SNAG-002.jpg ‏45 KB

Similar Messages

  • Running a system which conclude "Stepper motor + Pressure sensors"

    Hello
    I need some help as a beginner. Would u please guide me?
    Actually my project is about running a system with LabVIEW which is contain a stepper motor (with different speeds in clockwise and unit clockwise) a pressure sensor, a switch for calibration the sensor and finally reporting the output as a graph with shows the distance that motor moves a barrier and changes of pressure during the movements of barrier.
    Right now, I have stuck in ordering the hardware parts for connecting the PC to the system. I don't know exactly what do I need to handle the hole system. Would you please help me? I don't know from were and how should I start?
    Thanks a lot

    As GerdW mentioned in the other post you might want to speak with a NI applications engineer.  If this is a school project of some type and/or you just want to spec everything yourself then you certainly can.  Your first step is to define all the physical parameters of your devices.  So you need to know what kind of stepper motors you need based on the required angular resolution, torque, etc.  What kind of pressure gauge will you use?  What type of output will it provide you (simple voltage, pulse train, full USB interface)???  What kind of switch will you use.  Can it be controlled by low-current TTL or will you need a driver or relay?
    Make a list of everything you will need for your application:  motors, sensors, switches, etc.  Then determine how to interface to them.  THEN you can start looking through your hardware options and pick the best choices based on your needs.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • SCXI 1520 for potentiome​ter type pressure sensor

    I am usig 1520 for bridge type pressure sensor data acquisition.
    I have a requirement for potentiometer type pressure sensors. The sensor is a potentiometer that needs 5V exciation.
      +---------------- Exc+
      |
      |
    +--+
    |   |
    |   |
    |   |<-------------- O/p+
    |   |
    |   |
    +-+
     |
     |
     +---------------- Exc-
    I was wondering if I could use 1520 for interfacing with such sensors?
    I am hoping I can short P- and S- lines and connect to Exc-. P+ would be Exc+ and S+ would be O/p+.
    The resistance between Exc+ & Exc- is of the order of 1-5 kOhm. So the current drawn from the excitation supply is of no concern for the 1520, I believe.
    Can I do this with the 1520?

    Dear Cas,
    Thanks for your enquiry. You have obviously done a great deal of research into this matter already. I am afraid that it is unlikely that you will be able to use a single SCXI module to carry out all the functions you have listed. As accelerometers require such specialised conditioning, it will require a dedicated module - as you already mentioned, something like the 1530 (4 channel accelerometer input module) would be ideal.
    However, you have a number of different options for the pressure, voltage and temperature measurements.
    For example, you could purchase a 1520 mudule for your pressure measurements, and then use a general purpose 1102B for the voltage and temperature (you would require the 1303 isothermal terminal block to condition the thermocouple readings... and bypass the CJC technology for the voltage readings).
    Or, perhaps you could use the 1102 thermocouple module for your temperature readings, and then use a 1102B to take the voltage and pressure readings. Obviously this would involve making your own bridge configuration for the pressure sensor, but that should be fairly easy.
    Before you make any final decisions, I would recommend that you call your local branch of NI and speak with a sales representative. Perhaps, a member of the field sales staff could actually come to see you to discuss the matter face to face.
    lastly, it sounds like you have a relatively high channel count for some of your readings, which is why you have decided to use the SCXI platform. I was just wondering if you had considered compact DAQ (cDAQ), which combines DAQ hardware with signal conditioning. Higher spec, ease of use, lower channel count. Swings and roundabouts I guess.
    I hope this has been of some use to you.
    Best wishes,
    Rich R
    Applications Engineer
    National Instruments UK & Ireland

  • How to save the dynamic data from a pressure sensor

    Hello Everyone,
    We have a FPGA board NI cRIO-9073, a temperature module NI 9217 and a pressure module NI 9203. Right now we have problem with saving the data from pressure sensor.  I succeed in getting and saving the data from the temperature sensor. Then I just simply modify the FPGA VI and host VI of the temperature function block which are shown in the attachment files.But I get an error saying I cannot connect two different data types.
    Could anyone here give me a help on this?
    BTW: we are using a 2 wired pressure sensor with 4~20mA. The brown one is +Vcc and the white one is GND.I connect the white one with the COM of NI 9203 and the brown one is connected to AI7. DidI make a right connection?
    Thx for any help from anyone!
    Attachments:
    pre_tem.JPG ‏36 KB
    pre.jpg ‏35 KB

    Hi, I get this error message:
    Write to textfile: function contains an unrelated or improper connection.You have combined two different types of connections among each other.
    At least one entrance of the function required for their operation, is open or not properly connected, the connection scheme is illustrated in the context help.
    They have combined two different types of connections with each other. This connection is not possible because the data types (such as "numeric", "String", "Arrary" or "clusters do not match"). Open to see the contextual help at what must have a data type for the connection. The type of data source (fixed) costs. The type of data is dynamic data.

  • How can I configure NI PCI 6221 and DAQ SCB-68 for pressure sensors?

    Hello
    everybody,
    I am using the measuring board (NI PCI 6221) and DAQ
    SCB-68 for the data acquisition.
    With the DAQ-Assistant I created AI for the voltage of
    pressure sensors. In a big indicator panel from this DAQ-Assistant I see the
    voltage for both sensors in the correct size. But if I set sensors in the
    blockdiagramm to control the signals for sensor one I get a wrong voltage size
    and for sensor 2 nothing.
    How can I configure this data acquisition equipment to
    get the correct signals?
    Thanks a lot for your help.

    I do not know the type of sensor you are using. But pressure transducers may have a very low output voltage(in the mVolt range). They also need an excitation voltage. Here is an introduction. http://focus.ti.com.cn/cn/lit/an/sloa034/sloa034.pdfThen working with pressure sensors I always use 3 stages in the circuit.
    1 Instrumentation Amplifier as a preamp
    2 filterstage
    3 Final amp and output buffer
    (you may combine stage 2 and 3)
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Pressure sensor calibration in labview

    Hi all,
    I have a problem in calibration of pressure sensor.In attachment i am sending the data-sheet of the sensor and the block diagram i made.I used linear fit to calibrate.y axis range:0-100 bar x axis range:0-10VDC
    Are there more accurate solutions existing?
    Regards,
    Attachments:
    H72300.pdf ‏380 KB
    pressure read 2.vi ‏33 KB

    That linear fit being in there makes the VI more complicated than it needs to be.  Since 0-10V equals 0-100 psi, it is simple enough to just multiple the DAQ read by 10 and your done.
    Back to your other thread, now that you've told us that the sensor outputs 0-10V, that means you have the right DAQ card, but using Pressure(Bridge) in the DAQ assistant was just wrong.  You would have used analog input.  You can set a custom scale in there to convert 0-10V to 0-100 psi.
    At the end of the day, your current VI is better because you are using the real DAQmx VI's rather than the DAQ assistant.

  • Measurment through a vibration sensor interfaced with Ni-PXI is very low & less responsive. I wana know any frequency limitations is there for PXi or the system uses any clipping ckts inside ???

    Measurment through a vibration sensor interfaced with Ni-PXI is very low & less responsive. I wana know any frequency limitations is there for PXi or the system uses any clipping ckts inside ???

    It would be helpfull to know what PXI hardware and what sensor you are using.
    Up to now I only found mechanical limitations ....
    (Creating a 100kHz sinus exitation with 160nm amplitude need more than 63km/s² (>6400g) acceleration  )
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Which Xperia phone models have pressure sensor?

    I've downloaded many specs (e.g. Z, Z1 compact, ...) but haven't found information about whether one of the newer phones have a pressure sensor (barometer, typically used to calculate altitude).
    Is there a feature matrix showing devices and features like "pressure sensor"?

    Thanks. If Xperia active is the only phone with pressure sensor (barometer), then this is really sad, because Sony doesn't sell it any more.
    Calculating altitude based on GPS is a desaster, especially if you want to know current and total incline when doing outdoor activities. In the following graph you can see the altitude (GPS-based) of a Xperia active resting on the same location for about 3 hours. Height varies by almost 100 meters and it's steadily going up and down:
    I'm afraid I have to change to Samsung Galaxy S4. This makes me sick - Sony has about 26 models (A..Z), they already had a compact outdoor phone (active: waterproof, ANT+, barometer, compact) and now they produce indistiguishable, longish phones which lack important features for outdoor freaks.
    @Sony: Is it true that you haven't spent a barometer for Z1 Compact? Are there any plans for Z2 compact to have barometer (pressure sensor)? I have some time left, Xperia neo and active are still working...

  • Configuring sensor interface on 4250-XL

    Tried CISCO IDS sensor 4250-XL with the following 4 interfaces:
    Int0- ethernet
    Int1- ethernet -- command and control interface
    Int2- fiber
    Int3- fiber
    Can we use Int0 (ethernet) interface as the sensoring interface? Whenever I tried to add it to sensoring group 0 in the Device Manager or command line, it fails:
    TDC-4250-IDS-1# conf t
    TDC-4250-IDS-1(config)# int group 0
    TDC-4250-IDS-1(config-ifg)# sen
    TDC-4250-IDS-1(config-ifg)# sensing-interface int0
    Error: int0 is not a valid sensing interface
    TDC-4250-IDS-1(config-ifg)#
    IDS version is 4.0
    Attached is the sh tech

    Versions 4.0 and 4.1 do not let you monitor the int0 interface when you have the XL card installed.
    This is because the XL card is an accelerator card that needs a special driver and kernel for monitoring. When the XL card is installed the system will detects it's presence and automatically load that special driver and use the special kernel settings. The special driver and settings won't work for int0.
    Now if you want to monitor with int0 and not the int2 or int3 interfaces, then there is an option with version 4.0 and 4.1. You can physically remove the XL card, and the sensor will detect the removal and load the standard driver and use the standard kernel settings and the int0 interface can then be monitored just like with a standard IDS-4250-TX box.
    Because of requests like yours, this was changed in version 5.0 (and 5.1). The interface drivers and kernel settings were consolidated for the standard TX interfaces and the special XL interfaces. So in version 5.0 you can now monitor the standard copper ethernet as well as the XL interfaces at the same time.
    But do be aware that the performance gains when using the interfaces on the XL card will not be seen for monitoring on the copper ethernet interface of the main board. The acceleration is built directly into the fiber ethernet ports themselves.

  • Creating bridge scale in labview -No calibration certificate with pressure sensor

    Hello everyone,
    I watched a Laview video online on how to measure pressure transducer  and applied the steps to my laboratory work ( https://www.youtube.com/watch?v=spTHTfjVlo8 ) but I couldn't go further when  I got to the section of creating a bridge scale for the pressure sensor model I bought from Measurement Specialties   (EPX-N02-1B-/Z2/L1M/25M) because the calibration certificate did not come with the device.
    I proceeded to run the test but the pressure value I got was way beyond the capacity of the device (1 bar).
    My question is; is there a way to sensibly adjust the values of the physical and electrical units without having the calibration certificate of the device?
    Thanks in advance for your response.

    Hi Wapz,
    My name is Mitchell Goon, from National Instruments Technical Support.
    You will be able to download a detailed calibration certificate for your device from the NI website. You can refer to the link below for more information on how to obtain the Calibration Certificate:
    http://digital.ni.com/public.nsf/allkb/7695C93D283BC1A086256B1800631DCF?OpenDocument
    With regards to your query, you will need to have external signal conditioning before acquiring any data from the pressure transducer. These may include:
    Bridge completion
    Excitation
    Remote sensing
    Amplification
    Filtering
    Offset
    Shunt Calibration
    Connecting the pressure transducer directly to the DAQ device may yield unexpected results. You may wish to refer to the following links if you need more information of acquiring pressure with a DAQ device:
    http://www.ni.com/white-paper/3816/en/
    http://www.ni.com/white-paper/3639/en/#toc4
    Additionally you may wish to refer to this tutorial on how to setup your DAQ device for pressure measurements:
    http://www.ni.com/tutorial/7138/en/
    I hope that this information will be useful for you. If you require any further assistance, please do not hesitate to contact us and we would be more than happy to assist you.
    Kind Regards,
    Mitchell Goon
    National Instruments
    Applications Engineering
    www.ni.com/support

  • Vi to Control Baratron Pressure Sensor not working

    Hello,
    I have a VI which has been written to control an MKS baratron pressure sensor. The set-up I have is as follows:
    MKS Baratron Type 628B Pressure Transducer   --->   MKS Baratron Type 274 Multiplexer  ->  MKS Type 670B Signal Conditioner
    I have connected the 670 unit to laptop via NI card and 15 pin D type connector (serial).
    The VI I am running does not work unfortunately and I am seeking advice as to what could be wrong with it.
    I should be able to change channels on the 670B to read either 1 of 3 selectable channels but this I cannot do. I should see a light change on fron of the unit indicating that a different channel has been selected. Also, It does read some sort of value from the unit but not the correct value. I select the correct port as COM3 with the input stage of the VI.
    I have attached the VI I am using.
    Nevica
    Attachments:
    Baratron2.6.vi ‏524 KB

    IF you are running the Microsoft Windoze Operating System (ie: XP), it should be located from the Start Menu:
     All Programs > Accessories > Communications > HyperTerminal
    Start HyperTerminal
    It will ask you to setup a new connection.  Give it a name such as MyCom1 and select any of the icon (the red phone is fine so just click OK).
    Select the COMM port in the connect using (example COM1). Click OK
    Then configure your COM port based on the settings that are recommenced by the manufacturer of the pressure sensor.
    It is often but not always 9600, 8, None, 1, None...  but not always... Check what they recommend and use the serial cable that should have been provided with the sensor.
     Click OK.
    Then try sending some commands or at least a carriage return (ENTER) so see if there are any responses from the sensor.
    R

  • USB interface pressure sensors

     Hello all!
    I've recently acquired a DigiTacts pressure array sensor like those depicted in the following link:
    http://www.pressureprofile.com/products-digitacts
    Has anyone already worked with these sensors using LabView?
     The interface is USB.  Will it be possible through LabView to communicate and acquire information from these sensors?
    They come with an API...
    Thanks in advance!
    Best regards!

    I forgot to say but the API was built with C++ and comes with a DLL file.
    An example code could be as follows:
    #include "d500_include.h"
    #include <windows.h>
    #include <vector>
    #include <iostream>
    #include <fstream>
    namespace
    byte const averageLength = 0x03;
    byte const scanCount = 0x30;
    int const nFramesToRead = 50;
    char const * outputFileName = "data.txt";
    int main(int argc, char* argv[])
    std::cout << "Configuring sensor...\n";
    configureD500 ( averageLength, 0x01, scanCount);
    Sleep( 2000 ); // wait for configuration to complete
    setDAQEnabled( true );
    // The following section automatically finds the attached sensors and
    // allocates memory accordingly. This can be done manually if preferred.
    Sleep( 500 ); // wait for sensor data to start arriving.
    std::vector<int> config(17);
    int numDevices;
    getConfig( &config[0], numDevices );
    //Calculate the packet length
    int packetLength = 0;
    for( int x = 0; x < 16 ; ++x)
    packetLength += config[x];
    int nSensors = packetLength;
    ++packetLength; //Add an element for the time stamp.
    std::cout << nSensors << " sensors are connected.\n";
    // End of optional automatic setup routine.
    std::vector<float> dataArray(packetLength, 0);
    std::vector< std::vector<float> > buffer;
    int framesReceived(0);
    //Main loop
    std::cout << "Reading " << nFramesToRead << " frames of data:\n";
    for (int ii = 0; ii < nFramesToRead; ++ii)
    getData( &dataArray[0], framesReceived, 1); //Request 1 frame
    if( 0 != framesReceived) // We have new data
    std::cout << (ii < (nFramesToRead - 1) ? "." : ".\n");
    buffer.push_back(dataArray);
    Sleep(50); // Pause so we can see the loop run
    // Write data to file
    std::cout << "Writing data to " << outputFileName << "\n";
    std:fstream out(outputFileName);
    out << "Time\tSensor Data\n";
    for (int i = 0, n = buffer.size(); i < n; ++i)
    for (int j = 0, m = buffer[i].size(); j < m; ++j)
    out << buffer[i][j] << ((j == m-1) ? '\n' : '\t');
    stopScanning( SEN_I2C_BROADCAST ); //Stop the sensors
    return 0;
    How could I do something similar using LabView?
    How could I use the DLL file in order to do this?
    Any help would be greatly appreciated.
     Thanks in advance.
    Best regards.

  • Pressure sensor failing to provide reading.

    Hi all,
    I'm using an RS comoponents pressure transducer UK part number is 461-323 http://uk.rs-online.com/web/search/searchBrowseAction.html?method=searchProducts&searchTerm=461-323 trouble is I can't seem to get anything from it.
    The obvious things like the wiring and the voltage set-up appear to be correct and in signal express I'm seeing some noise coming through, however, when I apply a presure to the system, I get no change in the reading. It is as though the system can see the sensor, but not get a real reading from it.
    Anyone come across this kind of thing before or any suggestions as to what may be going wrong?

    Hi docb
    How are you trying to get this sensor information into your computer?
    What National Instruments hardware are you using?
    Which drivers do you have installed?
    Have you been able to measure a change with any other hardware such as a multimeter?
    Regards
    Robert
    National Instruments UK & Ireland

  • I2C interface (Sensor Data Acquisition) LabVIEW

    Hi all!
    Hope you are doing great!
    Well I have a question which is more about asking all you for an idea!
    The Situation:
    I have a circuit board which has an On-Off Valve, Digital pressure sensors (manufacturer AMD) and Humidity/Temperature Sensors (make- IST Hygrosens). On the board all the sensors communicate as I2C slave devices and all the data from the sensors is read into an I2C --> USB adapter chip which further connects to the PC via normal USB cable.
    Additional to this board, There is a Relay circuit with a simple 1-pole relay which controls an on-off valve on the above Circuit board. This valve is controlled totally separate via a coaxial cable from the relay directly to the Valve. But the relay board has a I2C interface and it also acts as a slave device. The relay board has the same I2C --> USB adapter chip.
    Both the Relay board and Sensor board connect via USB to the PC which I suppose is the Master device.
    The software code written for this arrangement and Sensor data acquisition is too old and there are a lot of problems coming. I have almost given up troubleshooting..
    I now want to translate this automation system onto LabVIEW. I searched the NI website where there is a DAC card called - USB8451 which supports I2C interface... I am a beginner in LabVIEW and cant really make sense out of how should I go about implementing this system on LabVIEW..
    If you guys can please help me out to atleast start (like what all hardware I would need etc..), to have a clear picture, it would be great help!!
    Looking forward to your inputs and Thank you so much in advance!
    Cheers!
    Pramit

    NI provides a LabVIEW API for the USB8451.  If you use the USB8451, you would use the provided API to write a program that controls the USB8451 and you would do all of the I2C communication in your program.  This would mean using functions / SubVI's to connect to the USB8451 and then perform I2C operations through it.
    If you use USB already on your device, then you would probably use NI-VISA as the driver and have to get / write your own API to talk to the specific device.  The manufacturer may have a LabVIEW (or other) API available for talking to the device that you could get.  If not, then you would have to understand the details of how to communicate with the device and then write an API using NI-VISA serial functions.  This would mean making NI-VISA be the assigned driver for the device and then using VISA Serial functions / SubVI's to send the messages and receive the responses.

  • Measurement of the dynamic pressure by IEPE sensor

    Hello, I work on cylinder pressure measurement in combustion engine. I have a piezoelectric pressure sensor with charge output 1 pC/psi and an inline charge amplifier 20 mV/pC
    what gives overall sensitivity 20 mV/psi.
    As my instrumenst are of an IEPE standard I decided to use NI9233 acquisition board. Unfortunately the output signal is far from the truth. I have checked sensor/amplifier with another acquisition device and they work correctly. I have 2 modules and both give same results. I have checked some parameters  and seems that the output signal is proportional to the logarithm from the pressure differential.  When I try to set the module configuration in MAX there is no pressure measurement available however there is force and acceleration.
    Is it possible to use this module for pressure measurement? Somebody experienced similar problems?
    Regards,
    Przemek

    Here are the parameters: Sensor Maker: Dytran, type: 2200C5
    Charge amplifier Maker: Dytran, Type: 4705M5, charge amplifier is of an IEPE standard.
     I have attached their specification cards too.
    In the file signals.jpg you can find my calibration experiment record. I was applying step-like pressure (blue line) to simulate rapid pressure increase. the value was 120 bar. I was expecting that the answer signal will be a pulse proportional to the step pressure. I have noticed that the answer depends from how fast the pressure increase, that means from the derivative of the pressure signal. I will attach one more file where you can see that it is proportional to the logarithm from that derivative.
    Honestly I do not understand it at all now.
    Attachments:
    4705M5.pdf ‏91 KB
    sensor 2200C.pdf ‏24 KB
    signals.jpg ‏96 KB

Maybe you are looking for

  • EJB 3.0 @PrePersist

    Hi, I might be wrong in how I understand the EJB 3.0 specification or there is a bug in Oracle's implementation. I try to use @PrePersist lifecycle callback from an entity bean and I can't even compile the code because this annotation is not applicab

  • Error when drilldown to ODS report

    Hello, We face a strange problem. We have a report on an ODS (BW 3.5). If fiscal yr/period parameter range of the report includes 003/2006 or 003/2007 (March of 2006 or 2007) we encounter an error when we drill down by fiscal yr/period. The error is

  • Regarding ABAP Dump found when saving the job.

    Hi all, Generally we create a job and once the job is created,we rasie Sales Order,Purchase Order and so on. When we create a job we give the details of the Sold -to-party,client,parent and child job text,advertising category,project type, sales orga

  • Need mac address to get ATV on wireless

    Mac address filtering is on - I need to find the mac address on ATV so that I can use this thing! Any ideas how to do that?

  • Security Log entries on domain controllers

    Hi Everyone, I started working in an environment where they must log all security events due to regulations on one of the domains. It has 200 Windows XP and Windows 7 computers and about 200 users give or take. It has several servers including 2 Wind