overflow memory for the producer consumer

I'm trying to save data from 4 ports to 40.96 Mhz. using a producer consumer architecture and a PCIe NI 6527 B using an external clock.

I inherited code which works for 2 ports.  I tried to add additional ports and changed the size of the data to the DAQ.mx queue and data.  Launch the program several times, reach conflicting error messages after less than 2 seconds from the beginning:

Error 200284: Some or all of the requested samples are not yet acquired.  [...] To make available samples more quickly, increase your sampling rate

200361 error: Overflow memory device on board.  Due to the limitations of system and/or the bandwidth of the bus, the driver could not read the device fast enough to follow the flow of the unit.  Reduce your sampling rate.

What is a race condition between the error messages, a problem of timing of start or something else?

I approach, how to debug these types of problems?  How can I determine what is causing the error?  I can't single step through because I'm at the wheel of sampling with an external clock.

Running on labview 2012 Windows XP on the machine who's 3.17 GB of ram.

Try to reduce the size of your buffer.  In fact, simply leave the calendar DAQmx unwired.  The size of the buffer must be large enough by default.  And then also try to read less data at a time, as data instead of data 500ms 10ms.  What I suspect here, it's that the DAQmx buffer is too large and therefore must use the hard drive for part of the buffer, to slow things down a lot.

Other notes here:

1. do not use the time-out to stop your loop of consumer.  Your producer should send an order of a certain type to your consumption by telling it to stop.  In this case, I would use an empty array.  And then, you must release the queue after the loop of the consumer.

2. you want a constant FALSE to Append Array/String input size of the binary file write.  This will remove the 2 I32s at the beginning of each table that you write.  Eelle are here to tell the size of the table being written.  But since you are just data flow, I doubt that you care about those.

3. instead of the entire setup of producer/consumer, have you considered using just the DAQmx Configure Logging VI do DAQmx stream directly to a TDMS file for you?  Makes things much faster and much easier on you.

Tags: NI Software

