LabVIEW vi slows down

I do playback thorough the Ethernet Jack and the processing of the data. When I keep the mouse pressed on the Panel it works ok. As soon as I let go he slows down as one cycle per second. I have Intel 4x2.4GHz and 4 GB of RAM. The Task Manager does not display a high CPU usage. Hold the button of the mouse on the application of taskbar background also helps.

Why does occur and how to combat it? Thank you


Tags: NI Software

Similar Questions

  • VISA reading significantly slows down to 20 Hz (Labview, Arduino + Xbee project)

    Hello

    I am quite new to Labview and Arduino, so I apologize if I use the incorrect terms. I'm having some trouble with the next project, I hope that you guys can give me some advice!
    I have 16 sensors connected to the 16 analog pins on an Arduino mega Board. This Council has a shield mounted upon him, with a Xbee module wireless. I have another Xbee module that communicates with him and it is mounted on a USB dongle that plugs into a PC with Labview 2015.

    The A/D analog Arduino pin output is read and sent every 50ms to the Xbee module connected to the PC. So every 50ms (that is, a frequency of 20 Hz), a new line of analog readings by commas is sent, using AnalogRead and Serialprint in the Arduino. These data are fed to a Labview code with architecture of producer-consumer. Copy the following code configures a serial port of VISA, reads the data, it converts a voltage value and writes the data to a text file (see block_diagram.jpg).

    The problem is that at a frequency of 20 Hz (with the configuration of the attached jpg) when you reach 400 treatment iterations the code slows down considerably and values are not parsed correctly. It behaves as if the queue is full (but the queue of elements indicators show 0) or memory or the buffers were full. It seems quite surprising to me given that the sampling rate is so slow. I tried a few configurations setting the buffer size, empty the buffer by using the queue time, but nothing seemed to work. Is it because the processor loop takes too much time to iterate? I tried to disable data analysis, conversion of voltage and the generation of text file, just keep reading and still have the same behavior.

    This may be the cause? Suggestions to change the block diagram are welcome! Is there a better way to do this than with VISA or queues...?

    I use Labview 2015 on Windows 7.

    Thank you!!

    sminanog wrote:

    It behaves as if the queue is full (but the queue of elements indicators show 0) or memory or the buffers were full.

    You think along the good things. But the big problem I see here is that you have a table growing up to stop the program.  You must move the file writing to be inside the loop of your consumption.  This will eliminate the need to constantly develop your table in the shift register, with tons of memory and causing copies of memory (which is very expensive).

    The other concern I have is the speed at which data is available.  If you have a baud rate 9600, then in the 50ms debit you can pass 48 bytes.  This leaves 3 bytes per sample, including the comma.  If you have a debit 115 200 baud baudrate, it turns into 576 bytes, you can send the 50ms.  So the lesson here is to make sure that you use a transmission speed which is fast enough to handle the data that you want to send.

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

  • File dialog box, slow down execution

    Hi all

    I'm using Labview 8.2.1 with Windows XP.

    I have a program that allow the user to select a file or folder through the file dialog box.

    For some reason that I do not understand when this dialog box is displayed, in another parallel while loop, execution time will slow down.

    Put on my Panel before LabView command file path without any code and press "Browse" button of file as indicated on attached picture_1 birng slow down execution of the penalty loop.

    Any body could explain why this problem occurs?

    By turning off on setting LabView tools ' file dialog boxes use native "(picture_2). the problem disappear. Unfortunately, this kind of old dialog is not practical...

    If anyone with an idea he could help me.

    Thank you.

    Hello

    I finally understand why my acquisition loop Scanback increases when I use the file dialog box.

    It's because I have too much access (by reference) indicator on front panel as graphics.

    Avoiding the using references, scanback log up a few ms and down quickly.

    Thank you.

  • PROGRAM SLOWS DOWN WHEN IT ENTERS A BUSINESS STRUCTURE

    OK, so here is the problem I have do this output pid controller is between 0-100 in this program, I'm just trying to make it work so I made a function to compare that when the controller output is 0 and the constant 0 I'm starting a business loop which transform the output for a second and turn off for a second.   When I go into the structure of the case, the rest of my program slows down

    I don't know why, I tried to do a while loop and a structure outside my main loop but I can't get my signal of my statement to compare to enter the second loop where I get my output to bike in 1 second intervals

    This is the VI please help

    I'm still learning how to use labview in passing

    Thank you

    Gary

    Gary,

    The next thing you want to learn more about LabVIEW dataflow. This is the fundamental paradigm of LV and explain your slowdown problems.

    The basic concept of data flow is any node (node = function, Subvi, structure) can begin to run when the data is present on all its entries and no data will be present at its outputs to execution comopletes of knot.

    How will this affect your VI? The real deal has a wait 1000 ms (actually two, one in each case of the internal structure of the housing = redundant code). The structure of the case will not complete execution until the wait ends. And the while loop does not complete its repetition until the end of the structure of the case. The result: at the exit of the PID.vi = 0, the loop runs at 1 second per iteration.

    What is the solution? Continue execution of the loop at intervals of 100 ms. sure in the structure of matter (true case) and another register to shift of how number of intervals of 100 ms is passed. When the count reaches ten, toggle the output line.  Do not use the 1000 ms of waiting.

    All the code in your internal structure is not necessary. Connect the output remains directly to the digital Arduino write VI.

    Be careful with the comparison to zero with floating point data. If the calculation which produces data has round off errors you could get a value such as 0.573E - 15, but which is not equal to zero. It is better to compare to a small range of values above and below zero.

    Right to left wiring is much easier to follow in trying to understand what makes a program. Using the tool to clean occasionally will help (although he eventually frustrate you also).

    Lynn

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

  • Slow down the Sierra, grief beach ball

    Initially, after the download of the Sierra, all was great. Now, the day and a half later, performance has significantly slowed down and a lot of rotation beach balls advance a little.

    Ways to help make a slow Mac faster

    1. 17 reasons why your Mac runs slower than expected
    2. Slow performance of Mac? This Article addresses!
    3. Difficulty of slow start in OS X | MacFixIt - CNET Reviews
    4. How to fix the slow down time and start. | MacTip.net
    5. 6 easy tips to speed up OS X Yosemite on your Mac.
    6. OS X El Capitan - if your Mac runs slowly
    7. Visit The FAQ XLab and read the FAQS on performance

    Avoid using any third-party cleaning software. Usually, this software does more harm than good. You don't need it. All computers become slower over time even in normal conditions of use. Experienced users erasing the hard drive and do a clean install from scratch, from time to time; or every time that the installation of a major update of the OS. Do means if you must maintain regular and several backups.

    Add more RAM or reduce the number of simultaneously executed from applications and utilities. Delete unnecessary anti-malware software and any software that promises to clean your Mac. Look for the runaway process: Runaway applications can shorten the battery life, affect performance and increase the heat and fan activity. Also, visit The FAQ XLab and read the FAQ on the treatment with The Spinning Beach Ball of Death.

    The ultimate solution

    Back up everything, wipe the drive, reinstall OS X and restore your data from backup. Reinstall the third-party software of original/zero media.

  • After you download macOS sierra, my iMac has slowed down considerably. It takes time to open applications.

    After you download the new operating system i.e. sierra, my iMac has slowed down considerably. It takes a lot of time to open applications.

    If it's just after the upgrade, it can be busy all indexing. Give him a couple of hours.

    If it is still slow execution Etrecheck and post the report here.

  • Why my iMac 27 "slows down with Sierra?

    I'm running an iMac 27 "(fin 2012) with 32 GB of RAM drive and 3 TB of fusion." Before loading to Sierra, Adobe InDesign CS6 launched and ran fast as most of the data have been stored in the partition of the flash player. After the installation of Sierra, I noticed the app stops or slows down when I click on the items in the Panel and I get the spinning wheel. Is it because Sierra sends data to Cloud Drive when I'm online, or is something else operating here? It is most annoying. I'll try to clear the caches etc. but I don't know what is happening.

    Photoshop CS6 seems OK.

    I always forget to 'CONTROL THE FONTS'. I use FontExplorer Pro to make sure that I only have the necessary fonts to work. I forgot to re - organize my fonts folders for system font numbers are reduced to the minimum and FontExplorer only loads the necessary fonts. I will do this job very long, but I don't know that it will solve one of the main problems. For more information on Mac OS X font management see site and information http://www.jklstudios.com/misc/osxfonts.html of Kurt Lang

  • Hi my book mac like work that slow down of should I please help me 0402771512

    Hi dear Sir / Madam

    I have a Mac Book Pro

    He works to slow down, I don't know what to do to get faster.

    Hi Sam, download and run EtreCheck, created by one of his own assistants here in CSA. It is a diagnostic tool that is very useful for us to find problems. It will also give us additional specifications on your Mac. After his execution after the logfile here. It will never contain any personal information.

  • I can slow down a video in Time lapse

    I can slow down a video in Time lapse

    Is this related to iPhoto for Mac somehow? What is the source of the video? How are you viewing?

  • How to slow down a part of a video?

    Hello, I'm a french guy, but I'll try to explain

    I have Imovie 10.1.2 I took a video on my iPhone and I forgot to took it with slow, now I have this video on my Imovie on my mac. I would like to slow down just a part of the video, not all of the videos, as on the iPhone, can you help me?

    Thanks, I await a response

    Rémi

    Press and hold the R button and select the portion of the clip in the timeline you want to slow down. Look in the toolbar and click on the gear icon to see the options of Retiming.

  • IMac slows down with "safari web content (not responding)."

    I have an Imac mid-2010 running El Capitan. I constantly get a message on my activity monitor which causes my mac slow down and sometimes crash. When I leave the process on the activity monitor, my computer works better up to five minutes later, when it still happens once I wonder if some may be able to give me advice. I will include a screenshot of what I see on my activity monitor.

    Download and run Etrecheck.  Copy and paste the results in your response. Etrecheck is a diagnostic tool that has been developed by one of the most respected users here (and recommended by Apple Support personnel) of the CSA to provide an overview of the system and help identify the most obvious culprits that can adversely affect the performance of a Mac.

  • Firefox slows down to a crawl while the sync of bookmarks

    Whenever I add, modify, move, or delete a bookmark, Firefox slows down to a crawl for a few seconds, whereas Sync does its thing. I know that Sync is the question because I added the sync icon to the toolbar and see it light up and spin and Firefox is unusable whenever I have change a bookmark. This is probably because I have a ridiculous number of bookmarks: probably in the range of 10-20 000.

    Despite these problems, Sync did a good job of synchronizing bookmarks between my computer and makes it easier for me to finish my work, so I would like to continue using it. My bookmarks file acts as a search engine mini for the things that I found useful/interesting. deletion of bookmarks or using a very stripped down bookmarks file really does not solve my problem here.

    I already googled until exhaustion, and set services.sync.autoconnect to false in: config, but that didn't seem to do anything. This solution might work but is not very handy: http://superuser.com/a/818726/362951

    Is it possible I can turn off Auto-Sync synchronization after each change bookmark? I'd like to be able to synchronize ONLY when I click the 'Sync' button in my toolbar in FF.

    Sync chooses when synchronize based on a combination of the last hour of synchronization and the amount of change that has occurred. You can actually turn off the synchronization (except you can still manually synchronize) by changing these values.

    1. go into "subject: config.

    2. Enter "services.sync.syncInterval" in the search box. It's the amount of time (in 1/1000 of a second) that synchronize waits between synchronizations. If you want to sync never synchronize after a while, change for something big like '999999999999999999999999 '.

    3. Enter "services.sync.syncThreshold" in the search box. It is the amount of change that must take place between synchronizations. 300 represents a bookmark and is also the default, so by default, sync will sync whenever you add a bookmark. If you want to synchronize only after 2 bookmarks, change it to 600, etc.. If you want to never synchronize, also change it for a very large number.

    Note: there is always a possibility sync may synchronize automatically some time, but it is extremely rare.

  • YouTube is slowing down my computer! Any suggestions?

    Hello dear friends, I have a good MacBook Pro 2013 retina with i7 and SSD.

    I have noticed occasionally when I Watch youtube videos and try to make comments, while I type it needs some time to let the letters appear.

    Is like takes me a lot of energy and becomes slow. But this only happens on this page of Safari while on youtube. If I have to Pages and start writing while the same video runs in the background so everything is smooth. Execution of El capitan with all updates done.

    Someone had the same problem, I'm waiting for your answers...

    Thank you in advance...

    When slowing down

    Run and view the results here so that we know more about your configuration.

    http://etrecheck.com/

    EtreCheck

    https://discussions.Apple.com/docs/doc-6172

    Also see if your Mac/browse is using html5 vice flash

    https://www.YouTube.com/HTML5

Maybe you are looking for