I2C communication slows down over time using USB-8451

Hi all!

I try to communicate via a device slave using a USB-8451 I2C and I noticed that after a while the communication speed slows way.

I can send and receive data very well and apparently my system seems to work. But the problem is that over time the speed of data transfer slows down so much so that if I let it run all night it has slowed to a crawl in the morning. My ultimate goal is to gather data, draw and save every second and at the beginning it is easily achievable, but after 10-15 hours I can no longer collect data as fast I need. I'm not quite sure if this is a problem with my code LabVIEW, the NI USB-8451 box or the slave device. But if I stop running the LabVIEW program and start it again, everything returns to normal.

The slave device is a personalized card with a microchip PIC which acts as a slave I2C and returns the data at the request of the master. I can't imagine anyone will be able to determine if this is a problem directly, but if we can rule out the other two (code LabVIEW or the NOR-8451) as the source of the problem so I know it's my slave device.

I've greatly simplified the LabVIEW code that I used to collect data on I2C and I see even this gradual slowing down over time. Attached, it's that the very simplified VI and the data file, it produced. I only ran it for about 45 minutes, but from the beginning to the end we see again that the enforcement timeframe is rising.

I hope I'm just doing something stupid, thanks in advance!

-Aaron

Aaron,

Do not have the additional module responsible for these functions, but I'm sure I know whats going on.  It seems that each time through the loop 'OR-845 x I2C Create Configuration Reference.vi' creates a new reference.  After a while it will start to slow things down.  Better to open the reference before the while loop starts and spend just the reference in the loop.  Don't forget to close the reference after the loop stops.

Tags: NI Hardware

