I2C communication with USB 8451

I am measuring capacitance using AD7746. I have 10 such CDC's connected through two PCA9547 multiplexers(to avoid address conflict). Can I use USB8451 to collect data instead of a microcontroller. Also Is there is another DAQ with 2 wire I2C communication or is this the only one with I2C.  Also is there some part with 10 I2C channels so I can collect data without using the multiplexer which adds complexity to code.

hello krtiruth,
If I understand your question correctly, you would like to know if the USB-8451 is a good choice for your particular chip( AD7746). As long as your chips allowing for different addressing, for you 10 different addresses, the 8451 can be connected to all the chips at once, an address each one individually through their particular address.This should allow you to not need the multiplexers to distribute communication to your various chips. As of right now the USB-8451 is the only I^2C device that National Instruments sells.  Thanks again and have a great day!
Regards,
Nicholas K
National Instruments
Applications Engineer

Similar Messages

  • I2C Gyro NI USB-8451

    Hi,
    I have finally gotten my Gyro to work with NI USB-8451, but for some reason i get lot of noise out of my signal outputs. I am guessing that i am doing some bit-operation wrong somewhere, attached i have my VI, can one you experts out there take a look and see if i am doing things right?
    ( You can look at my previous thread for reference)
    Thanks in advance
    Solved!
    Go to Solution.
    Attachments:
    I2C Read-INDIVIDUAL.vi ‏28 KB

    Never mind got it right it was just unsigned bit instead of signed.

  • 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

  • Rs232 communications with usb rs232

    This is my problem. I am trying to log communication over rs232.
    I use an standalone laptop with runtime and a built application, installed on this is an usb to 4 rs232.
    I use the serial port read.vi.
    The only thing i get out is when i set the string indicator to /code. and then i get alot of number, letters and symbols.
    its not hex becuse hex isnt using %+ and )
    anyone got a solution to this or a even a guess.. i am running out of things to try.
    /Mattias

    What are you trying to log from?   Is it possible that the device that you are listening to is speaking binary and you may need to convert the format?
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • USB-8451 SPI interface with analog devices isensor

    Does anyone has example VI using USB-8451 with analog devices isensor? I am new to SPI interface and very slowly learning how to use labview in conjunction with USB-8451 to do SPI sensor reading.
    Any help would be appreciated. I'm using labview 8.5. 

    elpiar wrote:
    It's working!
    Well, I realized I made a small mistake in the example. The number of bytes in the array constant should be 4, not 2. The device is full duplex, meaning you can write and read from it at the same time. The NI-845x SPI Write Read VI returns the same number of bytes as the number of bytes that were written. Thus, with just 2 bytes you will not actually get the current value of the register. You would get the values from the previous command. See attached mod.
    Now if I read the data is burst mode, will the output be automatically be arranged in an array of 8-bit length words? You mention something about send out out 8 clock burst. I'm not sure how I do this. 
    For burst mode you have to send out more bytes so you get clocks generated for the read to occur. The burst mode command is 3E00. That needs to be followed by 12 16-bit numbers for the device to return all the registers from SUPPLY_OUT to AUX_ADC. The actual bytes after the 3E00 are irrelevant for a write. The NI-845x SPI Write Read VI should then return 26 bytes (2 bytes that line up with the 3E00 command, followed by 2 bytes per register, for 12 registers). You can convert this into an array of U16 values and do the conversions based on which register you're actually reading. I've attached a VI to get you started. The example converts the SUPPLY_OUT register and each of the GYRO_OUT registers. You can finish the VI. Note that you should make the 14-bit to 16-bit extension a subVI so you're not duplicating code. 
    NOTE: As with all example code that is provided you should verify that the numbers you get are correct. We don't have the hardware, so we can't verify correct operation. 
    Attachments:
    ADIS16400 XGYRO_OUT v2.vi ‏29 KB
    ADIS16400 Burst Read Example.vi ‏36 KB

  • USB 8451 and PXI-2530B

    Hi All,
    I currently purchased the USB-8451 to use for the SMBus on a circuit board. The USB-8451 has only one port for I2C (SDA, SCL) needed for SMBus and my Board has two SMBus connectors for the Smart Battery control (Batt1(SCL1 and SDA1) and Batt2(SCL2 and SDA2)). I also have a PXI-2530B (Mux) and I would like to use this MUX(2530B) to switch either Batt1 or Batt2 to the I2C of the USB-8451. What wire topology will be the best to use and  how should my connection look like. Any suggestion will be appreciated.
    Thanks for your anticipated response.
    Regards,
    Stan.

    Hi All,
    I am using the USB 8451 I2C/SMBus to communication with my LTC1760 but have all kinds of issues. First, I added an external pull resistor of 4.3kOhms but still have commucation issue. What I am trying to do is simulate a smart battery charging. I set my clock to about 80kHz and my slave address is 0x14 (LTC1760). These are the few errors that I get:
    1.  NI-845x: The I2C master lost arbitration and dailed to seize the bus during transmission of an address+direction byte. This error occurs at the NI-845x I2C Write vi.
    I will appreciate suggestions that will help me resolve this and be able to communicate with the LTC1760. Attached is the manual for the LTC1760.
    Much appreciated.
    Stan
    Attachments:
    LTC1760-SmartBatterySystem-using SMBus.pdf ‏371 KB

  • Reading spi shift register bit with NI 8451

    Hello
    we are proposing to use SPI communication with NI 8451.
    we would like to know as how we could find whether the SPI shift Register bit has been set and also is there any direct means of
    sending this bit result to DAQ without programming.
    Thanks
    Bhavani

    Hello Bhavani,
    The USB 8451 does have DIO lines available and can be programmed by the SPI output.  Please see the USB-8451 User Guide and Specifications for more information about that.  If you have any more specific questions, please let me know.
    Thanks,
    Meghan
    Applications Engineer

  • USB-8451 + EEPROM

    Hi There,
    I trying to replace my standard interface PCB (with MicroChip) with USB-8451 to communicate with EEPROM.
    As I'm quite new to this device, may I know which line should I use to connect to the EEPROM & how to write & read from the EEPROM?
    Thank you in advance.
    Best Regards,
    Norman

    Hi Norman,
    Are you using I2C or SPI to communicate with your EEPROM? Here is a link to the USB-8451 User Guide and Specifications that has pin information. See pages 4 and 5 for pin-out descriptions of the USB-8451. I hope this helps!
    Regards,
    Missy S.
    Calibration Engineer
    National Instruments

  • Need help - I2C write/read with TAOS TCS3414 light sensor using USB-8451

    Hello, I'm new to labview and need help setting up a vi that will allow me to communicate with a digital light sensor (TAOS TCS3414) using a USB-8451. I need to use the sensor to measure light from a light source that I designed and built as part of a project im working on. I've tried looking at several labview I2C exampled but find them to be very confusing. I've used an arduino to interface with the sensor successfully but need to use labview and dont understand how to write the program. The actions are simple; I need initialize the sensor with a simple command and then request data from 8 data registers and then read that data. The data will then be used in further calculations. The portion i need help with is writing and reading from the sensor. I've attached the datasheet for the sensor as a guide. I can also provide the arduino code that i use to read data from the sensor if that would help. 
    Pleae keep in mind that i am completely new to labVIEW. I really do want to learn from this but need quick results so the more help the better. It would greately appreciate any help or explaination. 
    Attachments:
    TCS3414_Datasheet_EN_v1.pdf ‏1806 KB

    Hi Aaron,
    Here you go, this is made with a USB-8452.
    When you run the code tick the power en dac enable box on.
    Maybe you can help me with my problem, I want to use a fiber to sense light from a led.
    Do you use any fiber hardware with the TCS3414?
    gr,
    Attachments:
    TCS3414.vi ‏63 KB

  • USB 8451 simultaneo​us I2C and IO

    Hi, 
    I am using the NI USB8451 to communicate with a TI BQ77910A by I2C. The I2C communication works for reading right now but in order to write in the EEPROM registers I need to provide 3.3V using the IO signals. 
    I've tested the IO and generated a signal successfully. My question is: is it possible to simultaneously run I2C and IO on the USB8451. Do they need to be on the same VI in order to operate?
    Thanks,
    Vid
    Solved!
    Go to Solution.

    Yes it works with the NI USB 8451. Though it is worth mentioning only ports P.04 to P.06 are capable of delivering a true steady output voltage of 3.3V.  The other ports seem to struggle in my experience but it is not a bad thing considering that the NI8451 is supposedly only capable of delivering 3.3V. 
    Thanks,
    Vid

  • USB 8451 - SMbus with labview: help please

    Dear all,
    I just purchased an USB 8451 and I need to interact with a smart battery using a labview interface. I really need a departure point to build up a VI read/write and finally interact with the battery, and the tutorial on NI website  ( http://www.ni.com/white-paper/5767/en/) seems not too exhaustive to me. I set the I2c configuration property node as specified, but I have some doubts on the adress to put, is it really 1010000 for the smart battery (it is my only slave)... Once this is solved, how to "ask questions" to the battery?
    Could anyone who had the same problem than me post a complete VI I can use as starting point?
    It seems like I must gather much more information about this topic, so, please, any suggestion on how to interact with the battery is welcome....

    Yep, the problem is definitively the adress of the slave (smart battery), which I set to 1010000 as specified in the NI tutorial, but that is not correct, because this is the error message I get when trying to read two bytes:
    Possible reason(s):
    NI-845x: The slave did not acknowledge an address+direction byte transmitted by the I2C master. If you are using ACK polling, consider increasing the timeout. Other reasons include the incorrect address set in the I2C configuration or the incorrect use of the 7-bit address. When entering an address to access a 7-bit device, do not include the direction bit. The NI-845x Basic I2C API internally sets the direction bit to the correct value, depending on the function (write or read). If your datasheet specifies the 7-bit device address as a byte, discard the direction bit (bit 0) and right-shift the byte value by one to create the 7-bit address.
    I also attach my VI 
    Attachments:
    SMbus reading.vi ‏12 KB

  • USB 8451 I2C acknowledge bit problem

    Hello,
    I'm in the middle of developing a I2C interface for a Xilinx Vertex-5 evaluation board.  This is a standard Philips I2C interface and I'm able to view the SCL and SDA lines and everything looks like it should be working but I'm not getting the acknowledge returned on the SDA line. 
    We have flags output on other pins and the acknowledge is working but it seem the SDA line isn't releasing the line to allow the acknowledge to go low. 
    I have tired the write program examples that came with 8.6 but they are for a serial PROM and I don't believe serial PROM return an acknowledge during programming.  I have also tried the example from the "Using I2C with LabVIEW and the USB-8451" and even though all the clocks and data looks good at the proper pins the acknowledge bit stay high. 
    The Discussion Forum has a similar question about acknowledge on a "smbus_Read_Block" (11-9-06) where "newbieLBW" ask about this for a block read.  I have tried that example and created it for a write but I'm still not getting a acknowledge bit to go low.
    I have attached my I2C development vi that is just to prove functionality. And the write routine is in case loop 2.
    Solved!
    Go to Solution.
    Attachments:
    I2C PortCofig_3.vi ‏70 KB

    Matt,
    Yes we have verified that the Xilinx is getting the information it needs and it returning a acknowledge pulse on the 9th SCL clock pulse.  I see this because we brought out the signal to a extra pin on the connector along with start and stop flags to make sure things inside the Xilinx were seeing the input properly.  When I run this program in a debug mode and highlight the data path the only errors I received is from the 'run script' function when the 8451 tried to write the address.
    Quick question for you.  I had mention a discussion forum question about the acknowledge bit on a smbus which is quite like the I2C interface.  In that
    example the read multi-byte function starts with a create script, script clock rate,script issue start, address+write, script write, then another script issue
    start, then it go on to another address+write.  My question is, it seem to me that nothing happens on the I2C SDA line until your data enters the 'run script'
    and I'm not seeing why they have two starts without a run.  I have tried to duplicate the multi read front section to see what it does but mine doesn't seem
    to run in as much as the SDA line never starts unless I have the run script in the read path.  My understanding is that the 'script start and address+write are
    just setup for the run script and without the run script nothing executes.  Yes or No?
    I want to thank you for taking the time to view this question I have.  The purpose for this interface is a future chip we are designing and we are using the I2C for reading and writing control registers within the chip.  I need to get the development platform working before I move onto the full interface and all the registers are 32 bits wide so I'm going to have to do all multi-byte reads and writes.
    I hope I have answer some of your question and will be looking forward to any information you can pass along.  I'm going to be out of the office until the 28th but I'll keep and eye on this forum from home where I'll be working on the full interface design but without the read and writes for now.
    Merry Christmas and the Happiest of New Years to you and your family!
    Gary Tyrna
    Tahoe RF Semiconductor, Inc.

  • How to isolate USB-8451, I2C/SPI Interface

    How can I protect the SCL & SDA lines on a USB-8451 from overvoltage?  The User Guide says:
    Caution Take special care with respect to the I2C SDA and SCL lines. To allow for external
    pull-ups, the circuit protection has been removed. Do not exceed the specified voltages for
    these signals. 
    I've had several instances where my UUT applied 28 volts to one/both of these lines and destroyed my I2C interface.  What can I do to protect these lines?
    Jim 
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

    There are several ways to this. I often use this simple circuit is based on zener diodes and the basic idea is quite similar to some commercial circuits also. The zener diode react quite fast to the surges. Zener diodes also have Low capacitance, so they are suited for high speed data lines. Unfortunately the surge capacity of those zener diodes is not very high, so that they can't handle the large spikes by themselves. That's why I have added 10 ohm resistors in series with data line before the zener diodes. This resistor limits the surge current to safer value for zener diode. The resistor must be always be between the data line and zener diode, so you must plug this circuit in the way where the computer goes to the connector on the right and the data line to the connector on the left. It is possible to make this circuit "bidirectional" just by adding also resistors to the computer side of the zener diodes, but this increased the series resistance in the data line.
    As mentioned there are more advanced circuits. Like active circuits. As an example the ADG467BR. Another option is Zener Transient voltage suppressors like the P6KE11CA. The P6KE11CA is bipolar so you only need 1 diode. But for a low voltage system like yours the zener solution may work fine. Remember to select a zener which can handle the current. If you 28 volt and use a 10 ohm resistor the current will not be higher than  28/10 ampere as a thumb rule. Probably lower.
    Message Edited by t06afre on 01-23-2009 03:41 PM
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    sample.PNG ‏2 KB

  • USB 8451 for I2C

    Hello,
    I am looking for a starting point.
    My problem is I need to communicate with the PCA9555 (http://focus.ti.com/lit/ds/symlink/pca9555.pdf). I have searched the NI website and have come across a USB-8451 that seems to be the answer to my problem.  However, I need to also measure current and this device seems to lack that ability.
    First off, would this be the device I would want to use to communicate via I2C? The only reason I question this is because I cannot access the examples that would give me a good sense that I found what I was looking for.
    Secondly, is there a device like this offered by NI that would be able to communicate via I2C and be able to measure current? Or do I have to purchase 2 separate devices?
    Thirdly, is there anybody out there who has encountered the same problem (possibly with the same PCA9555)? 
    Thank you,
    Gerardo Hernandez 
    Solved!
    Go to Solution.

    Hello,
    I have a USB-8451 on my desk in use, and for ease of use in LabVIEW, you cannot beat it; some example code from one of my apps:
    Here I am just transmitting an constant sequence (an initialisation sequence for my hardware) to a Slave with address 112 (actually an I2C bus all-call address for my devices).
    If you want to keep things easy, I would suggest 2 seperate devices, one being a USB-8451. You can bit-bang I2C, etc at the cost of complexity and dev time.
    Mark B
    ===If this fixes your problem, mark as solution!===

  • Usb 8451 I2C

    Hi,
    I am using LabView 8.0 with an NI USB 8451 I2C device. The problem I'm
    having is once a DUT fails it causes the next DUT to fail also. Very
    repeatable. Its as if there is a buffer that still has some data in it
    from the first failure or an error flag has been set. I have to restart
    the program to clear up the problem. I'm not sure if its a LabView
    error flag or an I2C "buffer" problem. Also, is there a way to
    initialize the 8451 so I can always start from a known good status? I
    have the same problem with the GPIB driver and the HP meter buffer but
    I've done a workaround by reading the meter twice. The first read is
    garbage but it clears the HP buffer so the second read is valid.
    Thanks in advance for your help.
    Larry Clifford
    Precision Linear Systems

    I had the same problem in 8.2 that I was never able to resolve.  Is the 8451 the only master on the bus or are you tapping into a line that already has a master?  I found the 8451 worked very well when it was the only master but problems popped up on a multi-master setup.  I contacted NI tech support and they assured me the 8451 adheres to the I2C multi-master specs.  Scope traces I took seemed to verify that.  I believe the problem was that the native master on the bus didn't handle multi-master mode correctly.
    Link to thread

Maybe you are looking for

  • Correction for Nested XML Data Sample

    I found an error in the sample code on the Nested XML Data Sample under "Using Nested Data Sets." Line 8 has var dsToppings = new Spry.Data.NestedXMLDataSet(dsItems1, "toppings");, but it should be var dsToppings = new Spry.Data.NestedXMLDataSet(dsIt

  • Install ECC6.0 error

    Hi all I met a problem when installing ECC6.0 SR2 with Oracle on Win 2003 - System ask me to install Oracle software fist. Install master didn't appear the screen to ask Database CDs. I've installed ECC6.0 several times and everytime it will automati

  • USB Interface Not Working With Logic Pro 9

    Hello, I've had a Tascam US-1641 for several years now with absolutely zero issues on my old PC. Ever since I upgraded to Mac (early 2011 17 inch Macbook Pro running Snow Leopard) I've had nothing but problems with the US-1641. No matter how many tim

  • Account in the Customization File

    Hi, I'm working on a project in which we need to configure an Account when the Customization File is executed. But whenever I try to generate a Customization File , having selected the Accounts as one of the elements to be in it, it ignores them an g

  • Pasting code via command-V intermittent. Fix anyone?

    Ever since I upgraded to Dreamweaver CC, this has been happening: I work exclusively in Source Code view. When I copy/paste code, the command-V paste command doesn't always work. I often have to hit command-V twice, and it always works the second tim