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.

Similar Messages

  • Where are the guidelines for how to interface customized data acquisition equipment to LabVIEW?

    I have a need to do some very specialized data acquisition that may require building special hardware. I would still like to use LabVIEW as the front end and perhaps even carry portions of the interface over into the final product. However, I cannot find the documentation. Where is that kept? I have seen references to a number of generic protocols, without any links back to the details, that may be suitable. The data is high bandwidth, but bursty with sampling rates up to 40 MHz and events that last about 100 milliseconds. Can anyone recommend which of the various methods would best suit this application?
    Solved!
    Go to Solution.

    Once you have figured out your communication bus, it is just a matter of how to format your commands and data.  You will need to do this regardless of programming language you choose.  Formating the data is quite simple in LabVIEW.  You just have to write the data to the right thing.
    Quickly based on the limited parameters you have given us, I would go with an Ethernet connection.  I'm not completely sure if the Ethernet bus will be able to handle your bandwidth, though.  If not, then you will need to go to a PCIe or PXIe connection.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • Data acquisition synchronisation Arduino/LabView

    Hello,
    I'm trying to acquire force sensor values using an Arduino board (reading the data and controlling a motor) and LabView. The data acquisition rate is tunable according to the motor condition, meaning a high acquisition rate (short delay) during the ON state of the motor and a low acquisition rate (long delay) during the OFF state of the motor.
    I managed to acquire the data, but till now I always find some "0" values though I'm applying a continuous force on the sensor. I guess the main problem is the synchronisation of the "datarate" on the Arduino board and the acquisition time point in LabView.
    I hope that you could halp me, since I'm trying since weeks to overcome this problem. You will find both the LabView and the Arduino source codes in the attachment.
    Attachments:
    CBR control_opti.vi ‏206 KB
    CBR_Arduino.docx ‏15 KB

    Dear all,
    last week I had some limited time, which I could dedicate to my work with Labview. Unfortunately I'm not able to solve the problem with the Consumer/Producer architecture. It seems to be the appropiate solution, but due to my limited knowledge I'm not capable of doing that.
    I will add my modifications (CBR control_Prod-Cons.vi) to give you an idea about what I've achieved so far. I appriciate any help of you, since this story is driving me crazy. Additionally, I attach a JPG showing the readout I'm obtaining with the old version (CBR control.vi), where the red circles indicate the problem with the "0" values.
    Thank you again,
    Cheers 
    Attachments:
    CBR control_Prod-Cons.vi ‏203 KB
    sensor read out.JPG ‏164 KB
    CBR control.vi ‏206 KB

  • How to use peak detection in labview to detect peaks from data acquisition information

    Hi
    I am a university engineering student who is working in a team to develop a coin detector, its purpose is to recognize different coinage and detect fakes.
    For this we are using LabVIEW 8.5.1. I am relatively new to labview and have had no experience of using to before. We are trying to integrate four voltage signals produced by an electromagnet, straingauge, optical sensor and a proximity sensor. We have already developed signal conditioning for these tests and now wish to put them into labview.
    Our plan is to use peak detection on each of the tests so that labview can detect peaks which correspond to different coin types, provided they meet set criteria for each coin. Then to combine these either using logic or mathscript to produce a Boolean output for each coin.
    One of our advisors helped us develop a peak detection program for a simple simulated sine wave however we are struggling to adapt this for data acquisition information and itegrate it with mathscript and to be honest it does not make much sense. I have attached the program below. Thanks in advance for your assistance. 
    Attachments:
    Strain 2.vi ‏25 KB

    Chris,
    Here are several ways to help  you get started with peak detection:
    1. On your functions palette, you can search for "peak detect" and you'll find several different variations of VIs that will do peak detection.
    2. You may also want to take a look at this tutorial: Peak Detection Using LabVIEW and Measurement Studio
    3. There's an example in the example finder called "Peak detection and display" that will probably be useful. 
    Hope this helps, 
    Misha

  • Decisions based on the data acquisition in Labview

    Hello
    how can make decisions in labview based the output of the data acquisition..
    For example. if I have a voltage comming in from the light sensor...and lets say I want run the for loop this many times if the voltage comming out is greater than some threshold...any examples.
    Thanks
    SK

    1. What makes you think the for loop does not iterate?  If the Start Stop toggle switch is in the Stop position, the while loop inside the for loop will never end so the for loop will stay in its current iteration waiting for the while loop.  If the switch is true, then the for loop will run through its 10 or 20 iterations in 1 or 2 seconds.
    2. It is usually better to create and start the task outside the loop, write the data inside the loop and then clear the task after the loop finishes.
    3. Your indexing of the boolean array to write can be done very simply with the Quotient & Remainder function and a Subtract from 3 inside the false case of the CCLW/CLW structure.
    Run your VI with Highlight Execution (the light bulb on the block diagram toolbar) turned on and watch what it does.
    Here is a cleaned up version of your diagram showing the simplified indexing.
    Lynn

  • Help: can labview support anyone's designing Data acquisition CARD?

    I want to design a " Data Acquistion Card" with PCI interface,and want to drivedand process output data in labview, But I don't know whether Labview has this function to drive or read/write this kind of Data Acquisition Card which designed by myself not by NI company.

    What you use in LabVIEW will depend on what type of low level driver you write. LabVIEW has the Call Library Function Node for calling a DLL, the C Interface Node, Active X, and .NET functions. You can even use VISA and do register reads and writes.

  • Problem in data acquisition for cRIO-9076 wth c series drive interface module 9516

    I am using LabVIEW for my project i.e., the speed control (using PID) of a motor and want to create a vi for the same.
    The specifications of the products being used are as follows:
    1) Motor: AKM24F (dc motor)
    2) CompactRIO: cRIO-9076
    3) C Series Servo Drive Interface: NI-9516
    I am facing problem regarding the real time interface between the motor and PID block in labVIEW i.e. in the data acquisition part to be specific. Please suggest a way in which I can successfully acquire the analog data(speed) from the motor and vice versa in the vi.

    What is the priority of the VI you're running?  I'd be concerned that maybe you've starved out the ethernet transmit thread or something.
    -Danny

  • LABVIEW SE DATA ACQUISITION

    I need to do data acquisition from a keithley 2000 multimeter having serial port (RS 232 interface) and also IEEE 488. Does labview student edition have the necessary software ( i guess NI-VISA etc) to do so? If so, i would like to install it.

    I just purchased the NI-VISA Development Software  part #  777300-03     and NI-VISA Deployment License   part # 777300-00 . Is that all i need for data acquisition from serial device data acquisition  ?  I downloaded the driver for  Keithley 2000 meter from IDN website. So please confirm whether i am fine or anything else is needed. Your response indicates that NI-VISA alone will do the job of serial data acquisition and therefore i am not going for labview now.
    Thanks and Regards
    poli

  • Data acquisition from NI PXI 5152 using LabVIEW

    Hi,
        This might be really stupid question, I am new to LabVIEW and the Digitizer equipment. I was wondering if there are already any labVIEW based application available to read the data from PXI5152. I would be using both channels available and may be trigger. If there is no such application available, what would be port numbers I would be using for data acquisition. But, If I am to develop an acquisition software, I would be looking at every single specification of the equipment. I am assuming the output will be a digitized signal varying with the clock input, since It is used as oscilloscope. When working with labview how would I specify the port to read from and how would my PC recognize the port. I working on a pre-configured system and they won't let me unplug anything to check the configuration. Does NI provides a software to read into the signal fed into the channel and trigger inputs. I have tried looking into the different forum discussion but didn't find any that address my issue. May be it's too simple and stupid. But, it would be a great help if you could point out my misunderstanding.
    Thanks in advance.
    BP

    There are numerous examples. Help>Find Examples> Modular Instruments>Ni-Scope. There is a test panel available in MAX. On the Measurement I/O>NI-Scope palette, are all of the driver functions includeing the NI-Scope Express.
    I'm not quite sure I understand your references to 'port's. Once installed into the chassis, it should be listed in MAX. In the functions you will be using, there will be a dropdown menu that you will be able to select the scope resource name.

  • Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?

    Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
    I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
    I have attached the VI.
    Thanks for the help
    Attachments:
    new_control_and_acquisition_program.vi ‏946 KB

    Take a look at this document that discusses how to monitor IMAQ memory usage:
    http://digital.ni.com/public.nsf/websearch/8C6E405861C60DE786256DB400755957
    Hope this helps -
    Julie

  • Gyro sensor plot and save data on labview

    Hi
                I am an electrical and electronics engineering student in Hacettepe University.I wanted to ask you something about my project:
                I have Labview 8.5 installed in my computer and lego NXT hardware.I am trying to have inputs from sensors acceleration,gyro,.. which are hitechnic(gyroscope) and nxt sensors(sound..).I am able to read sound sensor data using nxt and having a graph of it in labview.I am also able to take data with nxt (seeing valures on nxt screen).When i am trying to use the same labview vi procedure using waveform chart ,however i cant see the graph ,labview console tells me that gyro.vi is password protected.(i have downloaded the gyro VIs from hitechnic.com and copied them to addons file ).
      Please can you tell me which procedure should i follow in order to read gyro sensor data and store it to be able to process the saved data with matlab.Please,if you have a sample VI for this process could you send it to me.
             I am looking forward to having your answer as soon as possible.Thank you very much.

    Thanks for answering me so soon.
    I have a Lego mindstorms NXT and also I havealready  bought a acceleration sensor and a gyro from HiTechnic.
    I muss do a two wheel- self balancing, it something like you can see here:
    http://mindstorms.lego.com/NXTLOG/ProjectDisplay.aspx?id=ee95fa2e-ab89-49bc-aaa8-dd8e422f9a3d
    I want to programme it in LabView, and also I want to run the programme only on the computer and comunicate with the lego 
    via bluetooth. 
    The problem is that to run only on the computer I need to use Direct Commands, but I couldnt do it.
    If you could help me or also if you could send me some VI (it doesnt matter if its with direct commands or not; just to have an idea) to read the gyro or the accelerometer, it would be welcome.
    Thanks in advance.

  • 18f4550 USB Data Acquisition Card - Labview

    Hello!
    I made USB Data Acquisition Card from here:
    h...p://www.elektor.com/magazines/2007/november/usb-data-acquisition-card.271706.lynkx
    And I want controll this acquisiton card over Labview.
    Could you tell me please, is it possible and how!?
    What I need to do!? (step by step)
    Thank you!

    Hallo I got the same problem. I got the same DAQ, I have te DLL file and I found the Call Library Function Node but that is when I stuck. I don’t know which parameters I need to fill in. can some one thell me how to go on.  @124132543 maybe you already heave the DAQ working en can you help me.  
    Roy ( Holland)

  • 34970A Data Acquisition Unit driver for LabView 6.0

    Is there a LabView 6.0 instrument driver available for the Agilent 34970A Data Acquisition Unit?
    Thanks!
    Paul
    Solved!
    Go to Solution.

    Here you go.
    It's actually in LV5.11 as we are still using LV 5.11 in production.
    Attachments:
    hp34970a.zip ‏1827 KB

  • PC reboots during Labview controlled data acquisition

    Hi,
    I'm using LabView to control the acquisition of a large number of gamma spectra and whenever the system gets to the ~700th data acquisition the PC reboots itself. There is no sign that the Labview software has crashed, the PC just goes dead and reboots. This problem only happens when using LabView. After a data acquisition a data file is saved to the hard drive, the files are only 12KB in size and I have 1GB of RAM, so I don't think it's a memory problem.
    Would appreciate any help!
    Thanks

    hi there
    Are there any entries in the system events list (assuming MS Win) or in some application logs?
    You said "This problem only happens when using LabView". Does this mean you can acquire data without problems when using another language than LabVIEW? if possible I'd try to create a basic app in some other language to check if the problems depend on the hardware or on the application.
    Can you provide some information about your platform and post some code (pls. don't forget required additional files lile driver DLLs etc.)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • 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

Maybe you are looking for

  • CS 6 and Windows 7, 8

    Because of security problems with Windows Internet Explorer and Windows XP I may be forced to upgrade to Windows 7 or 8. Are there any problems with CS 6 working with these newer version of windows? Do I have to reinstall CS 6?

  • Can someone help me with this issue?

    I have a date field on my form and I want to put a calender which shows the date so it can be visually chosen. Does this have to be created myself or does java offer an easier way? Thanks

  • Problem installing 9i on XP

    I have got ORacle 9i for WIN-NT/2000. I have now reformatted my computer and installed WIN-XP. But now I am unable to install Oracle 9i. Is there any patch available or any way out?

  • A2109A - 4.1.1 MCL: No camera app

    Android Version: 4.1.1 Build: JRO03R.A2109A_03_13_121126_MCL0201 Is the camera app missing or did I something wrong? What is the name of the camera app, so I can search with Titanium Backup, if it exists.

  • Can't view full episodes of CBS shows

    I have Quicktime 7.1.6. Attempts to view full tv episodes result in an error message: Don't have MIME plugin for audio/x-pn-realaudio-plugin so I can't view. I downloaded flip4mac and still the same message. How to fix? IMac 17-in,Intel Core Duo   Ma