Similar Questions

  • It is possible to contact PCA9548A (8-CHANNEL I2C SWITCH) using USB-8451?

    Hello

    Now, I'm doing a project related to the smart battery. Now, I read data from a stack using the USB-8451 by smbus. The next step uses the USB-8451 casing to read the data of several batteries through smbus. I chose the PCA9548A (8-CHANNEL I2C SWITCH) to achieve this goal. But when I check the specification of the PCA9548A, there is a fix I2c format to read data from it, I tried several times, but still no can tell me where is the error in my code, or maybe it's impossible to communicate with this chip using USB-8451?

    Here is the fix that i2c read format of PCA9548A

    Why are you usng the script live? Have you looked at the examples of delivery for the 8451? You just need a couple of nodes property to set the rate and the address, and then use the VI to write I2C.

  • Norton Antivirus slows down startup time in Windows Vista

    Hello

    need help please, I am led to madness by starting slow time of my laptop.
    I he had only a few weeks and don't use it for anything beyond to produce documents word etc.

    It has been gradually slower on boot and I suspect it has something to do with the protection of Norton antivirus on it software and updates for norton I downloaded (thinking that it was the right thing to do).

    Looking at the log for problems and solutions on the computer, the date on which he began really to slow coincides with downloading an update to norton, which I could not uninstall to check if that's really the problem.

    In addition, I tried to do a system restore, my laptop could not complete.
    I'm stuck on the screen of the BACK for 10 minutes with the message:
    PXE - E32 TFTP open timeout

    I have no idea what it means, but the newspaper issues and Solutions said something about a blocking of the system?

    I looked on the web for other virus protection software and they all seem to have a problem or slow computers and another down to the start.

    Did someone knows a solution or should I just make a cup of tea when I turn on my computer and lace with vodka until it is fully charged to the top!

    I am a novice when it comes to using computers so would like to receive technical advice.

    Thank you
    Laura

    Hi guys

    I would like to add a few words about my experience using the Symantec Norton Antivirus software.
    I used this software long 3 years. It was great because it supports one of the best options for filtering viruses, BUT it really slow downs the operating system.
    I didn t use on preinstalled Vista laptop but on Win XP and I must say that the laptop boot process was stopped about 30 sec - 1 min until the entire parts of Norton Antivirus software has started, it is very annoying

    However, I went to AntiVir. It is described by marina4000 software and I really happy because the startup performance of m.

    So finally, I also recommend delete this Symantec Norton Antivirus software and switch to other free AntiVir software ;)

    Good bye

  • Need with Photoshop CS6 13.0 slow down when you use MANY fonts.

    Hello

    I have problems with my installation of Photoshop CS6 extended 13.0. I have a large collection of fonts (more than 9000 - no joke) and Photoshop slows down bad whenever I do something that requires the use of the fonts/typing/text handling. I tried to disable the font previews. Photoshop is still too slow. I found a related thread and have additional questions about my situation:

    • Is there a way to mitigate the slowdown in Photoshop when something related to fonts?
    • Will be updated to the latest version of CS6 help? I should even try to update?
    • I have to reduce the number of fonts activated? If so, what is a good number to aim for?
    • Any advice on the management of fonts? The thread mentions Typekit - I do not have a full subscription to CC. Other tools of management of good police (preferably free) that you can recommend?


    Any help is greatly appreciated.

    9000 fonts?  How many people have you used last year?

    Not really sure what to tell you. Using a lot of fonts is a serious drain on system resources.  How long does Photoshop take to open?  Some time I think.

    TypeKit used to be a wonderful resource, but it has become very limited, if you only plan to photograph, and it would do precisely nothing to the management of your 9000 fonts.  Not a garbage.

    I used TypeDNA for awhile and well liked.

    TypeDNA: Creative with fonts

  • Dllhost.exe surrogate COM slow down the computer using the memory

    Hello

    I could really use some help if anyone has the time. :-)
    My computer behaves strangely since I made a restore point.
    I did the restore point because I could not get online, oddly enough it turned out to be a loose wire.
    Anyway, now there is an application that keeps popping up in my task manager using most of my cpu, so my
    computer bogged down. It is named dllhost.exe COM surrogate and when I opened its location
    He was in my folder windows32. It is not my services that I can see, but it seems to be bound to play
    video or music files. I could be wrong.
    I did the usual antivirus (avast free edition free antivirus and malwarbytes) analysis, I defragmented
    my computer, I did a scan of system, I did a scan of the memory...  I can't understand.
    Any suggestions?
    My computer has 16 GB of installed RAM and 1 TB HDD I am running Windows 7
    Professional 64-bit.
    Thank you in advance.  :-)

    I did go to the task manager of windows, processes, sort them alphabetically by the description column, you can list by going to display and select column, and then down to the substitution of com and do a right-click and choose end process... you may need to do more than once... This will remove at least for awhile... it is mainly used to display thumbnail pictures in my photo folder... you can the delete permanently, but then you would not have miniature photos...

  • Slow down in time for lots of email complete

    About two days ago, we noticed a dramatic slowdown in the time required for a batch of e-mail to complete the shipment.  I called yesterday and told me that it was a matter of Eloqua and it should be resolved quickly, but today I note once again, that it is so slow... I have an email that has been running for 1 hour and 15 minutes and only 59,000 were completed.  Is anyone else noticing the slowdown?  anyone at eloqua can give us an idea of when this will be fixed?

    of what I was said, it was a matter of Eloqua and they are working on it now... hope he gets fixed quickly

  • Slow down the internet using Toshiba LX830-107 running Win7

    HY

    I have a problem of speed limit on my Toshiba LX830-107 all-in-one with Win7 Pro 32-bit. Web from Toshiba support site, I can't find a driver for Win7 Pro 32 bit lan. I installed the driver lan for 32-bit Win8 without error, but with this speed to 9 mb instead of 94 MB limit as it is on other computers on the network. Also, I noticed that my network card does not work as a gigabit card as it is. How can I solve this problem? because I need to use Win7 32-bit due to a compatibility problem with some applications installed on my device.

    Kind regards

    According to the specifications of computer map, the device supports the Atheros (Atheros AR8161/8162) LAN card 1000BASE-T/100Base-TX/10Base-T

    As far as I know, you can change some options LAN in the BIOS.
    Check if you can switch between 1000/100/10

    You can also check the properties of the LAN (the - LAN card - Manager device properties) card
    Here you will find further options in the "Advanced" tab

  • XP SP3 - slows down several times a day

    There is no running scans

    Manager tasks indicates the low CPU usage

    Nothing is using too much memory

    Taak Manager does not show multiple processes for anything other than shows to multiple instances of a specific application.  This application displays does not.  It lasts for a minute or 2, then returns to normal.

    I'm out of ideas.

    Any help appreciated

    Thank you

    Hello

    1 how long have you been faced with this problem?
    2. don't you make changes on the computer before this problem?

    Step 1: Check if the problem persists in the clean boot state.

    From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".

    Reference:
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    1. click on start and then click Run.
    2. type msconfig and click OK.
    The System Configuration Utility dialog box appears.
    3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.
    4. When prompted, click on restart to restart the computer.

    Step 2: Also, look for error messages in the event viewer. If you find error messages after return the exact error message so that we can help you better.

    Reference:
    Using the event viewer
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/snap_event_viewer.mspx?mfr=true

    Understanding of event viewer
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/event_overview_01.mspx?mfr=true

    Procedure to view and manage event logs in Event Viewer in Windows XP
    http://support.Microsoft.com/kb/308427

  • End of Cup Video Clip off the power when send you first Pro CC 2014 to effects after 2014 CC and I slowed down with Timewarp?

    When I send a clip from Premiere Pro CC 2014 to after effects CC 2014 and I slowed down with Time warp the clip cut of 75% at the end of the video and display only the first 25% slow.  How can I fix this and how I round it travels in first pro to play the FULL slow motion video clip?

    Try adding effect temporal Deformation on an adjustment layer in AFX, rather than on the video it self.

  • How to adjust audio speed/duration over time?

    I watched a video on how to adjust the video duration and speed over time, using time remapping and keyframes, but it doesn't seem to affect the audio for some reason any. Is it possible to adjust the speed/duration of the audio over time as you can do with the video?

    No, you need AE for this.

  • My WRT110 slows down gradually over time. Why?

    I noticed that my internet download speed became slow.  I tried using SpeakEasy and the speed of Comcast tested and found my upload and download speeds to be both less than 2 MB.  In the tests, I disconnected my WRT110 RangePlus Wireless Router and connected directly to the Comcast RCA modem.  I raised the speed races and got 21MB down and 4.4 upwards on two speed test sites.  I then be able to reset the WRT110 then reconnected to it.  So I ran the tests of speed and their return the same 21Mo down and 4.4 upward.  I came home a day later and tested and my download speed is 8 MB.  I came back today and it was 5MB.  I connected directly to the modem Comcast and returned to 22 MB down speed.  I then be able to reset the WRT110 and reconnected it and speeds were down to 22MB.  I have run this test twice over a period of days and got the same defacement of speed over time.  What could cause this?

    I think you can try to upgrade/re-flash the firmware on your router.

    Connect the computer to the router with the Ethernet cable. Download the latest firmware from the site Web of Linksys. Open the router configuration page and update the firmware on your router.

    After upgrading the firmware of your router, it is recommended that you must reset the router and reconfigure. Press and hold the reset button on the router for 30 seconds. Release the reset button and wait 30 seconds. Power cycle the router and reconfigure.

  • Slow down the host Communication target in real time

    I start with Labview RT.

    I wish that tor gave reading a thermocouple signal, then sending to host VI. It works, but to slow down.

    I tried to look at CPU, memory usage, but it's my second problem. The DSM does'nt contain functions should be.

    Am I missing a special configuration?

    Published network shared Variables are slow, especially in a high-traffic network.  I recommend that you use a network stream and set up your own communication scheme capable of handling the output rate higher.

  • Logitech mouse problems on internet-making a break and to slow down, disconnect some time.

    Problems with internet - take a break and slow down, disconnect some time.  EU here - through diagnostics, connections and modem, Charter signal all very strong.  However, when the Logitech mouse move not, internet does not, it is to say stop connection.  When the mouse moves the internet stream.  Also, during the games if online mouse move not breaks/game stalls.  Someone else, problems with a wireless mouse causing the Internet stopping, jerky?

    Discussions were merged.

    Deleted duplicate.

    Hi Bonnie,.

    Thanks for posting the request in Microsoft Community Forums.

    1. it worked before?

    2. the problem occurs when the wireless mouse is not connected?

    3. using a wireless connection? If so, follow the steps here.

    The issue may be caused by a weak wireless connection or wireless interference. Here are a few troubleshooting steps that you can try to solve:

    -Try to install fresh batteries.

    S ' ensure that the receiver is plugged directly to the USB port on the computer. Avoid using a USB hub.

    -Try different USB ports.

    -Check wireless interference. Check if there is no other wireless devices near the keyboard or receiver.

    -Logitech Wireless Mouse mouse power drain.

    -Remove the batteries.

    -Keep him idle for 10-15 sec.

    -Replace the batteries in.

    I suggest you run the FIXIT from the link below and. If you have already run the fixit, ignore him.

    Hardware devices do not work or are not detected in Windows

    http://support.Microsoft.com/mats/hardware_device_problems/

    If the problem persists, I suggest you to disconnect the wireless mouse and check the results. Also try plugging the same machine to another computer. If you still experience the problem, you may need to contact the Logitech support to repair or replace the unit.

    I also suggest to display the query in Logitech forums for more support information.

    http://forums.Logitech.com/

    Hope this information helps. Response with status so that we can help you.

  • Poor memory - rendered Management slows over time

    I noticed a problem with my renders involving sequences. animation and not purely of the layers of things etc, but based on sequences of images as assets. I have a lot of free RAM initially with no other open applications. When I start making my CPU usage is very high and AE takes memory and gives him a number of aeselflink processes. Over time however in my iStatMenus I can see my 'active' RAM drag and my 'inactive' RAM goes upward, while at the same time my CPU usage slowing down my render grinds gradually stopped. It's like once it loads an image of my images in RAM for rendering, that he cannot let go of it completely once it is done so gradually, he eats all my RAM and my rendering slows down. If I stop the rendering and nothing do but running an application to empty all the 'inactive' in 'memory' memory and restart immediately made things are in their fast normal operation. He then proceeds to gradually slow down again. Everyone knows what is happening here? All the images located on the external eSATA drives and are made to external eSATA drives. Here are my specs for reference:

    AE CC 2014 (v 13.0.0.214)

    Mac Pro (early 2008) 3.1 8-core

    18 GB OF RAM

    Memory and multiprocessing:

    18 GB installed RAM

    RAM to leave for other applications 5 GB

    CPU reserved for other applications 2

    Allocation of RAM per CPU / 3GB

    Real CPU that will be used 3

    Any ideas would be greatly appreciated. Thank you!!!

    Robert

    What is the State of reduce the size when system is low on memory Cache preference?

    I describe this preference here:

    http://blogs.Adobe.com/AfterEffects/2012/10/after-effects-CS6-11-0-2-update-bug-fixes-and-added-GPUs-for-ray-traced-3D-renderer.html

  • Want a ramp of output voltage over time and measure input 2 analog USB-6008

    Hello

    I want to produce an analog voltage output signal that increases over time with a certain slope, which I'll send in a potentiostat and at the same time I want to read voltage and current (both are represented by a voltage signal) that I want to open a session and ultimately draw from each other. To do this, I have a DAQ USB-6008 system at my disposal.

    Creation of the analogue output with a linear ramp signal I was possible using a while loop and a delay time (see attachment). Important here is that I can put the slope of the linear ramp (for example, 10mV/s) and size level to make a smooth inclement. However when I want to measure an analog input signal he's going poorly.

    To reduce noise from the influences I want for example to measure 10 values for example within 0.1 second and he averaged (this gives reading should be equal or faster then the wrong caused by the slope and the linear ramp step size.) Example: a slope of 10 mV/s is set with a 10 step size. Each 0.1 s analog output signal amounts to 1 mV. Then I want to read the analog input in this 0.1 s 10 values)

    Because I use a timer to create the linear ramp and the analog input is in the same loop, the delay time also affects the analog input and I get an error every time. Separately, in different VI-programs (analog input and output) they work fine but not combined. I searched this forum to find a way to create the ramp in a different way, but because I'm not an experienced labview user I can't find another way.

    To book it now a bit more complicated I said I want to measure 2 input analog (one for the voltage of the potentiostat) signals and one for the current (also represented by a voltage signal) and they should be measured more quickly then the bad of the analog signal. I have not yet started with because I couldn't read on channel work.

    I hope someone can help me with this problem

    An array of index. You want to index the columns for a single channel.

Maybe you are looking for