Enqueue/Dequeue is repeating the last queued element

Hello
I am trying to aquire data from a camera at 256fps in one for loop, enqueueing the data after each frame is acquired. A seperate while loop is supposed to dequeue each image and stream it to a binary file, acheiving the maximum imaging speed possible by seperating the data acquisition from the saving routine.
However, this is not happening. The files are being queued and dequeued correctly UNTIL the acquisition for loop reaches completion (for example after 500 cycles) at which point the dequeue VI stops passing successive images to the binary write VI and just sends the last dequeued image over and over again until 500 images have been written to the binary file.     
Can anyone suggest why this might be happening?
Cheers 

Hi Phoenix,
The queue approach is still the best architecture for your
application.  Instead of converting the image to an array, have you tried
flattening each image to a string and passing this into the que?
You can then un-flatten from the string in the non-deterministic loop.
Hope this helps,
John P
John.P | Certified LabVIEW Architect | NI Alliance Member

Similar Messages

  • Error: 28005, Severity: 16, State: 2...An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impe

    I've seen some similar questions, but want to make sure I can get an answer quickly and how to fix.
    Thanks,
    Paul
    spid24s     Error: 28005, Severity: 16, State: 2
    spid24s     An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated,
    or you do not have permission.

    Hi Paul,
    I also had the same error on one of my servers, and it was because the user that created the database no longer worked for the company.
    So when his AD account got deleted, the database had NULL as owner
    Using the following query I asked for the owners of the databases:
    select name, suser_sname(sid) from master.dbo.sysdatabases
    So changing the owner of the databases that had a NULL owner solved the issue for me.
    use <databasesname>
    go
    exec sp_changedbowner 'sa'
    Thanks for triggering the solution.
    Peter

  • Google doea not accept a new entry - I have to reopen it in a new tab. Otherwise it just repeats the last entry

    I am using using XP SP3
    G
    oogle doea not accept a new query - I have to reopen it in a new tab. Otherwise it just repeats the last query.

    What model MBP do you have? What OS are you trying to install? And, from where?

  • Create Abstract List from Node contains repeat of last node element

    My custom controller is giving me fits.
    I have a structure (Empl_Pernr) in my model that needs to be part of the input before calling a second BAPI.  The source of this input is the output of another BAPI - thus a structure.  The structure that is input is found in wdContext.node<NODENAME> contains 5 distinct entries.  When I run the following code the abstract list created is 5 long but only contains the LAST element in the node I was "unloading".
    AbstractList emplList = new Zhr_Empl_Pernr.Zhr_Empl_Pernr_List();
    Zhr_Empl_Pernr emplItem = new Zhr_Empl_Pernr();
    for(int i = 0; i < wdContext.node<NODENAME>().size(); i++)
    emplItem.setLastName(wdContext.node<NODENAME>().getOrg_OutElementAt(i).getLastName());
    emplItem.setPersNo(wdContext.node<NODENAME>().getOrg_OutElementAt(i).getPersNo());
    emplList.add(i,emplItem);
    inputMangHours.setEmpl_Pernr(emplList);
    INPUT
    Last name  PersNo
    Last1      02600174
    Last2      02600176
    Last3      02600265
    Last4      02600266
    Last5      02600268
    OUTPUT
    Last name  PersNo
    Last5      02600268
    Last5      02600268
    Last5      02600268
    Last5      02600268
    Last5      02600268
    What did I miss?

    Diane,
    You are not creating the object inside the loop. You are just changing the same object again and again. Because of object references its updating all previous entries. Simple to say you are adding same element 5 times.
    Change the code this way...
    AbstractList emplList = new Zhr_Empl_Pernr.Zhr_Empl_Pernr_List();
    Zhr_Empl_Pernr = null;
    for(int i = 0; i < wdContext.node<NODENAME>().size(); i++)
    emplItem = new Zhr_Empl_Pernr();
    emplItem.setLastName(wdContext.node<NODENAME>().getOrg_OutElementAt(i).getLastName());
    emplItem.setPersNo(wdContext.node<NODENAME>().getOrg_OutElementAt(i).getPersNo());
    emplList.add(i,emplItem);
    Regards
    Abhilash

  • Is there a short cut key/command to repeat the last action?

    In excel Alt F4 (I think) repeats your last action.  I can't find a similar command or short cut key in numbers.  Can anyone help me?

    Kappy wrote:
    Isn't it supposed to be a clone of Excel within limits?  I don't use iWork.
    Who said/wrote that ?
    Numbers is not a clone of Excel. I doesn't share the Microsoft philosophy which include every asked feature.
    Apple engineers carefully select what may be added and what must remain as dreams/wishes.
    Basically, they apply the good old rule :
    ++-+-+-+-+-+-+-+-++
    Apple Human Interface Guidelines:
    Apply the 80 Percent Solution
    During the design process, if you discover problems with your product design, you might consider applying the 80 percent solution‚ that is, designing your software to meet the needs of at least 80 percent of your users. This type of design typically favors simpler, more elegant approaches to problems.
    If you try to design for the 20 percent of your target audience who are power users, your design may not be usable by the other 80 percent of users. Even though that smaller group of power users is likely to have good ideas for features, the majority of your user base may not think in the same way. Involving a broad range of users in your design process can help you find the 80 percent solution.
    +-+-+-+-+-+-+-+-+
    At this time they offer around 250 functions when Excel have about 500.
    Tables are limited to 256 * 65635 cells
    Numbers is slooooooooooooooooooooooooowwwwwwwwwwwwwww
    Excel offer some database features, Numbers doesn't
    In Excel, macros are back, they never arrived in Numbers.
    Yvan KOENIG (VALLAURIS, France) samedi 30 avril 2011 22:58:32
    Please :
    Search for questions similar to your own before submitting them to the community

  • How to repeat the last 2 request via delta?

    Hi,
    I have loaded data into a DSO from R/3. After that I loaded further into an other DSO, but it was inconsistent and it could not have activated it. So the last 2 Request in the 2. DSO were bad, I set the request to "red", deleted them, and now I want to reload them again (from the change log table of the first DSO). When I make a delta repeat, the system loads only the last one request.
    What should I do?
    Thx.

    Hi Joe,
    in such cases I do the following:
    1. delete all requests you want to reload in the second DSO
    2. reset the datamart status in the first DSO for the latest request by clicking on the "where used" button at the end of the line
    3. reset the datamart status in the first DSO for the older request in the same way.
    if there are more requests you have to do this for each request you want to reload. Attention: if there are requests which were activated together so they have the same activation request number (collum "PSA request number generated when request is activated") the datamart status will be reset for these requests in one step.
    4. press the refresh button and check if the datamart status is reset for all requests you want to repeat.
    5. load delta from first to second DSO. This delta will contain each request which is not marked with to "where used" icon. You can check this for your DTP in the monitor under header -> selections. There should be both requids (if you're usind old update rules you can check it also in RSMO under details -> databasis)
    Hope this helps
    Best regards
    Nicole

  • Repeating the last adjustment settings

    I'm using Photoshop CS4. In previous versions, you could hold down Alt while choosing an adjustment, such as Levels -- Instead of the default settings for the dialog, you would automatically get the same adjustment settings that were used the last time (as long as Photoshop had not been closed and reopened).
    Can the same thing be done with the Adjustments panel -- click on an adjustment and get the last settings that were used? I tried the old Alt-Click shortcut and that didn't work.

    As far as I know that only works when you did a direct edit on the layer you were working on - Levels, Curves, H/S, etc. - without using an Adjustment Layer. It's the same behavior in CS2 and 3 also.

  • Is there any way to repeat the last action on a new selection?

    I'm playing with Pages to see if I can use it instead of Word. I'm very expert with Word, just starting with Pages. Like some things, don't like some, but I think it's worth continuing to play with it to see if it will work for me. One problem I've been having is repeating an action. In Word, if you do something (in the particular situation I just had, it was deleting a row in a table), and then click on another place and do command-Y, it repeats what you did. Similarly, if you format a word as bold, say, and then select another word and do command-Y the second word will also be made bold. I realize the latter can be done in pages by selecting "emphasis" style for the second word, but I couldn't figure out any work-around for deleting the table rows (I tried selecting several non-adjacent rows, but "delete row" was greyed out on the actions menu). Any way to do this that I've missed?

    Thanks anyway. I'm sorry that Apple didn't include a "repeat" keyboard shortcut - going to the Inspector and then the actions wheel and then "delete row" time after time wasn't fun.
    I'm afraid I failed to communicate well about outline format - I didn't mean a bulleted or numbered list, I do know how to do that, but rather making a single character (or in my particular interest a symbol, the diamond and heart suit symbols) appear in outline text format. You can do it by going to format->font->outline, but if I want to do it for several occurrences of the same thing (or a few different things), it's not much fun to do it that way. But maybe I can define a character format that's outline and that will work. Still would prefer to have a keyboard shortcut to apply the character format though.
    Incidentally, while I'm talking about diamonds and hearts, is there any way to change the amount of space that gets put in after the diamond and heart symbols if you insert them using Edit->Special Characters? I write a lot of documents that use those symbols and lines end up unevenly spaced because of the large amount of space below each symbol (I've figured out a partial work-around - I defined a style for "body after suit symbol" that is raised enough to get the line spacing right, but that only works when I want to have a hard return at the end of the line with the suit symbols, since if the lines wrap, both lines have to have the same paragraph formatting. This problem isn't really Pages related - I have the same difficult with Word .

  • Downloads repeat the last item requested instead of loading a new item

    After downloading a document and printing it and then clearing from the download list, the second request for another document to be downloaded results in the first document being downloaded again.

    Do both documents have the same name?
    You can try to clear the browser cache and the Windows %temp% folder to see if that helps.

  • How to find the last element of a byte array

    Dear all,
    I have a byte array with a max lenght of 1024*50 bytes. In that array I store the bytes read from a file. How can I find where the array ends (i.e. which is the last valid element of the byte array)?
    Thank you for your help.
    Best Regards,
    JIM

    I want to send files over TCP connection using BufferedOutputStreams and BufferedInputStreams. The first side (e.g. the client) sends a file (e.g mp3 file or jpeg image) to the server using the code
      public void sendFile(Socket s, String FileName) throws Exception
              BufferedOutputStream out = new BufferedOutputStream(s.getOutputStream());  
              BufferedInputStream in = new BufferedInputStream(new FileInputStream(FileName));
              int len = 0;
              while ( (len = in.read(buffer)) > 0) {
                out.write(buffer, 0, len);
              in.close();
              out.flush();
            }(The client does not close the BufferedOutputStream out because other files will be sent afterwards)
    Then, the server receives the file using the code:
            public void receiveFile(Socket s, String FileName) throws Exception
              OutputStream out = new BufferedOutputStream(new FileOutputStream(FileName)); 
              InputStream in = new BufferedInputStream(s.getInputStream());
              int len = 0;
              while ( (len = in.read(buffer)) > 0) {
                out.write(buffer, 0, len);
                break;
              out.flush();
              out.close();
            }(likewise the InputStream in is not closed for the same reasons).
    In order the server to receive the file and stop reading the BufferedInputStream, I will have to make some modifications to this part of the code,
    while ( (len = in.read(buffer)) > 0)so as to know when the whole file has been received.
    Thus, even if I send the length of each file, I will not be able to read it. Could you please recommend me a solution?

  • How to set the number of elements dequeued?

    Hello All,
    I am relatively new to LabView. I use LabView 8.2 to detect Joystick movement using a set voltage threshold. Totally, I have 6 channels of analog input. The sampling rate is 2 Kilo Hertz with continuous sampling mode (buffer size set to 10 Kilo Samples). I show a visual stimulus on a computer monitor. Within  3 seconds from stimulus onset, the subject has to press the joystick. So I use a while loop that runs until the subject moves the joystick in any direction as detected by crossing of voltage threshold. The while loop was intended to run for a max of 3 sec if joystick was not moved. My intention while using the vi (see below) was to continuously monitor the voltage signal by means of removing voltage data points from the queue by the labview function/vi - "dequeue element". When I dequeue from inside the loop, the dequeue function removes about 100 msec worth of voltage data points ( = 198-201 points; sampling rate -2Khz) from each of the six channels. This creates problem for me because a single dequeue operation takes 40 to 85 msec during which the loop cannot be stopped. This results in miscalculation of the actual time when the joystick was moved.
    Is there a way to set how many data points the dequeue function removes? My goal is to remove about 1-2 msec worth of data points so that the loop can exit within under 5msec of the joystick movement.
    I have attached the screen shots of the subvi's I am using.
    Acquire Response.jpg - the while loop that has the subvi: Access Analog Data Queue
    Access Analog Data Queue.jpg - front panel of the subvi that has the 'dequeue element' function.
    Remove Element.jpg - a case of Access Analog Data Queue.vi showing the 'dequeue element' function
    Sorry for the long message. Any help would be greatly appreciated.
    Thanks
    Mani
    Attachments:
    Remove Element2.jpg ‏135 KB
    Acquire Response1.jpg ‏266 KB
    Remove Element1.jpg ‏135 KB

    Hello Lynn and tst,
    Thanks for your suggestions. I have attached a screen shot of a vi that has the enqueue function. As Lynn pointed out, it was the enqueueing size that was reflected in the size of the dequeueing. I tried various ways to control the enqueue element size in order to control the dequeue element size. Many of my tricks failed. I had set the data acquisition to be continuous at 2kHz with 10Ks buffer size. You may want to look at the attached image of the subvi "Analog Acquisition" while I explain my attempts. The first thing that I noticed was the 'dt' value in the input node of the timed loop which had been set by somebody to 100. I thought that was part of the reason why my dequeue size was always worth 100msec data points. So I changed it to 1 msec. This definitely made a difference in the chunk size of the dequeued element. Now dequeueing removes only data points worth 1 - 5msec. I also noticed that my data reading timer loop(the while loop in "Analog Acquisition" picture) takes about 20 -25 msec instead of the set 1 msec.
    Why does the loop take so long? I have set the 'number of samples per channel' to -1 so that DAQmx read.vi (see it in Analog Acquisition subvi block diagram) can grab whatever data is available currently and put that into the queue. Can this be a reason why the loop takes more than 20 msec? I also tried to set the number of samples per channel to 2. I reasoned that with the sampling rate of 2KHz, 1ms loop should be able to pull 2data points and enqueue them. But it gave me the much-often-seen error code ":Error -200279 occurred at DAQmx Read (Analog 1D Wfm NChan NSamp).vi:1->Timed structure(s): DAQ Loop". I tried various combinations of loop time and number of samples per channel. I get Error-200279 very often. Note that I have several state transitions and only in a couple of them during every cycle of state transitions, I remove elements and flush the data queue (one place where I remove elements is shown in my original message in the picture-'Acquire Response.jpg').
    How do I set the data acquisition loop to enqueue elements for exactly 1 msec or n msec so that I can control my dequeue size?
    Thanks a lot, I am getting really tired of fixing this problem. Please help.
    Mani
    Attachments:
    Analog Acquisition.jpg ‏363 KB

  • How to get the last element of a structure in a textfield in DesignStudio

    Hello,
    how can I get the last element of a structure within a bex query?
    Within the structure we are working with dates that dynamically are buiId (input date - offsets for several months).
    I have to show the last value in a single textfield within DesignStudio.
    Regards
    Frank

    Hi Frank,
    in DS 1.3 you can use forEach function to get the last element of BEx structure (or n-th element in general using if condition)
    var array = DS_CROSSTAB1.getMembers("DHGY5D6XEFO1K45SB00BXFH7A",10);
    var lastMember="";
    array.forEach(function(element, index) {
           lastMember = element.text;
    TEXT_1.setText("Last structure element: "+lastMember);

  • Define event to repeat on the last day of each month?

    (I've searched the forum and can't find this question addressed)
    I want to create a repeating event for the last day of each month. Is this possible?

    Unfortunately Apple does not have an option available that allows you to add an event repeating on the last day of the month. An "OK" way around this would be to repeat on the 1st of every month and send a reminder a day earlier. I know this is less then perfect but the only option currently available. If you happen to find a 3rd party program that allows such integration please don't hesitate to mention it here as I have been looking for this sort of option for quite some time now!

  • How can I get the last occurrence of a repeated item in Numbers

    Hi everyone, I'm hoping this question has a straightforward answer.
    I have a simple 2-column table (Table 1). Column A is a list of names. Column B is a list of dates where those names have had appointments. (Most names in Column A are repeated because they have had multiple appointments).
    I'd like to create an automated table based Table 1 that lists each name from Column A only once, with the last appointment that each person has had.
    Any ideas, I'd be grateful.
    Thanks!

    Hi Paul,
    Late to the party, as I was called to dinner shortly after starting on a solution and wasn't able to get back to it for a few hours.
    This was worked out in Numbers '09 (v2.3), but the formulas should work as well in Numbers 3. The solution requires the data on the Data table to be entered (or sorted) in ascending order of dates. Dulicate dates, though not included in the example, should not create an issue.
    The added column (Name index—column C) may be hidden. It is needed to mark the first occurrence of each name, and required only if you want the name list in column A of the summary table (Most recent appointment) filled automatically.
    Formulas:
    Data::C2, and filled down to the end of column C: =IF(COUNTIF($A$2:A2,A)=1,MAX($C$1:C1)+1,"")
    COUNTIF($A$2:A2,A) counts the number of occurences of the name in the same row as the formula from row 2 of column A to the row containing the formula. IF that count is 1, the number of the row is placed in the cell, otherwise the cell receives a null string ( "" ).
    Most recent appointment table:
    A2, and filled down to end of column A:
    =IF(ROW()-1>MAX(Data :: C),"",OFFSET(Data :: $A$1,MATCH(ROW()-1,Data :: $C,0)-1,0))
    If the row number minus 1 is greater than the number of distinct names in the index column, a null string is placed in the cell. Otherwise, the OFFSET function uses MATCH to determine the row in which to find the next name (in order of first appearance) and places that name in its cell.
    B2 and filled down: =IF(LEN(A)>0,LOOKUP(A,Data :: $A,Data :: $B),"")
    IF here uses LEN() to determine if there is data (a name) in column A. If so, then LOOKUP looks up the name in column A of the Data table and returns the date from the same row of column B. If there's no data (name) in column A, IF places a null string in the cell.
    This formula takes advantage of the fact that LOOKUP searches from the bottom of the column, and returns the result from the first match it finds.
    Regards,
    Barry

  • Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser ..

    Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser .

    Go to '''TOOLS''' then''' OPTIONS''' then in '''GENERAL''' panel in '''STARTUP '''session choose '''Show my home page''', then click '''OK''' to save it, exit firefox and restart-it.
    see for more info: [https://support.mozilla.org/en-US/kb/Options%20window%20-%20General%20panel Options window - General panel]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

Maybe you are looking for

  • Error Adobe Photoshop 13.0.1.2 Installation failed. Error Code: U44M2P7

    Help, issues with installing patch for photoshop cs6. Using Adobe cloud. Error - Adobe Photoshop 13.0.1.2 Installation failed. Error Code: U44M2P7

  • Font preview -- Photoshop CC -- Windows 7

    EDIT: I did select "Large" from the TYPE menu (thought it was in Preferences), but this or "None" or the options did not change things. Windows 7 On my Laptop, I can scroll through my font menu and see the text change. Not so on my Desktop. There, I

  • MacBook Pro is randomly shutting off.

    When it restarts the date and time reset to something like January 1, 2000 before changing back to the correct date and time several minutes later. Two months ago I had a problem with overheating with my Macbook that the Apple Store took care of. Any

  • Iphoto so slow i can't do anything

    iPhoto and I are not friends and have not been for a long time. I open the program, it thinks... and thinks... it is so slow, I can't actually even get past the thinking. Right now, I am trying to sync my iPhone... and iPhoto is thinking and thinking

  • Restrict access to files

    Hi, i'm trying to restrict acccess to all the files ending with ~ in my server , i couldn't do it. I try to deny access for files ending with ~. I have sun one webserver 6.1 sp1 in a sunfire solaris 9 machine. i tryed to do what is written in the doc