I2C interface with FPGA

I'd like to use a 7842R FPGA card to configure and fetch the temperature from a LM75 temperature measurement IC.  Would there be code available for this online, or an example of a generic IC2 interface?  If I must code from scratch, how many hours should I budget?

Have you seen this?
http://sine.ni.com/nips/cds/view/p/lang/en/nid/209​123
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies

Similar Messages

  • I2C interface with 400kHz clock rate

    The max clock rate of NI's USB-8451 I2C interface is 250kHz.
    Please support my request for an interface with at least 400kHz.
    Has anybody used interfaces (with LV driver) from third-party suppliers with a clock rate of 400kHz or higher ?

    Hi Christian,
    Thank you for your suggestion.
    Because I don't use the LV FPGA Module, this is a too expensive solution !
    Best regards

  • I2C communication with FPGA

    We have tried using the following program to communicate with an I2C compas using the cRIO 9014 and the digital I/O NI9403.
    http://decibel.ni.com/content/docs/DOC-1151
    We get an error when we try to run the host VI(see the error on the following link)
    Error
    The project we try to run its packet here: http://uldgade.dk/I2C.rar
    Or if anyone have another working solution for communication with I2C. The device we try to communicate with is a compas from Honeywell HMC6352 

    Have you seen this?
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/209​123
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Upgrading computer with FPGA interface

    We are going to be upgrading a computer that is about 10 years old and uses a Com port to interface to an FPGA, running Lab View.  The new computer only has USB, just wondering if a cable converter (with driver) work ok with the new computer runing the old executable?  Also wondering if anyone knows if upgrading from windows ME to windows XP will cause any problems?  The Lab View also interfaces with an NI PCI-DIO32 card.
    Thanks Paul.

    Hi GerdW,
      Thank you.
      it works with your solution, but it create another problem with another vi (see picture).
      Regards,
    SASA
    Attachments:
    synamic-simple-Interface-problem.jpg ‏47 KB

  • 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.

  • RS232 with FPGA crio - anyone done this ?

    Does anyone have code to receive RS-232 with FPGA?  I have downloaded RS-232 example that contains RS-232 transmit code, i just need receive to complete my interface.  any FPGA code would be appreciated.

    Attached is an updated version of the code on DevZone for LabVIEW FPGA 8 which includes code for reading and writing RS-232 data.
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
    Attachments:
    RS232xmpl.zip ‏528 KB

  • Timing test of I2C interface chip

    I am new to Labview and meet some problems.I hope I can get your help,and any help is appreciated.I want to generate 2 controllable digital waveforms using PXI-6552 with HSDIO.In this way,I try to stimulates SDA and SCL regarding I2C serial protocol .And my problem :I dont know how to make SDA digital line generated by PXI-6552 delayed or forward in order to check the I2C interface chip's setup time is right or not according to I2C user mannual.
    Thank you very much.

    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.

  • Labview interface with micro contoller

    i am new to labview. I need to know whether DAQ card is needed to interface with micro controller? if no need then any one can you explain how to inter face microcontroller 89c51 with Labview...... if needed then explain how to interface?
    JAGADESAN ASOKAN
    J@G@De5@N
    Solved!
    Go to Solution.

    In general, no, you don't need a DAQ, because in your case, the uC is the DAQ. Your challenge is to set up an interface between the computer and the uC (whether using LabVIEW or anything else).
    In my opinion, the easiest way to accomplish that is to set up a serial interface with the uC, and use LabVIEW to control / read the uC serially using VISA. This would require the least amount of hardware and least cost. I2C, if available, is also a way to go if you have the interface.
    Richard

  • Encoder interfaced with NI-9401

    I have purchased an encoder which has open collector and 3.3 Kohm pull-up resistor (TTL) as its logic output.
    The encoder comes with four leads: +5V power, GND, Channel A and Channel B. Both Channel A and Channel B are logic output.
    Channel A and Channel B are connected to the DIO of NI-9401 which is mounted on cRIO.
    A standard VI for encoder counting is used and compiled under the FPGA environment.
    During the measurement, I observed that there are significant loss count in both encoder direction.
    I do not think that there is any problem with the VI as I have used it quite a few times on encoders with RS422 logic output.
    Is there any problem with my current encoder in terms of its electrical interface with NI-9401?
    Thanks.
    Solved!
    Go to Solution.

    I'm new to labview fpga.
    I used the code (attached). with cRIO-9076,NI-9401
    Observation:1) ON FPGA VI: Position count value is not incrementing,the values shown are either 0,-1 or 1
                          2) ON HOST VI: As velocity & acceleration calculations are depending on count in fixed velocity interval ,that are also showing random values
    Que:
         1. what are  floating point to fixed point conversion issues in LV-2102?
         2.what should be the value of velocity fixed interval ?
         3. how can use this velocity data in dc motor pid speed control with NI-9401 without using NI-9505 dc brushed drive?
         4. Is SCTL necessary? 
     Also: i need information regarding 1.how to create .exe ?
                                                                2.how to make crio standalone ?

  • How do I use an audio interface with iMovie?

    I'm trying to shoot a short clip of a musician playing. I want to use an interface with my higher end mics, and use iMovie '09 to shoot video. I have a Presonus Firebox as my interface. iMovie just doesn't seem to want to recognize it, nor record through it. This isn't something I can share to GarageBand because the timing between the video and audio has to be perfect. Any help?
    Thanks

    Just buy the proper adapter cord, such as MiniDisplay port to HDMI for example.  Plug it in and it will be automatically recognized.  Use System Preferences > Displays to set options.
    The display can Mirror your primary desktop or Extend the Desktop.
    Regards,
    Captfred

  • Interface with Exchange server

    Hi i nbeed to write a program to interface with ms exchange dose anyone have any sample code i can look at? i need to extract info such as appointments.

    I'll be interested too. I'm writing a java app that would need to read and create calendar appointments, contacts and tasks. The java app is a CRM program, and its database becomes master for the exchange server that would replicate certain information coming from the CRM database/system.
    rgds,
    David

  • I have an iTunes account set up long ago on my home pc. My pc at home is antiquated and I can't interface with my account to edit acc. Info. Now I have other devices, iPhone 4 and iPad. I need to reset email apple Id and pw from iPad. How?

    I have an iTunes account set up long ago on my home pc. My pc at home is antiquated and I can't interface with my account to edit acc. Info. Now I have other devices, iPhone 4 and iPad. I need to reset email apple Id and pw from iPad. How? Should I just create new account? Don't want to lose 1500 songs.

    Hey Frankgates!
    I have an article here that can tell you how to do this:
    Apple ID: If you forget your password
    http://support.apple.com/kb/HT5787
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Does anyone have a suggestion for an alternative to iCal that will interface with the Cloud? I find iCal to be poorly designed and not very efficient.

    Does anyone have a suggestion for an alternative to iCal that will interface with the Cloud so it works on the iPhone and the Macbook? I find iCal to be poorly designed and not very efficient. I waste a lot of time entering information because you can't go to a specific day and enter information, nor can you navigate between months and add information on a specific date by clicking on the date. You can't easily scroll month-to-month and once you do by scrolling through nine months to get to where you want to be, you cannot enter information by clicking on a specific day in the month and entering information. I just called Apple and they verified that this is the way it works. You cannot go to a date and enter information, you keep getting thrown back to today and then you have to go into the calendar and change it manually on the screen. It is just not efficient.

    APC, CyberPower are reliable.
    Look for 1500VA. As example:
    APC
    http://www.amazon.co.uk/APC-Back-UPS-Pro-1500-Connector/dp/B0041MP81Y/
    Cyperpower:
    http://www.amazon.co.uk/Dell-CyberPower-Intelligent-LCD-1500VA/dp/B005DL5L50/

  • HT4623 My iphone will no longer sync with my Mac with Lion operating system which does not interface with the cloud. How do I sync by plugging in?

    I have always been able to sync by plugging into my computer Mac OS 10.6.8 which does not interface with icloud. Now my iphone only wants to sync calander and contacts via icloud and will not sync when plugged in. Does any one else have this issue and or ideas?

    Do you have the latest version of iTunes?  If not, get it at:
    http://www.apple.com/itunes

  • Creation of Server Proxy for  Message interface with External Defination

    Dear All,
    I am getting a problem while generating a server proxy for the inbound interface . The request message used in the inbound interface is a external definition which is uploaded using a XSD file. The XSD file was supplied by a third party which is having very high complex strucuture and used lot of abstract data types in the design. When i tried to generate the proxy in the R/3 system (Transaction SPROXY) for the inbound interface i am getting following error.
    Interface uses external and internal message definitions
    Message no. SPRX122 *
    Diagnosis
    In a message interface you can use messages from different sources:
    Message types and fault message types edited in the Enterprise Services Repository
    Messages imported into the Enterprise Services Repository (external definitions, RFC, IDoc)
    In the current message interface, message types from different sources have been used. Since messages from these different sources must be handled differently during proxy generation, such a mixture of messages within a message interface is not possible.
    System Response
    The interface cannot be generated.
    Procedure
    Change the interface definition accordingly in the Enterprise Services Repository.
    Please guide me, how to generate the proxy for the interface with external defination message. I could nt geneate manullay, because it is having very high complexity and its a big structure.
    Is there is any way to generate the proxy for interface with external definition
    Regards
    Vijayanand

    Hi,
    i.       Import your message schemas from external definitions, or RFCs or IDocs from SAP systems. These definitions already contain data types.
    ii.       Create a message interface and reference the messages of the external definition, or the RFC or IDoc message.
    Check this, it may help you
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/01623c4f69b712e10000000a114084/content.htm
    REgards
    Seshagiri

Maybe you are looking for

  • How best to use TWO Time Capsules, Airport Express and Apple TV?

    Hello I have the following Apple equipment and am wondering how best to plug it all together. At the moment I am not using some items at all because I do not know how to best use! 1. MacBook Pro (2012 model) 'Mac1' 2. MacBook Pro (2009 model) 'Mac2'

  • Terms of payment field on 3rd party condition record

    Hello, Does anyone currently utilize the terms of payment field (Payment terms) on the 3rd party condition record?  At this point, it is a field that can be populated and saved to the condition table (KONP) but it does not appear to influence the pur

  • MAHN message type issue

    Hi I am not able to see all the items in the print output MAHN in the PO. What could be the reason? Thanks Prashanth

  • Maximum number of values ​​in a filter

    Hi Dears, I would like to know what is the maximum number of values ​​that I can enter a filter in SAP BO Webi. 10, 1000 or a million do not know. Please help. Best regards.

  • No sound from iPhone & iTunes not recognizing iPhones.

    I visited Genius Bar today because my home button was sometimes not working. As a result, my home button is fine, but iTunes doesn't recognize my iPhone and it acts like it's on 'silent' even though it's not.