Kind of buffer problem

Hi out there!
Me again..
I have a programmately problem. I attached an analogous program to my real.
A special hardware sends data in portions with no sending data between the portions.
I want to collect the portions into one array in an parallell loop.
See file for more information.
Thanks Fredda
Attachments:
make_skurar.vi ‏111 KB

You probably should carefully rethink your overall program design, but here is a quick and dirty solution to give you some ideas:
Remove the timing in the second loop, but place an event structure triggered by the number. In loop one, write to a signaling property of that number to trigger the event whenever new data occurs.
See attached (LabVIEW 7.0).
LabVIEW Champion . Do more with less code and in less time .
Attachments:
make_skurarMOD.vi ‏114 KB

Similar Messages

  • Re-executing a function in IP web: buffer problem

    Hello everybody,
    we have performed 2 changes to our application:
    1. for performance reasons we replaced a FOX function with an IP exit function and
    2. to limit the number of entires appearing in F4 (000's) in the web application when selecting mater data for filtering we inserted a new InfoObject for the selection with only a few (about 10) master data entries and then passed the variable values to the original infoobject
    Both changes work well but there is a nasty side effect.
    The INITIAL execution of the query (variable pop-up) and filtering in the web application works fine. The user enters data manually and executes a function performing some caluculations (was FOX, is now an IP exit function).
    After this initial execution of the function it is not possible to re-execute the function. If e.g. the user performs a few more manual changes and then tries to execute the function again nothing happens. Only be logging off and on again (i.e. a new session) the user can execute the function again.
    Cache mode for the query (in RSRT) is set to 0 (=inactive).
    It is obviously a  buffer problem (some sort of delta/plan buffer conflict) and I have had this before but I cannot recall how to solve it ... its the age!
    Grateful for any assistance
    Edited by: Martin Helmstein on Nov 10, 2010 11:07 AM
    Clarification: if the user repeats inputting data under the INITIAL filter selection state and executes the function again it works. The problem only occurs if the user changes the filters (drop down boxes in the web application), inputs data and attempts to execute the function with this new selection.

    Hi Martin,
    One easy way of solving is to include the WAD command TRANSFER_STATE at the end of all the Planning function / Sequence commands attached to the Button.
    This will refresh the WAD layout without having to reenter the variable values if any.
    The other Option is to reset all the variables associated with the execution of Planning function after every execution.
    This can be included under Web template Properties so this happens after every refresh of the layout.
    Hope this helps.
    Regards.
    Shafi.

  • Some kind of technical problems (like slow data processing)...

    Some kind of technical problems (like slow data processing) with Leopard appears during the working in the local network.
    OS Snow Leopard 10.6 is installed; including all updates, the computer I currently use is Mac Pro. So I have some kind of technical problems (like slow data processing) with Leopard during the working in the local network. (Windows network).
    During the attempt to connect with network sharing (the computer is in the network) automounter process took approximately one minute.
    Later on, after the automounter process is finished it’s working quite normally over remote computer, but when you try to automount again, everything starts from the very beginning.
    The internet is working very well, it’s connected with domain, and everything is adjusted.
    I use to ask our system administrator; maybe it is necessary to activate the some kind of protocol?
    The OS Tiger is installed on the second hard disk, and it’s working well.
    Maybe someone could help me, I try to find the similar problems, but I could not find them.
    Thanks//

    A couple of things.
    First, thanks for the tips. I was starting to suspect the network might be an issue (bad nic, bad router, something).
    But netstat -s was showing an average of about .15% packet loss. For a web server that seems to be a pretty good value so I'm not sure.
    I did, however, ask someone else to look at the server because I'd spent the whole week on just server performance and was going out of my mind. This second pair of eyes really helped as he found that the pagefile for the server was set at 2mb!? Still trying to figure out how that happened. But we increased the pagefile to a much better value. There wasn't an immediate change in performance, but over time the server appears to have begun to respond better.
    Occasionally I still get these 'lag spikes' but nowhere near what they were and the delay is much smaller as well, which is probably being caused by something else entirely (like bad programming on my part, hah).

  • URGENT: Is this kind of LED problem even possible? Please advice

    1. The iPhone used to keep vibrating as if some notification had appeared but there were none. Thus, Despite no notifications, SMSes or Calls the phone kept vibrating.
       2. The intial part of all iPhone ringtones (about the part in the first few seconds) used to run in loop before the ring was played entirely. This was the problem with message tones and caller tones.
       3. The Vibrator had a very different kind of a problem. It was vibrating like a motor in the pattern of: TWO SLOW THUDS, VIBRATION and ends with TWO SLOW THUDS AGAIN.
       Thus, only to get these issues fixed I took my iPhone to the Service center of M/s RSG INFOTECH PRIVATE LIMITED on April 17, 2014. The phone was kept with the service center for the purposes of observation for a couple of days.
       On APRIL 19, 2014, around 11:00 AM I called up the service center to know about the status of the phone. On Calling, the person from the service center answering the phone said that "SIR, your phone has the above issues and shall be replaced and the replacement unit will be made available by Tuesday max Wednesday, as we have just ordered the stock."
       At about 01:00 PM i got another call from the Service Center that my iPhone cannot be replaced as the warranty cannot be honored because there is a damage in the display of the iPhone. Post this call, i rushed to the Service Center where I was informed that "Sir, your phone will not be replaced as when the device was being restored the result was that the display was damaged. The phone before being sent back to apple has to be restored and sent back when we restored factory settings the display had a dark Black patches and faded colours"
          I want to bring to your kind notice that when I had submitted the phone to the service center for the above enumerated issues relating to the vibrator there were no such black patches on the display nor the display ever faded colors. As a matter of fact, the iPhone, barring the vibrator issues, was operating in absolute perfect conditions, infact i had been working on the same phone just before submitting the phone for repairs.
          If you go through the service invoice raised by the service center (attached as an attachment to this email), the part here physical condition of the phone is described no such display problems are listed.
        My question to you is that:
    1. If there was a problem with the display the user i.e. me, the undersigned, should also have faced some problems no matter whether minor or major.
    2. If the phone was provided in perfect working conditions even display wise (which was admitted that the display was fine when submitted) then suddenly how is the display giving problems. This is primarily a hardware related issues which take support of Mobile Operating System drivers support for its functionality. If the same drivers were showing me perfect results before submitting the phone to the service center, How is it possible that the same drivers have now RUINED the display of my iPhone.
    3. There also comes a possibility that the phone which was replaced and given to me was already faulty and already had these problems which have probably now surfaced.
    4. How is it possible that a perfectly viewable and workable display gets ruined in a couple of days when it is at the service center.
    I am in shock of how this minor issue is causing me so much trouble. An APPLE Consumer invests money in the phone for work and not that he is to be disappointed by the service centers. I had booked purchases of my MacBook Pro iPad but after this experience the first thing I did was cancel all my orders because I cannot afford to be handled with such care.

    You will need to take this issue up with RSG Infotech as they are the ones with whom you are having a problem. No one here can help you with that.

  • All Kinds Of Internet Problems - PLEASE HELP!

    So I've been having all kinds of internet problems in my house. I'm almost positive part of it is router related but I just (somewhat scientifically) proved it's also related to my mini. I used speedtest.net to test both my brand new mac mini and my 2006 macbook pro running Leopard 10.5.1 (fresh install). Here's the specs and speed test results:
    _*2006 Macbook Pro*_
    Intel Core Duo 2.0GHz, 2GB RAM
    OSX 10.5.1
    *Average Results:*
    Download - 4.72 Mb/s
    Upload - 0.84 Mb/s
    Ping - 24-38ms (range)
    _*2009 Mac Mini*_
    Intel Core 2 Duo 2.53GHz, 4GB RAM
    OSX 10.6.2
    Results:
    Download - 0.78Mb/s
    Upload - 0.97Mb/s
    Ping - 15ms
    *AFTER PRAM RESET:*
    DL - 2.85Mb/s
    UL - 0.98 Mb/s
    Ping 22ms
    *these were the BEST results and far above the average I got
    Router:
    Netgear WGR614v9 running latest firmware
    WEP 128bit security B/G combined broadcast
    We were running WPA2 security but when I switched to WEP everyone in the house noticed a speed increase.
    The tests were run within a span of 10 minutes and both computers were about 2 feet away from each other.
    Can someone please explain to me why my nearly 4 year old MBP with an outdated OSX is spanking my brand new mini?

    I apologize ahead of time as I am not sure I can answer your question, but I would like to ask you a question if I could...
    Are you using your mini with Ethernet cable or Wireless. Not that there's a real difference in your case but sometimes if you're running with a Wired Ethernet cable on a unit that also has wireless, it helps to turn off the wireless.
    And on the other hand if you are not running with Ethernet cable on the mini, you might think about trying that.

  • ABAP Buffer Problem - URGENT

    Hi All
    I have the following ABAP problem.
    I wrote a program that delimits(Just editing the end date) the Qualification and Person relationship in HRP1001.
    The problem is that I update the database directly, and all appears to be working fine but it appears that the Buffer for infotype 1001 does not get updated and therefore if you view the data in transaction PPPD it still displays the previous end date and not the updated end date.
    Is there a way to refresh the buffer for infotype 1001 so that the data in PPPD reflects the actual database data?
    Help will be greatly appreciated and rewarded….
    Kind regards

    Hi All
    I have the following ABAP problem.
    I wrote a program that delimits(Just editing the end date) the Qualification and Person relationship in HRP1001.
    The problem is that I update the database directly, and all appears to be working fine but it appears that the Buffer for infotype 1001 does not get updated and therefore if you view the data in transaction PPPD it still displays the previous end date and not the updated end date.
    Is there a way to refresh the buffer for infotype 1001 so that the data in PPPD reflects the actual database data?
    Help will be greatly appreciated and rewarded….
    Kind regards

  • Standard Flash 9 player buffer problems

    I have been experiencing problems when watching flash movies
    anywhere. Youtube, GUBA, metacafe etc.. Whenever I click on the
    movie it buffers a ton of it if not the whole movie before it
    plays. I can use my laptop at home and it works well, I click on a
    movie, it starts and it kinda follows the buffer line as its
    playing.
    I hope speed is not an issue. But I will tell you my setup.
    Desktop PC ( the one Im having problems with)
    - Core 2 Duo 3.0 ghz E-8400 6mb cache
    - dual 250gb harddrives both WD SE 16mb cache's
    - XFX 8600GT video card 256mb, 128-bit
    - 4gb PC8500 in dual channel mode.
    Laptop
    - Core Duo 1.8
    - 1gb PC4200 dual channel
    - 80gb hitachi deskstar
    - intel onboard graphics, I think 945GMA or something.
    Both computers have the latest Flash player 9 installed, Both
    have Windows XP Pro with latest windows updates and service packs.
    Both have latest adobe reader 8 with latest updates as of
    2/19/2008.
    Im running cable internet at home, 9mbits connection. I test
    out anywhere from 5400kbps, to 12000kbps through multiple bandwidth
    sites, and have an average ping of 19-45ms. I can download steadily
    from Microsoft at around 1.2 megabytes per second.
    At work, the heck if I know what we have, I think OCx Fiber.
    If unresitricted I can download from Microsoft at around 56
    megabytes per second. with 2-10ms pings.
    Either way, I can bring both computers to work and back home
    and the desktop still does the same thing. buffers the whole stupid
    flash movie ( or alot of it ) before it plays.
    Could anyone give me a clue?

    Well, considering Im using both my laptop and desktop both at
    home and at work, I drag them along with me sometimes. And its not
    intermittant. This is every single time, on every single flash
    movie provided by any flash movie website such as Youtube I
    experience this issue.
    I have tracerouted both computers, both are going through the
    same hoops, but in fact the laptop is connecting through my
    wireless at home and my desktop is connected directly, at work I
    connect both to 1Gbp optic switch with even less hops.
    But every single time the desktop will buffer the whole movie
    ( if the movie is small) before it plays. and the laptop will play
    it instantly. Now both computers, if you click on the same exact
    movie will download it at the same time. but the laptop will start
    playing it alot quiker than the desktop, the desktop will play it
    after it has buffed a good amount of it.

  • Itunes buffer problem?

    i am getting a horrendous DELAY/BUFFER in my itunes audio. it catches up with itself and returns to normal. directly from my internal soundcard, speakers. i changed my audio settings to 16 bit and it still makes that horrendous noise.
    i can't even listen to my itunes comfortably. its annoying. help???

    Wow I am having this problem too, is this because of a recent update?
    This problem usually occurs while I'm listening to a song, but focusing my attention in another app (such as FireFox). The playback seems to freeze and play a one second overlap of where it stopped over and over again until the song catches up with itself and resumes.
    This is weird, and kind of scary when it happens, very annoying too, any idea what's going on?

  • OO ALV buffer problem

    Hello all,
    When a workflow work item is executed, a function module is called that displays a screen.  The workitem calls a function module that displays an ALV on a screen.  The same ALV is displayed for 3 different workitems.
    I am changing the field catalog based on certain criteria to set an individual field to be editable/non-editable.  I can see that the edit field in the field catalog contains the appropriate value, but the grid does not reflect what is in the field catalog.
    The first workitem displays the ALV correctly.
    The second and third workitems display the ALV using fieldcat values from the first workitem.  The fieldcat contains the correct values when the grid is displayed using method "set_table_for_first_display".
    If I log off of SAP and log back on, the second workitem ALV displays with the correct value.  But the third workitem now display with the fieldcat values from the second workitem.
    If I log off of SAP and log back on, the third workitem ALV displays with the correct value.
    Any thought on what I need to do to correct this problem?
    This is the logic that creates and displays the ALV in the PBO of the screen of the function module.
    clear: il_fieldcat, l_layout.
      refresh: il_fieldcat.
      free: il_fieldcat.
      submit balvbufdel and return.                         " clear ALV buffer
      submit bcalv_buffer_del_shared and return. " clear ALV buffer
    *            Create an instance for the event handler
      create object gr_event_handler .
    *          Create an instance of the container displayed on screen 1400
      create object w_custom_container_1400
             exporting container_name = w_container_1400.
    *            Create an instance of the grid displayed in the container
      create object w_grid_1400
             exporting i_parent = w_custom_container_1400.
    * Build fieldcat - edit enabled.
      perform build_fieldcat_1400 changing il_fieldcat.
    *         >>  call method w_alv->set_frontend_fieldcatalog  after modifying the field ctalog <<
      call method w_grid_1400->set_frontend_fieldcatalog
       exporting
          it_fieldcatalog  =   il_fieldcat.
    * Disable generic ALV toolbar functions
      perform exclude_tb_functions_1400 changing lt_exclude.
    *  Set layout options:
      l_layout-grid_title = 'ZFXXU003'.
      l_layout-zebra      = 'X'.
      l_layout-edit_mode  = 'X'.  
      set handler gr_event_handler->handle_user_command for w_grid_1400 .
      set handler gr_event_handler->handle_toolbar      for w_grid_1400 .
      set handler gr_event_handler->handle_menu_button  for w_grid_1400 .
      set handler gr_event_handler->handle_data_changed for w_grid_1400 .
      data: w_is_variant type disvariant.
      w_is_variant-report = sy-cprog.
      w_is_variant-variant = '/DEFAULT'.
      call method w_grid_1400->set_table_for_first_display
        exporting
          i_buffer_active      = 'X'
          i_bypassing_buffer   = 'X'
          is_layout            = l_layout
          it_toolbar_excluding = lt_exclude
          i_save               = 'A'       " enable save option
          is_variant           = w_is_variant
        changing
          it_fieldcatalog      = il_fieldcat
          it_outtab            = il_outtab.
    * set editable cells to ready for input
      call method w_grid_1400->set_ready_for_input
        exporting
          i_ready_for_input = 1.
    * Register ENTER to raise event DATA_CHANGED.
      call method w_grid_1400->register_edit_event
        exporting
          i_event_id = cl_gui_alv_grid=>mc_evt_enter.
      create object w_event_receiver_1400.
      set handler w_event_receiver_1400->handle_data_changed
                  for w_grid_1400.
    Edited by: Bruce Tjosvold on Dec 8, 2010 4:21 PM
    Edited by: Bruce Tjosvold on Dec 8, 2010 4:24 PM
    Edited by: Bruce Tjosvold on Dec 8, 2010 5:04 PM

    Hi Bruce,
    You should avoid the creation of the ALV everytime that you need to change the fieldcatalog by calling the method "set_table_for_first_display". Instead, you should call the "refresh_table_display" method.
    Regarding the code that you provide to us, it should be something like this:
    if ...
    * Build fieldcat - edit enabled.
      perform build_fieldcat_1400 changing il_fieldcat.
    call method w_grid_1400->set_table_for_first_display
        exporting
          i_buffer_active      = 'X'
          i_bypassing_buffer   = 'X'
          is_layout            = l_layout
          it_toolbar_excluding = lt_exclude
          i_save               = 'A'       " enable save option
          is_variant           = w_is_variant
        changing
          *it_fieldcatalog      = il_fieldcat* "Here you are specifying your first catalog
          it_outtab            = il_outtab.
    else.
       call method w_grid_1400->refresh_table_display
    *     EXPORTING
    *     IS_STABLE =
    *     I_SOFT_REFRESH =
         EXCEPTIONS
          finished = 1
          OTHERS = 2 .
    endif.
    If you want at this point change the catalog, you should modify the values of it_fieldcat and update it on the existing ALV
      call method w_grid_1400->set_frontend_fieldcatalog
       exporting
          it_fieldcatalog  =   il_fieldcat.
    Best regards,
    Eric

  • VISA Read function Read buffer problem in serial communication

    Hi,  I use VISA write and read function in serial communication app, the device continuously sends 0x00 if it is not receive a request from Labview program running on PC.
    And the request sent by labview is programmable. I met a weird problem, each time the request changes, the VISA read buffer output port still shows the last request firstly, from second time, shows the right request.
    It works like: Req code: ... 50, 51,51,51,50....;  VISA Read buffer: ...50, 50, 51, 51, 51, 51, 50....
    Please refer to the program.
    Attachments:
    readOne_test.vi ‏21 KB

    How are you running this?  You don't have a while loop around it.  Is it part of a larger VI?  Please don't tell me you are using the run continuously button.
    You don't have any wait statement between you VISA Write and your bytes at port.  So it is very likely the receive buffer is still empty since you didn't give your VI time to wait for the device to turn around and give a reply.  If you read 0 bytes, your VISA read string will be empty.  How does your decoder subVI (which you didn't include) handle an empty string?

  • In the address bar where type the address of the web site at the top. after entering the address i press enter key from the keyboard but it does'nt work there . Means the page is not navigating towards the address. Kindly solve the problem

    In the address bar where type the address of the web site at the top. after entering the address i press enter key from the keyboard but it doesn't work there . Means the page is not navigating towards the address. Kindly solve the problem

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • Buffer problems

    I am reading in three signals from a DAC and storing them in memory whilst
    doing FFTs etc. If I make the buffer large (32000 samples per channel)I can
    get it to work for about a minute before I get an error message. Reducing
    the buffer size makes it crash sooner. I imagine it is down to how
    powerful the PC is,how much memory etc.
    Is there a way to fix things so it is not so hit and miss (ie the speed of
    the PC) when it crashes. Can I use a Wait of some sort?
    Also is it possible to stream data directly to disk.
    Tam

    Hello Tam,
    The three things you can do to prevent a buffer overflow from occurring
    are to decrease the sampling rate, increase the buffer size, or
    increase the number of samples per channel to read.  It sounds
    like you have already tried increasing the buffer size, and instead of
    solving the problem, has just delayed the buffer overwrite.  I
    would then try to both decrease the sampling rate of your acquisition,
    and increase the number of samples per channel you read each
    iteration.  If you decrease the sampling rate of your acquisition,
    data will enter the buffer at a slower rate, and LabVIEW will be able
    to better keep up with emptying data from the buffer.  You can
    also try increasing the number of samples per channel to read, so that
    LabVIEW empties more samples from the buffer each iteration.  You
    could try setting the 'number of samples per channel' of the DAQmx Read
    VI to -1, which will tell LabVIEW to empty all available data in the
    buffer during each iteration.  Give these suggestions a try and
    let us know how it turns out.  Also, here's a helpful document
    that explains how to monitor the number of samples remaining in the
    buffer at all times.
    KB 2ZFHCKL1: (DAQmx) Error -200279 During a Continuous, Buffered Acquisition
    Regards,
    Travis G.
    Applications Engineering

  • Is it Tomcat buffer problem ?

    i am developing a web-application which is hosted on tomcat server.
    it is creating domains and users at another remote domain server.
    localy it is working fine..
    but when i test it online..
    the problem is,
    sometimes it works fine ,the domains are being creted at remote server..
    but sometimes it delivers error that domain at remote server can not be created.
    Is it due to fact that theat some errornous code in the buffer of application have older versions of applications causing the error ?

    http://forum.java.sun.com/thread.jspa?threadID=678715&tstart=0

  • Google maps have some kind of Java problem, won't load?

    There is some kind of problem with Google maps suddenly not loading. I tried Google's fixes, but it's still bad. They say Skype figures into it, but I don't have Skype. This problem started on mine suddenly yesterday. I start to type a location in the box, and a little yellow "loading" box appears at the top, and then NOTHING HAPPENS.
    Anybody know about this?
    Thanks...

    Thank you for that input. In my little room here, it's hard to tell which wire or cable is what, even tho I installed this stuff a couple years ago. I have Comcast Broadband, which has been real reliable.
    This problem started just yesterday, and I don't THINK it's what you're idea is. I'll wait a while to see what else might happen on this.
    Thank you.

  • Some kind of a problem

    Hey guys, I was wondering what is wrong with my Macbook Pro. It is a late model fo 2008.
    Ok, here comes the problem:
    1st: No sound or any audio coming out from mybook
    2nd: My keyboard light is not lighting up (F5 & F6) buttons
    3rd: Everytime I restart my macbook it just dosen't automatically restarts, I have to press the option button to choose where to boot from
    4th: And I keep having this error showing up after Switching on or Restarting.
    Running 10.8.4.
    Please help.

    This is for the audio problem. Take each of the following steps that you haven't already tried.
    1. Start with the steps recommended in this support article.
    2. If your model has an audio-out (headphone) port, and a red light is coming from it, the internal switch is stuck in the position for digital output. You may be able to free it by inserting and removing a mini-stereo jack of the proper size. Inserting any kind of tool in the port may cause damage that won't be covered by your warranty.
    If there's no red light, the switch may still be stuck in the headphone position. Try to free it the same way.
    3. Boot in safe mode. You don't have to log in; just reboot as usual when the login screen appears.
    4. Reset the NVRAM.
    5. Reset the SMC.
    6. Reinstall OS X after backing up all data.
    7. Make a "Genius" appointment at an Apple Store.
    Resetting the SMC may also restore the keyboard backlighting.
    Make sure that the right volume is selected in the Startup Disk preference pane.

Maybe you are looking for