Do I have to dequeue each element separately?

I have a series of arrays (hopefully in the attached vi is the right one) and a single dequeue for them all to a tdms write in my consumer loop. The problem im having is that im not getting all of the data into my tdms file. Only chunks of it. Why is that? Dequeue appears to only remove the last element, so does that mean I need like 50 dequeues and 50 tdms writes each with their own channel name in order to get all my data?
Attachments:
Test 2.vi ‏135 KB

You need to have one dequeue for each enqueue to get all the data. You are enqueuing three times to the string array and five times to the numeric array in each iteration of the bottom loop.  In the top loop you dequeue three times from the string array and once from the numeric array.
Let's make a little example:
First iteration of lower loop:
String Queue:  1a, 2a, 3a
Numeric Queue: 1x, 2x, 3x, 4x, 5x
First iteration of upper loop:
Removed from String Queue:  1a, 2a, 3a.  Remaining in String Queue: -
Removed from Numeric Queue: 1x. Remaining in Numeric Queue: 2x, 3x, 4x, 5x
Second iteration of lower loop:
String Queue:  4a, 5a, 6a
Numeric Queue: 2x, 3x, 4x, 5x, 6x, 7x, 8x, 9x, 10x
Second iteration of upper loop:
Removed from String Queue:  4a, 5a, 6a.  Remaining in String Queue: -
Removed from Numeric Queue: 2x. Remaining in Numeric Queue: 3x, 4x, 5x, 6x, 7x, 8x, 9x, 10x
As you can see, the size of the Numeric Queue will continue to grow. 
WIthout spending much time looking at your code, my first thought is to an create array of the strings and enqueue that array. Similarly either concatenate the numeric arrays or make a 3D array and enqueue that. One enqueue for each type of data. One dequeue for each type of data. You might need to do some parsing before writing to the file.
Lynn

