USB-8451 examples broken in LV 2012

I have a USB-8451 on order but it hasn't arrived yet.  I went ahead and downloaded and installed the driver software, NI-845x 2.0.  I am running LV 2012 (12.0.1f5 32-bit) and I didn't see any options for 2012 support in the installer, so I clicked the LV 2011 support and installed that.  That seems to have created one LLB file, ni845x.llb.
I searched for examples using the 8451 but didnt' find any (i.e. "Help --> Find examples" in LV 2012).  I searched NI support online and found SPI Execute Read of Shift Register.vi.  When I open it and point to the llb file to resolve references, the VI is broken.  All the sub-VIs are not executable.  The errors are 1) call lib. fcn. note contains unwired or bad terminal, 2) invalid refnum class, and 3) you have connected two terminals of different types.
Why are these broken?  Does it have anything to do with the USB-8451 not actually being hooked up to my computer?

Hi Vishak, 
It may take some time for this to get fixed. I have resubmitted the request to have it fixed.
2.1.2 is still the latest version of the driver. For future reference, the best place to find the most recent version of our drivers is at ni.com/drivers.
Catherine B.
Applications Engineer
National Instruments

Similar Messages

  • NI USB 8451 examples

    Hello All
    Any body is having example VIs for USB 8451. I am using LabVIEW 8.0
    What is the resolution of USB 8451 Card (12 bit or 8 bit)
    If anybody is having some link regarding this
    Please reply
    Regards
    R J

    For example VI's This link  should help you and also this one
    Bit Resolution for I2C/SPI interface??
    Do you mean 12C addressing??
    Message Edited by devchander on 08-24-2006 01:44 AM

  • NXP PCA9530 & NI USB 8451 Examples?

    Does anyone have example Labview code addressing the NXP PCA9530 (2-bit I2C-bus LED dimmer) through the NI-USB-8451?
    http://www.nxp.com/documents/data_sheet/PCA9530.pdf
    Thanks!

    Hi Dhubbell,
    I could not find any examples specifically for the NXP PCA9530 but here is a great white paper on using the 8451 with I2C communication.
    http://www.ni.com/white-paper/5767/en
    There are also LabVIEW examples you can find using Example Finder after you install the NI-845X drivers found here:
    http://joule.ni.com/nidu/cds/view/p/id/2647/lang/en
    DylanC

  • Looking for USB-8451 SPI example

    Does anyone have a typical SPI example VI for the USB-8451 Interface. I want to program a VI for a SPI device, but I don't know how. This example should include DIO Line programming as well, if possible.

    Hello thmsfrst,
    http://zone.ni.com/devzone/conceptd.nsf/webmain/B380E99DAAD898B38625710F007003C5?OpenDocument
    This link shows an example how to the USB8451 and the SPI  Interace to evaluate a TI  ADC
    The example download does not work so i have attached an example for LV8.0 and one for 7.1.
    If you have further questions don't hasitate to ask
    Stefan
    Attachments:
    example.7z ‏92 KB

  • Using USB-8451 for accessing SMB Slave

    Can i use the following example to read a SMB(System Management Bus) slave device using USB-8451 (since SMB is derived from I2C) .
    Hardware Input and Output > I2C and SPI > I2C Basic > Generate I2C Read.vi
    Thanks
    Baburaj
    SMSC
    INDIA

    The following is the read and write sequence examples , I want to confirm that this sequence is done by General I2C Read.vi .
    Example Write sequence:
    1)      Slave Address 0x58
    2)      Register Address 0x00
    3)      Byte count 0x03 (to write 3 bytes)
    4)      Data Byte 1
    5)      Data Byte 2
    6)      Data Byte 3
    Example Read Sequence:
    1)      Slave Address 0x58
    2)      Register Address 0x00
    3)      Repeat start Slave address (will be 0x59)
    4)      Byte Count 0x03 ( to read 3 bytes)
    5)      Data Byte 1
    6)      Data Byte 2
    7)      Data Byte 3
    Thanks
    Baburaj

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

  • NI USB-8451 SPI clock release

    Is it possible to release the SPI clock signal so it reamins high immediately after sending data on the SDO line? Currently, SCLK is held low for a significant period of time after transmission of the final data bit before it is released to a logic high state. Is there a way to configure this? Is there also a way to configure DIO signals independent of the SPI using scripting?

    Hi John,
    I believe you are referring to the clock polarity and phase.
    Where Can I Find More Information About the SPI Clock in a USB-8451?
    http://digital.ni.com/public.nsf/allkb/4FB0A184E545AC1586257609007537EF?OpenDocument
    The information is found here in the NI-845x Hardware and Software Manual:
    http://www.ni.com/pdf/manuals/371746e.pdf#page=26
    Additionally, beyond using SPI scripting, we can use the basic SPI and basic DIO examples installed with the 845x driver in Help > Find Examples.
    Joey S.
    Software Product Manager
    National Instruments

  • Using USB-8451, and AD7747 from Analog Devices to measure capacitance and convert the capacitance to digital output

    Hello,
    I am new to LabView and data aqusition. I have LabView 8.5.1 installed on my laptop, and I studied the Getting Started document of LabView, except the data aqusition chapter.
    I have microfabricated a differential capacitive sensor, and now I want to test the capabilities of my sensor.
    After asking NI engineers, I have been suggested to use USB-8451 with AD7747 (24-Bit Capacitance-to-Digital Converter) from Analog Devices because AD7747 has I2C serial interface.
    I have ordered USB-8451, AD7747, and Evaluation Board for AD7747. And I am waiting for them.
    Are there any suggestions about how to connect my differential capacitive sensor to AD7747, and eventually to USB-8451?
    You may want to know some further information to answer my question:
    *The sensor is similar to the sensor on pages 501, 514, and 515 of "Microsystem Design" book from author Stephen D. Senturia.
    *The datasheet for AD7747 can be reached from this link: http://www.analog.com/static/imported-files/data_sheets/AD7747.pdf
    *My purpose is to make a very precise and accurate "displacement measurement micodevice" by using "the change in the capacitance" during the motion of the mobile fingers of the sensor.
    As an initial challenge for myself, I will feel satisfied if I can measure the capacitance change in my sensor when I apply an external mechanical disturbance to my sensor. For example, there must be a change in capacitance if I just swing my hand from top of the sensor region.
    I am looking forward for your reply,
    Thanks in advance,
    Sincerely,
    sriverfxtr

    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 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 SPI Communicat​ion

    Hi All,
    I am tring to write SPI 16 bits command to TI TLV5638 DAC.
    Labview examples are for 8 bits only. can anyone help me?
    Thanks,
    Eliran. 
    Message Edited by Eliran11 on 06-29-2008 02:44 AM

    Hi Eliran,
    The USB 8451 supports only 8 bit communication.
    This KB has a suggestion on how to implement 16 bit commands. "The approach you would take when writing or reading a 16 bit number is
    to write or read a byte array of length 2. You can use a Type Cast to
    convert back and forth between arrays of 8 bit integers and arrays of
    16 bit integers."
    Hope this helps!
    Warm regards,
    Karunya R
    National Instruments
    Applications Engineer

  • 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 Signal Mapping Issue

    I recently bought a used  USB-8451 to try some Labview SPI/I2C development. I found that when I create a simple Write VI and look at the signals on a PC based logic analyzer I see that the SCLK and MOSI lines are reversed. I verified that I have the correct connections going to the analyzer and confirmed the pins are correct in the 8451 user manual. Has anyone else found this? I have attached screen captures of my VI and Logic Analyzer. I tried the 8451 examples and the result is the same, the SCLK appears on the MOSI line. I don't think this would be a real big issue for what I want to do, but I find it strange. Am I missing something?
    Solved!
    Go to Solution.
    Attachments:
    Logic ScreenShot.png ‏114 KB
    8451_write_FrontPanel.PNG ‏33 KB
    8451_write_Block.PNG ‏20 KB

    Hi ashrek,
    What about on the Logic Analyzer side? How are you connecting them to the Logic Analyzer? It looks like the Logic Analyzer supports SPI; are you using any SPI specific settings in the software? I am not familiar with the Logic Analyzer, but it seems like you can read any signal, or you can set it up to use SPI or another protocol. Is that the case?
    Catherine B.
    Applications Engineer
    National Instruments

  • Usb-8451

    Hi,
    I am trying to communicate with a gyro using NI USB-8451, I used the "General I2c Read.vi" example to try to communicate to the device but i get different errors every time I run the program, I have used the gyro with my Arduino board and it works perfectly, Attached i have the data sheet and the sample Arduino code for the gyro. Any assistance would be greatly appreciated. 

    Thank you for the information. I have similar problem, i get the error message Error -301744 occurred at NI-845x I2C Run Script.vi:6110001, 
    Possible reason(s):
    NI-845x: The I2C master lost arbitration and failed to seize the bus during transmission of an address+direction byte.
    the diffrance is that i'm using NI-8452 that include pull up ressitor and i make sure to enable them by enabling 'Use Internal I2C Pullup Resistor'  filed in 'NI-845x Device' poprty node.
    I set I/O voltage level to 3.3,
    I double check the adress, i have 7 bit adress defined in user manual of my device, 64 dec or 1000000 binary
    as specificed in my device user manual, i provide it Vdd of 5v from NI-8452 pin 40 and also GND in pin 7.
    offcourse SDA in pin 5 and SCL in pin 9.
    I think i might have a problem with pull up referance voltage becuse the sensor specified it need to be 5v but NI-8452 use up to 3.3V.
    but the low limit for high signal is 2.5v so it should work
    my digarm
    another option i tried is using I2c script blocks
    Thank You
    Or Hirshfeld
    אור הירשפלד

Maybe you are looking for