Leak memory in real time caused by VISA Read and timed loop of data nodes? Is not supposed.

In collaboration with LV 8.2.1 in real time to develop applications that monitor or emulate computers on bus RS-422.   The following screenshots have been taken an application that monitors a transmission of 200 Hz.  After a few hours, the PXI station would break a range impressive messages angry... most involving something about memory loss.  After much hair pulling and passing money, my partner has discovered while looking at the available memory on the controller of loss of memory occurred at each loop containing a VISA read and propagation of error using the data nodes (see Leak.jpg of memory).  He concluded that if he went to the propagation of the error to the regular old shift registers, then the available memory was rock-solid.  (has the Leak.jpg of No memory)

Any ideas of what could be the cause?  Do you see not any problem with the way that we code these kinds of loops?  We always strive to optimize the way in which we use the memory on our urgent requests and VISA readings and DAQmx bed give us the heartache more than ever, we are able to allocate memory for these screws some tips?

Dan Marlow

GDLS

Hi thisisnotadream,

This problem has been reported, and you seem to be exactly reproduce the conditions required to see this problem. This was reported to R & D (# 134314) for further investigations. There are several possible solutions, of which one is the one you have already found the wiring error directly in the loop. Other situations which give rise to no memory leak are:

1 if the bytes of the property node port is not there and has read lies in each iteration and time-outs resulting are ignored.

2. If the structure of the deal is gone and just blindly check the bytes to the port and read each iteration.

3. If the timed loop is transformed into a while loop.

Thanks for the comments!

Kind regards

Stephen S.

Tags: NI Software

Similar Questions

  • Please explain these things in real time, how we will use and how it will effect

    Hi all

    Please explain these things in real time, how we will use and how it will effect

    Types of validation:

    • Depending on
    • Independent
    • None
    • Pair
    • Special
    • Table

    types of lists?

    Types of lists are:

    • List of values
    • Long list of values
    • List of POPs

    This help-

    Select a Validation Type for your entire value (user, administrator system and using Flexfields)

  • Outlook Express downloads e-mail messages for the 2nd time which have been read and deleted a few weeks ago.

    Outlook Express downloads e-mail messages for the 2nd time which have been read and deleted a few weeks ago.  This happens periodically.  Repeated messages are usually a week.

    Maybe they are still on the server (server of your ISP). Make sure that you don't leave copies of messages downloaded from the ISP server that may cause duplicate messages to download.

    It's the only thing I can think of.

    If you are unsure how to check your messages via the Internet site of the ISP, then check with them about how you do that. TaurArian [MVP] 2005-2010 - Update Services

  • Need information about memory in real time

    Hello

    I use sbRIO 9633. I save data in the memory of the sbRIO (via ftp), as well as on the C drive of my computer (via an executable).

    My questions are,

    1. when the RAM is emptied (in other words, I take the target), the details logged on the sbrio via Server ftp does not get emptied. Therefore, when you connect via ftp, which part of memory are stored data? What happens if the memory is full? (as the application should work for years)

    2. that the application runs continuously, the bytes available on the real-time target decreases permanently (I guess) and finally RAM is full. So, do we not have to empty the RAM from time to time?

    3. If I do not add the loop of the newspaper on the RT vi, will decrease the "available bytes" on RT target? If not, then how?

    Hope that my questions are clear.

    (1) NEITHER sbRIO 9633 has 256 MB of memory persistent which is used by the ftp... should be easy to fill, so check the case 'out of memory '.

    (2) NEITHER sbRIO 9633 has 128 MB of RAM and you should read the FreePhysMem property when your application is loaded and determine a threshold to know when it's time to free the memory.

    (3) this can be done by the host (PC), by logging system (ip target) required.

    In my case, the memory used by the network flow increases over time, and I trigger to reset the stream to release the RAM.

    It may be useful

    Christian

  • VISA, read and write checks are block after there is no more lines to read

    Hi all

    I am developing a communication continuum between a microcontroller Arduino Uno and LabView. The issue I'm having is to 'Write' and even 'Stop' controls are block once all the initial reading lines are read in. I'm pretty sure that this is because the reading line prevents the complete completetion of the while loop, suspending all the loop until it indicates something else. I tried a number of Boolean operations and I can't work around the problem. The code itself needs a way to detect has nothing to read and ignore the read statement and continue a loop until the user activates the "write" command and writes something. The read command would have would be to read and wait again for user input.

    Any suggestions and help would be great! Thank you!

    * Note that I was using labview for all of 2 weeks. I'm getting used to it but I'm not a pro for sure.

    Also, I would like to give credit to physicslight @ https://physicslight.wordpress.com/2014/07/14/arduino-labview-serial-write-read/ for provide an arduino auto detect sub vi for easy then to initialize the VISA controls

    Seems I solved my problem. Using the Instr:Bytes function of the Port, the reading error is fixed. Addition of a few cases to see entry written and that it is received and a delay just incase seems to have fixed my code! If anyone has a similar question see my attached code

  • Simultaneous playback and record real-time show levels of vibrations and his Deputy

    First of all I would like to stress that I am very new to Labview (using Labview 2011) and Assistant Sound and Vibration (Labview Signal Express 2011).  I'm starting a project to measure the speech (sound pressure using microphone) and the body of vibration (using the accelerometer) related to the acquisition of data NI 9234.   I looked in the tutorial and the examples provided with Sound and Vibration Assistant (SVA).   These examples allowed me to make a first recording that is connected.  I could view the playback display after I transfer the log to the data view.   Frankly I'm more sure of my measurement data if I could observe the timewave with speech variation.  I wonder if this is possible.  If it's possible, thanks in advance for pointing the direction.

    Thank you.

    Abu Dzarr

    You can look at the data, because it accumulates in one of two ways:

    1. Create a viewer and drag out of the acquisition apparatus in the Viewer.  It will give you a live view of the data.

    2. Create a viewer and drag the newspaper in the Viewer.  By default, this should show you that the current buffer being written to the file.  You can change that to click with the right button on the graph to view in the viewer and selecting show the whole graph, a static part of the graph, etc.

  • Why do I get a warning "stop character has been read" with VISA read and TCPIP?

    I use VISA readings with raw sockets TCPIP without problem with NI-VISA 3.0.1 but when I moved to NI-VISA 4.4 I was getting timeout errors.   Time-out errors disappeared when I put the stop character allow the property (which seemed to be default in NI-VISA 3.0.1) but now I get a warning indicating that the "stop character was read.

    Can I turn off this warning?   Can I put the ending character activate by default?   How can I get rid of this annoying warning?

    Hey, Dagwood,.

    Unfortunately, there is not a way to globally change the attribute VI_ATTR_TERMCHAR_EN to VI_TRUE.  Talked with R & D ability to use registers and they say that it is not accessible through that.  To answer why this change was made so the developer who made the switch isn't around more I can not find his reasoning to explain.  The best to you in your code would be during initialization, use the node property VISA to make the change and until the closure of this VISA resource, this change will be the value that you assign the value.  I'm sorry, we cannot provide any other solution for these problems.  Also, if you feel that it is a heavy load on your programming practice you can certainly submit a product idea for the ability to change the overall values for default attributes VISA.

    Thank you

  • Abnormal behavior observed in real-time executable.

    Hello

    I have an interesting problem. I have developed an embedded application of Real-time/FPGA for cRIO 9024 and come across a problem that I don't understand. I work FPGA and RT of top-level and subVIs, proven individually and together when it is run interactively. When I create and deploy an executable in real-time like start, however, the behavior changes. I posted the code below, which I'll explain briefly:

    I have a state machine with 5 States architecture. "Initialize" and "Shut Down" are exactly meet once whenever the device is reset, and the cycle between them is wait > pre-test > wait > run the Test and repeat as many times as desired. Measures are taken by FPGA and past in real-time by DMA FIFO and are then recorded to the TDMS file by the real time. Everything else is just interface.

    The problem comes from the first time, the program enters the Test case to run. The FPGA send measurements as usual, and they are stored in a growing table updated buffering in the fixed-point shift register shown below.

    Run interactively, this method successfully bed, buffers, sorts and writes all data in the file. However, in time real executable, only the data collected in the first round (147 items total, as it is initialized by the whole shift register) are saved, the rest seems remainsin a buffer? before calling the following function TDMS write, is that in the case before the next test.

    I'm unable to debug the executable file in real time, probably because of the FPGA reference or some other schema components. I tried to replace the pad with a FIFO in real-time, a variable shared with RT FIFO active and tried to write inside the loop. The FIFO are not improving the situation, and when writing inside the loop, the loop does not run quite fast to stand.

    The problem does not exist when I run the VI interactively from my computer, only when I try to deploy all of the embedded, any application that works (as far as I know) except this one place.

    Any ideas to solve, or workarounds?

    Ryan

    Technical support helped me to resolve the problem, the early termination of loop caused loop condition, although I still don't understand why the behavior was different as an executable file, because the condition of the loop has worked in interactive mode, so if someone has any ideas as to the why, I would still like to know.

  • Windows Essentials program running "Real-time Protection"... the mouse cursor turns into hourglass several times per second...

    I have disable real-time protection it stops on and off an hourglass toggleing... its annoying... How to stop to turn to an hourglass without disabling protection... it doesn't seem to be a problem of performance... but it is visually annoying... Please and thank you for your comments.

    I had just installed Microsoft Essentials... before uninstalling software anti-virus TrenMicro expired... maybe Detailer left some files on my system after uninstall?

    Hello

    This problem normally occurs when there are files that are infected by viruses.

    Method 1:

    Run a scan antivirus on your computer.

    www.Microsoft.com/Security/Scanner

     
    Note: If infections are detected during the scan, there is a risk of data loss because infected files will be deleted.

    Method 2:

    You also try to run the uninstaller to complete tool to remove traces of antivirus Trend.

    http://eSupport.trendmicro.com/solution/en-us/1056551.aspx

    Check the issue.

    Method 3: Clean boot

    If the problem persists, you can place the computer in a clean boot.

    Put the computer in a State of boot is a way to know which application is causing this problem.

    To help resolve the error and other messages, you can start Windows by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    Put your boot system helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    Step 1: Follow the steps in the link below to do the same thing:

    How to configure Windows XP to start in a "clean boot" State

    Note: After troubleshooting, be sure to set the computer to start as usual as shown here:

    Step 2: To configure Windows to use a Normal startup state

    After you have used the boot is a way to solve your problem, you can follow these steps to configure Windows XP to start normally.

    a. Click Start and then click Run.

    b. type msconfig and click OK. The System Configuration Utility dialog box appears.

    c. click on the general tab, click Normal Startup - load all services and device drivers and then click OK.

    d. When you are prompted, click on restart to restart the computer.

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

  • Realtek AC97 Audio Driver works on my map its microsoft? (under vista and need some sort of broad legalization of real-time system)

    Vista and the need for a kind of wide equalization system in real time for audio... and this driver seems to provide what I need... but will it work on my microsoft Driver card hd audio?  If it is not possible, then what program could I use for an equalizer?

    Hello

    What is the model number of your sound card?

    The drivers are specific to a device.  RealTek drivers don't work for its Microsoft Map, you must install the correct driver for your device package works very well.

    For more information about the driver, see the links below

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

     

    Update drivers: recommended links
    http://Windows.Microsoft.com/en-us/Windows-Vista/update-drivers-recommended-links

     

    Equalizer you can see link below, also look on the internet for software that can help you in this task.

    Change bass, stereo, and other audio effects in Windows Media Player

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-bass-stereo-and-other-audio-effects-in-Windows-Media-Player

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • Real-time scanning and firewall disabled

    Every time I turn off my pc, the sacnning in real-time and the firewall are disable... and it happed after I purchsed online McFee, I used to have Panda Antivirus for Netbooks and used to work in perfect!

    I will never againg buy McAfee products, I told my two sister not to buy any product from McAfee for their pc... and I have already said that most of my friends not to buy no matter what McAfee Antivirus...

    .. .it really sucks...

    I recommend that you uninstall McAfee using the special removal tool: http://www.softpedia.com/get/Tweak/Uninstallers/McAfee-Consumer-Product-Removal-Tool.shtml (not just uninstall because it works well and you will have problems with the system itself, as well as with the installation of other products).  If you just bought it, it may still be in some kind of trial period and you may be able to get a refund if you have already paid for it (you should check with them on that).  Explain your problems, if necessary, and that you intend to report on blogs and everywhere you can and they may decide to make an exception if at first, they refuse to allow the return.

    Once done, reboot and you should now be able to re - activate the Windows Firewall. http://Windows.Microsoft.com/en-us/Windows-Vista/turn-Windows-Firewall-on-or-off Check to ensure that the parameters are still accurate that McAfee could change their.  If this isn't the case, after return and we will try to understand how they disabled so we can reactivate if the normal process does not work.

    Then, you need something to replace McAfee for AV / AM fine.  I recommend Microsoft Security Essentials for free at:http://www.softpedia.com/progDownload/Microsoft-Security-Essentials-Download-131683.html for analysis in real time on the daily basis and periodic analyses of rapid or complete.  I also suggest the free Malwarebytes to:http://www.malwarebytes.org/mbam.php don't not running constantly, but in order to update and do a full scan every few weeks or just to catch whatever it is, MSE could miss.  These two products are much better than McAfee and don't cause you problems that you had to deal with.  Here's what I use and I had no problem (and no infections that were not intercepted and completely removed by one or the other).  Either way, I used myself the Panda for several years before moving to the MSE and I have nothing bad to say about them - their product is very good - but why pay for something when there are free alternatives that are almost everything as good (maybe even better)?

    I hope this helps.

    Good luck.

    P.S. Be grateful it is McAfee and Norton not - so you could be even greater problems.

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Update of the pixel in real-time data

    Hello

    I look at the options for the implementation of a real-time filter feature in photoshop, and I would like some opinions on implementation strategies.

    Basically, I want to update the contents of a layer (lets call it B) when the user draws another layer (lets call it only A), such that the contents of the layer B is a function of a.

    This task will be possible using the functionality exposed by the Photoshop SDK?

    Cordially Toke

    Theoretically, it could be doable, assuming that the tool used to change events appropriate b triggers (only not all tools, unfortunately) AND your A layer updates can be performed without disrupting the work of user b. What you need to do in this case is to implement a plug-in automation based on the earpiece of the SDK samples that would monitor events. At the event you determine the layer to activate it in your code C++ and if B then update has. The problematic part here would be whether you would be able to change the current layer in a way that is not interrupting the work of user b (for example, you probably wouldn't occur a change b to change the current layer to A, which would cause the focus jump to A and then go back) and it would depend of the type of changes you want to.

    It would in any case, the branch, I would like to take here.

    HTH

    Ivar

  • The 1473R CAN be used with the real-time operating system of NOR?

    Hello, I am trying to determine if I can use the OR 1473R framegrabber PCIe FPGA in a PC based computer time real OS OR. Anyone know if this is possible? So I think that it should appear to the OS in real-time as a target FPGA that can transfer the data via DMA, but I wanted to make sure the drivers would work in real time of NEITHER.

    I appreciate any info on this!

    lukepike,

    Yes, you can use this device with real-time OS of NOR.

  • [fpga] Faster communication between FPGA and host in real-time

    Hi all

    I received a card FPGA NI FlexRIO (SMU-7965R) installed on a chassis PXI (SMU-8135 embedded controller). I have an FPGA program to 40 MHz, and I use a real-time program to read a particular variable of FPGA on a regular basis. I do not stream. All I need is to get the most recent value during each execution of the loop of the program in real time (hence, DMA FIFO is not a good option). I am aware that you can read the FPGA indicators in the host program (real time) using the FPGA read/write control function. I used this feature to read a certain variable of indicator FPGA, as shown in the screenshot. The RT program takes 100 micro-seconds (10 kHz), which is not fast enough for my application.

    Is there a faster method to read the latest FPGA data, or the program shown in the screenshot can be modified to reduce the time of loop RT? Any help would be greatly appreciated.

    You're talking about an RT target a sitting in the RT himself FPGA card? If so, have you tried without the IP address of the target. See this thread to see why that would make a difference.

  • Pass an array of real-time desktop PC

    Hello

    I recently started using LabVIEW Real time. I want to transfer an array of data from a PC to office to a PC in real time. The data transfer is time and once real PC will make further processing of the data. I'm using LabVIEW 8.2 and the corresponding version of the time real LabVIEW. I do not understand how to program the time real PC to receive all the elements of the array in the order. Below is a brief description of what I've tried so far.

    At the beginning, I created a shared variable on the computer which was the data type double target. I activated "Buffering" and set the size as 10 double rooms. Enable FIFO tab real-time time real FIFO, selected several items and set the size as 10 double rooms. On the desktop, I used a loop for to transfer all the elements of the array in the shared variable. I used a 500 ms delay in the loop for debugging purposes. On the target side PC, I used a while loop, the same delay of 500ms and built a table reading the shared variable. To run the program, I ran the VI on the target PC and then the VI on the host. I could see that the painting was being filled with data from the host computer, but the first element of the array of host PC has been filled in the second element of the array on the computer target. Another problem, is that there is no way to prevent the target computer that the host PC had sent all the data and he had to stop the filling of the table. The first problem with lag of data can be attributed to the timing. But I don't know how to solve problems.

    I also tried declaring the variable shared on the computer target with the double data type 'Array of '. But when the data is passed from the host PC for the target computer, I don't see the variables reflected on the target computer.

    Is could someone please tell me what error I do here?

    Hello

    The problem has been resolved. It is LabVIEW time real 8.20 which has been altered. Therefore, did a re-installation of LabVIEW. Now I have the sample project attached (ex2.zip) in the previous post works perfectly. Thank you for your help.

    Kind regards

    Prashant

Maybe you are looking for

  • no reliable connection - certificate in reality is fake

    When I try to access google.com, I get the message 'no reliable connection '. When I then go to the certificate, it shows this: Organization: DO_NOT_TRUSTcommon name: DO_NOT_TRUST_FiddlerRootorganizational unit: created by: http://www.fiddler2.com So

  • Length of password of Netflix on iOS

    By recommendation of Netflix, I put a password of 60 characters using a mix of upper-lower case letters, numbers and symbols. Two of my machines Windows using the browsers Chrome and Firefox has agreed this new password without any problem. However,

  • First HP: Premium HP Calculator - binomial Expansion button

    Hello! I do the failures of math and just reached the Core 2 of binomial Expansion section. An essential element of the present is to be able to use the function of the binomial expansion NCR and I can't find the button or function for her! I'll post

  • iPhone 6s can't shoot in the Notes app

    Access the application Notes. I followed the instructions to the letter. There is no icon to access the drawing under the new notes. I don't know how much simpler I can be. It's as simple as that. The function is not there...  Now I just need to keep

  • How can I find the name of the network and the WEP key or passphrase WPA from my computer

    I need to install a printer on my laptop, and I wanted to do it by using a wi - fi connection.  But its asking me my network name and the WEP key or the WPA passphrase!  Of course, you can say I'm not very computer savvy and my son actually made me t