Similar Messages

  • HT4914 how do i Download my entire collection from iTunes Match, There is an option for that or do i have to download each album separately?

    i want to Download my entire collection from iTunes Match with just One click, Or somenthing like that, but i don't know if there is an option for that or if i have to download every album one by one

    Welcome to the Apple Community.
    Select all your content in iTunes and choose download from the contextual menu that appears when you ctrl-click on your selection.

  • How Do I Print Each Frame Separately in the new Firefox

    Before the recent Firefox update, in the print screen used to be an option to print each frame separately. Now, that option is gone. Does anyone know how to have it print each frame separately in the new Firefox? I work with a webpage where if I try to print, the first page prints, but the others are all blank. In the past, selecting each frame separately fixed this issue.

    Hi,
    You can try to [https://www.mozilla.org/en-US/firefox/new/ update Firefox] to check. You can also right-click on the page > '''This Frame''' > '''Print this frame'''.
    [https://support.mozilla.org/en-US/kb/fix-printing-problems-firefox?e=sph&redirectlocale=en-US&as=s&s=printing&r=0&redirectslug=Firefox+prints+incorrectly Printing problems]
    [http://kb.mozillazine.org/Problems_printing_web_pages Problems printing web pages]
    If the problem persists, you can consider the [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] feature via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''.
    (To revert to the previous profile you were using, close the new profile (i.e. exit Firefox), start Firefox and choose the '''Default User''' profile. While the [https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles Profile Manager] is open, you can also delete the newly reset profile (the one containing random numbers), or the former profile, as the case may be). If the reset is okay, it would be a good idea to delete the old profile as otherwise it would be left intact with the previous data until deleted.
    [https://support.mozilla.org/en-US/kb/Managing-profiles Managing profiles]
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]

  • HT1711 Do I have to buy each song separetly for the price or is there is a monthly value I can purchase to download songs within a month?

    Do I have to buy each song separately for the price or is there is a monthly value I can purchase to download songs within a month?

    You need to buy each song. iTunes doesn't offer a subscription service.
    (77250)

  • Submit all questions at the AT THE END OF THE TEST  -  NOT each question separately

    Helo.
    I find some problem. I think captivate is very useful tool
    and user friendly but i have one urgent problem: i would like in my
    course all questions have 'back' and ' forward' (eventualy this may
    be 'skip') button and the approve/resume/submit button was at the
    end of the course and it would take affect to all questions (i mean
    - then all questions would be submitted and student would not have
    to submit each question separately). IS IT POSSIBLE TO MAKE IT IN
    ANY WAY ???
    I thought that i could remove submit button from question
    slides and place it with the last question but i can't remove it
    from slides.
    Anyway i would be glad if somone would help me because i
    cnannot find any solution of this problem in captivate's help.
    Thanks in advance for all ideas and proposed solutions
    Regards: Simon

    Hi templaaar
    I am not the world's greatest on Captivate, but my
    understanding is that each question has to be submitted seperately
    and I do not know of any way in which to submit all the answers at
    once.
    Sorry mate
    Andrew

  • Can 2 different users with 2 different Iphones use the same itunes to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    can 2 different users with 2 different Iphones use the same itune program to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    Here is your answer:
    http://support.apple.com/kb/HT1495

  • I have 4 ricco md2 mini USB speakers and i can't get them to play at the same time. i have tried using the aggregate device feature but have had no luck. i can play each pair separately, but not together. what should i do?

    i have 4 ricco md2 mini USB speakers and i can't get them to play at the same time. i have tried using the aggregate device feature but have had no luck. i can play each pair separately, but not together. what should i do?

    i have 4 ricco md2 mini USB speakers and i can't get them to play at the same time. i have tried using the aggregate device feature but have had no luck. i can play each pair separately, but not together. what should i do?

  • Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.

    Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.  Is there some way I can open the contact list, click on all of the individual addresses to which I want to send the email without the list closing between each address entry, and have all of my address entries be listed to the email at one time?  Something like it works in Gmail.  I do not want to use set lists, I want to enter different addresses each time I send an email.  And I am a very slow typist, so I don't want to type the first few letters of each recipient's name.  It is much faster for me to just click on the e-mail addresses in the list as a group.  It doesn't make any sense to me to have to reopen the contact list for each address, when it should be so easy to click on all of the addresses I want at one time and then click once to add them all to the email as a group.  If there is a solution to this, please tell me.  Thanks.

    Vatlily,
    Try this:
    1. Select Mail>File>New Message.
    2. Select Mail>Window>Address Panel.
    3. Use (command+click) on the desired addressees in the Address Panel to create the list.
    4. Click "To:" on the top left of the Address Panel.
    The group that you selected will be added to the "To" field in your New Message.

  • How do I consolidate a song into an album, each purchased separately, in my iTunes library? iMac OSX 10.8.5. iTunes Help has been no help.

    How do I consolidate a song into an album, each purchased separately, in my iTunes library? iMac OS X 10.8.5. iTunes Help has been no help.

    However, my troubleshooting issue is that I also want the songs in my concert playlists to go in order of how they were performed at the concerts.
    Give them a track number.
    Each time I number them within the playlists the song's number also changes within the Library Music list.
    And?  I'm not seeing the problem.
    However, I can not figure out how to make true copy. I've already tried dragging the song to my desktop, then dragging the new copy back into iTunes. I've even tried renaming the duplicate copy and dragging it into iTunes. Why won't my iTunes make an individual duplicate copy of a song?
    How do you have iTunes manage your music?  If you drag a song to the desktop it may just be moving the file to the desktop.
    Command+R to reveal the file in Finder.  Command+D to duplicate the file in Finder. Drag the duplicate to iTunes to add the second copy.  Not that I totally understand where the issues lie and feel this is likely not the best remedy...

  • How to prevent JaxB creation of 2 Interfaces for each Element?

    hi,
    does any body know how to prevent JaxB creation of 2 Interfaces for each Element (The Content Interface and the element interface)?
    I want to configure JaxB to use only one Interface and only one implementation Class.
    Thank's,

    I am sorry I can not answer your question, I have got the same problem. Could you please email me to
    [email protected] when you know the answer, please.
    I have a question for you. When and complex type is validated, I get the object which contains the error. ( or objects ).
    However. How do know the position in the actual parent object. basically. Is there a way to know exactly the position of that attribute in that object. I need to store errors strings.
    The first problem derives from this one:
    It is not possible to execute validate function for a primitive attribute inside an structure.
    I would appreciate your help.
    Thanks.
    Gustavo.

  • I want to create an array that goes into a case structure where each element in the array is an individual case and gets done in order

    I want to create an array that goes into a case structure where each element in the array is an individual case and gets done in order. Any ideas, I've been playing with the idea but have had no luck, is this even possible?

    Hi,
    Please check it out the attached Vi.. Is this you need?
    Sasi.
    Certified LabVIEW Associate Developer
    If you can DREAM it, You can DO it - Walt Disney
    Attachments:
    Event.vi ‏11 KB

  • Java 1.5 - Each Element of a List Cannot Be An Array?

    I plan to create a List and each element of this List is a String Array.
    First, I declared a List:
         private static List<String> recursiveTextArray = new ArrayList<String>();And I want to build this List by adding one Array at a time:
    recursiveTextArray.add( title );where
    private String[] title;
    title = new Array(3);I got syntax error saying: "The method add(String) in the type List<String> is not applicable for the arguments (String[]).
    I cannot figure out what the compiler is complaining about. How do I fix the problem? Thanks in advance.

    I think that I have some idea about what is going on. Because Array is an object, I should:
    private static List<Object> recursiveTextArray = new ArrayList<Object>();But the Java statement shown right above has a syntax error: "Syntax error on token ";", , expected"
    I have no clue why there is such a syntax error.

  • How to average each element in an array

    I have data from a Gage Card that I would like to average.  I am tuning a laser over a 50 mA range and for each 1mA increment in current, I am taking 100 scans.  Each scan consisting of about 200 points.  I cannot average more than 10 shots using the Gagecard so I would like to capture 100 scans, and average them to reduce noise.  Currently, I have my capture vi inside of a for loop which repeats 100 times and each scan writes to a file, but I would like ony 1 scan (the lower noise averaged one) per current increment.  
    How can I average each element of 100 arrays and output this to an array?
    Thanks for the help 

    It sounds like you want to average element 0 across 100 arrays and make that element 0 of the new averaged array.  Then average element 1 across 100 arrays and make that element 1 of the new array ...   ?????
    How are you working with your 100 1-D arrays now? 
    What you should do is make a 2-D array where one dimension is 100 (for the number of individual arrays) and the other dimension is how many elements are in those 100 1-D arrays.  Then you can use for loops with auto indexing to break the 2-D array down into each row or column, do the average of that array, and autoindex on the other side to build back up into the new 1-D array of averages.  You may need to to a transpose array going into your for loop in case the arrays are indexed in the wrong direction.
    Message Edited by Ravens Fan on 01-21-2008 04:26 PM
    Attachments:
    Example_BD.png ‏6 KB

  • I have a upgrade from elements 9 to elements 11

    Hi I have a mac and Elements 9 and an upgrade to Elements 11 serial < removed by forum host>. Can all the Adobe Photoshope Elements 9 and 11 be deleted and I start the loading again will this fix? When I upgraded to 11 the first time with the trial it listed all the file names in the folder list on the left side but now thay are in a difrent formate with no names after reloading the up grade. Can you help me please. Best Regards Phil Mowbray.

    What is ment by <Moving to PSE Forums> please explaine reply?
    You posted in the wrong place, so they moved your question to the Photoshop Elements forum.
    To remove PSE, use the uninstaller for each version that is located in its folder in your Applications folder.

  • In the app "Numbers" I want to paste in many rows in to columns. And each row separated. Now it's getting all in one column

    In the app "Numbers" I want to paste in many rows in to columns. And each row separated. Now it's getting all in one column when I try to paste.
    Fact is that I have a 4 pages list with about 50 rows of single words and I want all that in columns

    Hey joshuafromisr,
    If you resintall iTunes, it should fix the issue. The following document will go over how to remove iTunes fully and then reinstall. Depending on what version of Windows you're running you'll either follow the directions here:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/HT1925
    or here:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/HT1923
    Best,
    David

Maybe you are looking for