Similar Questions

  • Data types in the design for the producer consumer model

    Is it possible for me to use any type of data in a model of design producer consumer, without specifying specific data type?

    what I mean is if there is a way to connect to a data type with which I can use any other type of data, not to mention that one that I have connected, and if not, how can I specify the data type for a number or any other data type, for use in a design of producer-consumer model?

    You can make a part of your cluster of data a Variant.  It will take any type of data.  A common architecture for the producer/consumer is a cluster which is an enum and a Variant.  The enum contains all possible "orders", you might want to send.  The variant contains data that could be of any type.

    Ungroup you in the consumer and get the enum and Variant.  Attach the enum to a case structure.  In the specific case, convert the variant type in a data type of regular LabVIEW and with it as you please.

  • Using the producer/consumer with GPIB/VISA model

    Hi all

    So I have a .VI I learned to communicate with my camera, I joined. I tried strip down as much as possible, just to understand the concept. It basically just takes a resource VISA name, use this open VISA, then uses the same resource VISA to write a command that reads the data from my machine (xall?) and then bed in 500 bytes and which prints. If it works, and it's good.

    I try to use producer/consumer model for doing essentially exactly what this guy. I have a RLC, I want to press a button that starts my measure, I want him to taste several times per second, save the data in a text file or .csv and then stop when I press the stop button. Thus, he will be given indefinitely potentially.

    I would like to have the data in a format something like:

    Time C R

    0 5.0 4.3

    ... etc.

    I read the link of model p/c above, but my LabView knowledge is still low. Currently, my plan is to take the part of read/write of my attached VI, which are a sub - VI and then put that in the pink box in the VI for the producer/consumer above page that is labeled "produce data to be placed in the queue":

    What prevents me to do this, it's that I can't get the piece of read/write to work properly as a standalone Subvi.

    What is the right way to go about this?

    Thank you!

    I put if you actually found data of your instrument.  Your instrument is not made to take new measures or just send you the last reading, she did.

    Insofar as the file IO, I recommend that you learn to use the palette for the file IO functions.  You need to create your file before your loop, write in a text file inside and then close after the loop.  I don't do the thing the comment on the express VI entry will do what you want.

  • First try the producer consumer Architecture: continuous play and dynamically update settings.

    Hello

    I am currently working with two instruments; an Agilent E3646A and a NI 6212 BNC. My goal is to have the 6212 continuously take measures according to predefined parameters while the E3646A parameters can be continuously updated. This combination simple instrument aims to help me learn the manual architecture; continuous measurement, output dynamic controls and instruments more will be added in the future.

    I've already posted on a similar, but more complicated configuration (http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Split-second-lag-when-controlling-two-instrum... and was advised to try the producer consumer Architecture.) I found the documentation on the website (http://www.ni.com/white-paper/3023/en/, https://decibel.ni.com/content/docs/DOC-2431), searched the forums and built my own VI. While my first attempt at a producer consumer Architecture has solved some of the problems I had when I posted on the subject, however, new questions have been raised regarding the reading and adoption of the VI.

    I am currently able to run the VI and update the settings on the device. Previously, I'd get a freeze while the instrument has been updated and could not switch settings until it was done. This has been resolved, although that reading updates only when a parameter has been updated, although it is outside the structure of the event. In addition, the Stop button does not in any context. I also got occasional mistakes on the part of Deqeue, but the major part of the sentence is error-200279 'A tried to read samples that are no longer available' to DAQmx Read. I realize that there is a problem in my loop of producer but have not been able to find a way to solve it.

    This is my first attempt at a producer consumer Architecture and already I can see that it is a powerful tool. I read as much as I could and looked at examples, but should have some problems at the beginning. Would be very grateful of any advice so I can take full advantage of the architecture.

    Hope to hear from you,

    Yusif Nurizade

    You're going to overflow this buffer, unless the events are generated faster than "sample rate/number of samples.   Period.  Nothing could be simpler.

    You don't need a local to stop your curls.

    Try something like this attachment.  I simply moved the structure of the event in its own loop dedicated since it had nothing to do with acquiring data at all.

    Data acquisition loop stops very well when you destroy the task and destrying the stops of power queue (sending the default values of the queue for the power control) for EXAMPLE, to ADD a group of setting 'Safe shutdown' to a 'package' and it wire to the Center terminal (Prototype).

  • Convert single while loop with variable Timing literal to the producer consumer

    I have a controller for a biological system that updates every n minutes or every minute 2n, under certain conditions. My app has a synchronization controller calculates if the current iteration is n or 2n and feeds the output of this calculation in a loop of "Timing" VI in my all. If I understand correctly, this is similar to the issuance of an order of sleep() in a language similar to C and should be avoided. I'm refactoring my code and I heard that they are well suited for this kind of things. Here's how it should work:

    1. Loop begins at the time T, T is saved.
    2. Schedule controller runs and calculates if loop will get minutes 2n or n minutes. This controller will take a number of milliseconds to complete, so we are is more to time T.
    3. Now that the update interval (n or 2n, let's call it u) is known, the loop must until T +u fill.
    4. The PDC is executed, but a number of milliseconds to execute.
    5. The rest of the time until the next iteration of loop should produce the CPU for other processes.

    It sounds to me like it's the kind of a real-time system, although as long as we are in the minute of the original deadline, there will be nothing wrong.

    What the producer-consumer loop would look like? Assumed that the synchronization and the main order controller are separate from the VI.


  • recommendation of the memory for the guest operating system

    Hi guys,.

    I need some advice

    I have a pile of vsphere 5 made of 2 servers on each server that I have on 5 VM

    (1) domain contoller 2008 standard edition + dhcp + dns

    2) exchange 2010

    (3) file server

    (4) primavera

    My question is what is the recommended memory and cpu for these VM configuration? I'm a bit confused

    What happens if I don't set up the limits and booking hotel and leave all default? What is the point of the week in this configuration? If I leave all default each VM does not use memory a cpu as it needs?

    Thank you specify in advance

    To add the tips of memory... Many people allocates memory for the virtual machines that will never be used, and ultimately you consume the memory of your host much faster than necessary. Start low when allocating memory to a virtual computer. Adding memory is simple to make, after you have collected on the functioning of your host performance data. The Performance tab will show you what is happening.

    Mike

  • Cannot terminate everything in a loop to the producer/consumer

    I have attached a simple vi which was built from the producer/consumer (events) model.  In vi I set up a counter.  I want to be able to complete the meter when you press the stop button.  This does not work as expected.  The meter goes to its full count before the program stops.  The vi works as expected when run in execution to highlight mode.  Cannot understand it.

    Thanks in advance.

    Race condition.  No matter what time something behaves differently with that highlight run it at full speed, and suspect it is a problem of synchronization due to a race condition.

    As soon as your producer loop has the command queued up, she is ready to handle the next event.  If you press the stop button, it is ready to deal quickly and the stem while the ends of the loop and Stop immediately gets back to false.  This probably happens before the loop of consumer has the opportunity to read the local variable of the button stop in the moment, it's true.  Have your consumer while loop redefine the Stop button to false instead ensuring consumer loop has a chance to see if it is true.

  • 3097 memory failure allocating memory for the Variables

    Hello - have an old Lenovo tablet of 3 year with Windows XP. Its been performing very well. I get a message that appears randomly who says:

    3097 memory failure allocating memory for the Variables

    installedapp872 = StrSub (Apps, Start, stop-stop)

    WinBatch 32 2000

    WIL Version: 3.0cbv

    has ran a chdsk

    Reinstall the memory.

    Found nothing on Google about this message.

    I appreciate your help.

    Try R.clicking my computer, properties, advanced, performance, swap file,.

    Click Change button, with C: drive selected, the value to "let the system handle",

    2 X game, close, restart the pc.

    Also, try http://oca.microsoft.com/en/windiag.asp

    Download & run the test memory microsoft...

  • Instead of using the structure of the event with the producer consumer?

    I used the architecture of producer-consumer in the past to control a state machine with the structures of the event.  I'm working now with the basic version of LV that does not include the structure of the event.  Can anyone recommend alternatives to the use of the same architecture in this case?  Thank you, David

    Before the introduction of the structure of the event, the only option was the election.  Control terminals are in a time loop (the producer) with shift registers and a wait, usually about 100ms.  At each iteration of the loop, the control's current value is compared to the previous value.  If it has changed, and then take appropriate action.  Andrey suggested, queues are a good way to pass information between the loops.

    It works for the equivalent of the value change events.  Things like mouse to top or filter events were much more difficult or not possible.

    Lynn

  • Video memory for the A50 series

    Hello.

    I have a satellite a50-111 and I wonder if it is possible to change the amount of video memory to the maximum value possible.

    Below you will find the form reported video memory Panel - graphics:
    -----------------------------
    Minimum graphics memory: 15 MB
    Maximum graphics memory: 64 MB
    Used graphics memory: 18 MB
    -----------------------------

    I have 1 GB of RAM, and I wouldn't mind if the video card supports 64 MB of him all the time.

    Thank you.

    Hello
    Your machine has 16-64 MB shared memory with the system. This memory cannot be set to a specific amount, but is controlled at the level of software/hardware for maximum performance
    concerning

    Gandalfwhite

  • Fingerprint memory for the LabVIEW 7.1 development system

    Hello

    I would like to know the size memory for LabVIEW 7.1 full development System.Both during the installtion and to develop applications later.

    If anyone can help. Thank you.

    There is no one answer for this, as this varies considerably.

    For what is on the disk, if my memory serves, the 7.x base takes a few hundred MB, but which could greatly inflate according to the modules and drivers you add.

    For the RAM, I believe than 7.0 used to identify approximately 20-50 MB immediately after loading, but this number then would also change a lot over time depending on what you are doing. Loading, editing and execution of code just regularly change the amount of RAM used.

    Why do you ask? Also, are you aware that 7.1 is relatively old now (came out 7 years ago)?

  • State machine in queue with the producer consumer

    Hello

    I am trying to build a VI where the user allows some Boolean controls on the front panel.
    VI uses a producer consumer in which based on Boolean values clicked architecture.
    some States are queued one recorded in a table.
    After the user is done by selecting, Boolean values should get disabled and the table of States
    should be indexed one after the other.
    It is an attempt to solve the review model car wash.
    However, the VI does not generate the required results.
    Can someone help me please understand what is the correct way to this implementation.

    Thank you

    Its because you have wired the consumer while loop the first stop. Remove and in your loop of consumer, make a comparison of the States that you receive and if it is equal to stop, stop the loop of the consumer.

  • HP recovery D needsrepairs says not enough memory for the backup

    need to know which files can be deleted or how re-branded more memory for this partition without damaging it.

    Sunday, September 30, 2012, 23:53:14 + 0000, RCPatt wrote:

    need to know which files can be deleted or how re-branded more memory for this partition without damaging it.

    Do not delete anything and do not write something here! And do
    do not try to assign any disk space more (it is not called 'memory' on a
    hard drive) to it.

    It is a recovery partition; its purpose is to provide what you need
    to reinstall Windows if it should be necessary. Anything for her and
    you will lose this ability.

    Your computer comes with instructions on how to write its contents
    on a DVD so that you would be able to reinstall Windows if your drive is dead.
    Which should have been the first thing you did when you got the
    computer, then do so immediately as soon as possible.

    And another point: backup to a second partition is by far the
    form of backup is the lowest. It's better than no backup at all,
    but barely. I do not recommend backup a second not removable
    hard drive (or worse, a second partition on your hard drive only)
    because it leaves you likely to be simultaneously the original losses
    and backup for many of the most common hazards: severe defects of power,.
    nearby lightning, virus, attacks even the theft of the laptop.

    In my view, secure backup must be on a unguarded and removable media
    in the computer. For backup really secure (required, for example, if the)
    the life of your company depends on your data), you should have several
    generations of backup and at least one of these generations must be
    stored off-site.

    My computer is not used for business, but my personal backup plan
    use two identical removable hard disks, I alternate between the two,
    and use Acronis True Image to create a complete copy of the primary
    drive.

    I also use a 1 GB USB key pair to make more frequent backups
    my most sensitive data (for example, financial information). For this, I just
    Drag and drop.

    You can read this article on the backup that I wrote: 'save '.
    "Your computer regularly and reliably" to
    http://www.computorcompanion.com/LPMArticle.asp?ID=314

    Ken Blake, Microsoft MVP

  • Reservation of memory for the server sqql

    Hello

    I am running two SQL servers with 4 virtual CPUs and each has 12G of RAM available.

    We have noticed that sql process uses only 180MB of RAM while SQL is designed to use all available memory... We decided to use a reservation of memory for these boxes and grant a full 12 GB for each booking.

    (1) that would be really useful?

    (2) I noticed that after having reserved memory, that the system has taken something like 10 minutes to start, can anyone explain to me why?

    Thank you

    The shares of resources can be adjusted if necessary. I don't think that you need. As well as the host has only a single virtual machine now, who knows what the future may bring. You add multiple virtual machines and you will start to do the math. ESX let his work resources and balance. If you see performance degradation then start looking at the distribution of resources.

    As for the CPU that the virtual machine is not the only object on the system might compete for processor resources, you also have the SC. When you give the VM 4 vCPU find the system to wait on the availability of all hearts.

    You can reduce the number to 2 and even play with the processor affinity if you want, you should try to determine the weather your SQL system really needs the CPU/MEM tweaks (in my experience IO is the cause of the headache of performance most SQL).

  • Satellite 1130 - more memory for the chart

    Hello

    is it possible to change the memory of the integrated graphics chip of a satellite? right now I'm just 64 MB. When I bought it, 2 years ago they said it can be extended, but so far it is not possible to change it in the bios (phoenix)...
    Any suggestions?

    Hello ric

    Sorry, but something like that is not possible. The only thing that you can develop is RAM.

    It is very interesting to know who they are. You're probably talking about the local dealer. I also heard that they often give some useful tips, information and suggestions.

Maybe you are looking for

  • usb ports not work 2

    Please I need help to repair 2 of my 4 ports usb for my acer extensa 5620, got it back to 3 and 1 of them don't read anything and the one on the left side isn't anything read also, I already tried the material a Manager shows that the harware is work

  • Monitor UltraSharp 2412 m on command?

    Hi all I am from Trinidad and Tobago, and I really want to buy the monitor Dell UltraSharp 2412 m. The problem is that it is not available on the site of Dell TT and I can't find it locally. Is it possible that I can ask this model specific (with acc

  • Report the operating system bugs and Gmail Plugin

    Quick question: Although there is a Jira for Java API questions etc, is there also a way where we can connect General bugs found in the BB OS and applications like GMail Plugin?

  • Need help to restore blackBerry smartphones

    I tried to downgrade my software of the device via the BB site (with browser plugin) 9630 later to the version previous because it was slowing down the device because I felt. the process was suspended due to the failure of connection and has not ende

  • His fate a listener.

    When I plug my headphones in, his only out of the right and left... It's to do with my computer headphone plug-ins? It was working perfectly a few weeks fine...