Cascade two Build Array functions - what happens?

I found the the code shown in the attachment in a very complex VI that I am overhauling.  Would someone explain to me what is happening with the "cascaded" Build Array functions.
I can see that the first Build Array function builds a 1D array of integers which passes to the second Build Array function which outputs a 2D array of integers but, since there is no Element or second Array input, I don't see how this works.
This is part of a subVI that is not embedded in a loop.
 All the examples have at least two inputs.  With one input there is no Concatenate Inputs option. There is some implicit operation here that I do not understand.
Would someone explain how this works? 
Solved!
Go to Solution.
Attachments:
Cascade two build array functions.PNG ‏7 KB

You are taking a scalar value and creating a 1-D array with exactly 1 element.
Then you are taking the 1-D array and building it into a 2-D array, with exactly 1 element.
Since you can't concatenate something with nothing, the only logical mode for the Build Array would be to build it into an array of the next larger dimension.
You could add a third one, then you'd have a 3-D array with exactly 1 element.  And so on.

Similar Messages

  • Two part question 1) what happens if you  sign into messages beta on os x lion 10.7.5 after it expired? does the whole application not work or just imessage? 2) does installing messages beta on os x lion 10.7.5  delete ichat?

    Two part question
    1) what happens if you  sign into messages beta on os x lion 10.7.5 after it expired? does the whole application not work or just imessage? can you stil use AIM, jabbar, google talk, or yahoo?  if you open messages beta does it immediately tell you that messages beta expired?
    2) does installing messages beta on os x lion 10.7.5  delete ichat or just transform ichat into messages beta giving the illusion that ichat is deleted?

    Hi,
    It was never completely clear whether it was just hidden or whether Apple ran a download page for iChat 6.
    As the Download for Messages Beta was separate and "Deleted" iChat it would seem it would be another download for iChat 6.
    iMessages will not function as it is only an Account type within Messages and iChat 6 does not have it.
    Therefore messages on the iPhone will not sync to the Mac. (until you get Mountain Lion and Messages in that OS X version).
    Mountain Lion and it's full version of Messages will not sync the iMessages that have happened in between the 14th December 2012  (end date of Messages beta) and the Install of Mountain Lion if you decide on that route.
    8:51 PM      Sunday; May 5, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to avoid Build Array function inside a For (while) Loop?

    Hi there,
    I have a simple question about how to avoid using Build Array function inside the loop. Now I want to remove the Build Array funtion inside the loop to improve the performance (To get better memory management). Any idea how to do that?
    Thanks a lot!
    Warmest regards,
    Chong

    It's been my experience that using the auto-indexing to build an array
    on a For loop is just as good as initializing and replacing elements.
    The For loop knows before it runs how many iterations it has to run and
    can allocate the array ahead of time.
    You're better off initializing and replacing when using a While loop
    because it does not know how many iterations it will run and can't
    pre-allocate the array ahead of time.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Pipeline functions - what happens under the hood?  (10g)

    Hi all,
    What happens when you call a pipelined function? (As opposed to a plain table-valued function.)
    From what I understand, a pipelined function will return rows as they are needed. Let's say I have a really silly example of a pipelined function,
    CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE_1
    AS
        FUNCTION GET_DATA RETURN JUST_A_TABLE PIPELINED
        IS
        BEGIN
            PIPE ROW (JUST_A_TYPE('HELLO'));
            PIPE ROW (JUST_A_TYPE('WORLD'));
            RETURN;
        END;
    END TEST_PACKAGE_1;
    /Then let's say I were to SELECT * FROM TABLE(TEST_PACKAGE_1.GET_DATA) WHERE ROWNUM = 1, what happens to the second row? Does the code that returns the second row still get educated? (Obviously it's omitted from the query, but does it still get generated somewhere and just go nowhere?)
    If I have a cursor on a PL/SQL block that selects from GET_DATA, will each row only be returned as the cursor references it? In that case, what happens to the rows that don't get selected? If there some resource that need to be closed out (say, just before the return statement), would it still be safe to close it out?
    Thanks!
    Don

    Interesting question, lets try a simple test and see we'll just take your example function and toss in a few dbms_output statements like so:
    CREATE OR REPLACE PACKAGE BODY TEST_PACKAGE_1
    AS
        FUNCTION GET_DATA RETURN JUST_A_TABLE PIPELINED
        IS   
        BEGIN
            dbms_output.put_line('ONE');
            PIPE ROW (JUST_A_TYPE('HELLO'));       
            dbms_output.put_line('TWO');
            PIPE ROW (JUST_A_TYPE('WORLD'));       
            dbms_output.put_line('THREE');
            RETURN;   
        END;
    END TEST_PACKAGE_1;Now not forgetting to enable dbms_output call it three times like so:
    SELECT * FROM TABLE(TEST_PACKAGE_1.GET_DATA) WHERE ROWNUM = 1;
    SELECT * FROM TABLE(TEST_PACKAGE_1.GET_DATA) WHERE ROWNUM <= 2;
    SELECT * FROM TABLE(TEST_PACKAGE_1.GET_DATA) WHERE ROWNUM <= 3;What I saw from my test was that with the first call I got 1 row of data from the pipelined function and only the first dbms_output statement was processed. For the second statement I got 2 rows of data from the function and the first two dbms_output statements were processed. For the final call I again got 2 rows of data from the function and all 3 dbms_output statements were processed.
    My environment:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    "CORE     10.2.0.1.0     Production"
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

  • I have a Build Array function within a case structure. This array gets populated properly but I am unable to pass this array out of the case structure.

    I'm including a .png file that shows how I've coded this array.  This is part of a subvi.  Do arrays/loops behave differently in subvi's than in vi's?
    Attachments:
    arrays and loops.png ‏29 KB

    Can you attach your actual VI?
    I think there are a few more problem areas, for example:
    Why are you reading "time Stamp 3" from a value property node with each iteration of the loop? Due to the speed of the loop is very unlikely that that value changes between iterations (and if it would, it would give unpredictable results!). Thus you should read that value once before the loop or better just wire from the actual terminal. Property nodes force synchronous execution and are several orders of magnitude slower than any other method of data transfer.
    LabVIEW Champion . Do more with less code and in less time .

  • Two iTunes Library - hmm what happen? should i merge them into one?

    i remmeber when i bought new additional hard drive to to my intel macpro . i changed  itunes folder to there.. becase my main HD( HD1) memory is almost full..
    i remember  i reloacted my itunes folder there.. all music ,data,purchased item and art work etc..
    and not sure since when i see who  itumes folder  with different music content..  HD3 has itunes folder i re created and now i see my home folder (original HD ) has itunes fomder again (under Home/User/Music ..)  why?  it's happen after i downloaded new itunes? new latest itunes ? computer automativcally create new itunes folder to under music folder?
    someone one please help me?
    i'm very simple person i dont want these mutiple folders in my computer.. i still want entire  itunes folder to my new hard drive (HD3) because my HD 1 is almost full...
    thanks for reading and i hope you could help me...

    You can make iTunes point to the external media folder.
    Go to iTunes > Preferences > Advanced tab, change the iTunes Media folder location.
    Keep iTunes Media folder organized CHECKED
    Copy files to iTunes Media folder when adding to library CHECKED
    http://support.apple.com/kb/HT1449

  • How to insert a new array of elements to a build array function such that the elements will be given one by one

    i 'am attacing one VI. In this VI i had a for loop into it I need to insert a section of commands only when the case loop selection is on state. How can I do it. Please help me to overcoem this problem
    Attachments:
    sequence post-case for selection.vi ‏15 KB

    Can you elobrate please. When boolean is FALSE then what you want to send otherwise when boolean is true then what you want to send ?
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet

  • Build Array forces Concatenat​e Inputs

    I have a VI attached that I'm having problems with the Build Array function. With a certain 1D extended array called Frequency (Hz), when I wire it to a Build Array with another 1D extended array, it puts out a 2D array. However, when I divide that second 1D extended array by a single extended constant (20), and try to wire it to the Build Array, the Build Array changes to "Concatenate Inputs" and will not allow me to change it back. These are two 1D arrays, I should be able to make a 2D array out of them.
    What am I missing here? I know this sounds like an elementary problem (hopefully it is), but I couldn't figure it out. Please see the VI and follow the statement on the Block Diagram. Could it be something with the inheritance properties?
    Michael
    Attachments:
    SavePassFailCriteriaSUB_test.vi ‏51 KB

    Probably related to the bug discussed recently here:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=294807
    LabVIEW Champion . Do more with less code and in less time .

  • What happened to the multi-touch gestures in Finder?

    I've updated to Lion last week.  Overall, I think what Apple did was great to the overall experience.  However, my only gripes are in Finder.  What happened to the multi-touch gestures?  The only thing that I can do is flip through files in cover view using two finger swipes.
    What happened to the pinch to zoom in and out?  I've seen other posts about this so I'll stop here.  Apple please bring this function back.  I'm tired of moving my mouse to the drag handle. 
    Secondly, I was using three finger swipes to navigate to the previous and next folder in Finder.   Since two finger is used to flip through cover view, I see why they couldn't extend the back/forward function to two finger swipes as they did in Safari and I know that three finger swipe is used to change desktops.  I wish that Apple was more creative to leave this function in somehow.
    Is there a way to bring these functions back to Finder?  These are the functions that I used all the time.

    That doesn't explain why they would remove the pinch to zoom in and out.  That is not be used by anything else in finder.  If I'm going through pictures, I would like to zoom in on the images for cover view.
    As far as the three figure swipes to go back and forth in finder, I understand why that has been removed.  However, Apple could have implemented the two finger swipe just like in Safari which is sensitive to the acceleration of the swipes.  If you swipe with two fingers somewhat fast, you can go back and forth between previous and next page.  If you swipe with two fingers slowly, you can pan left and right on the same page.
    They could have done something to retain the functionality versus taking out the functionality all together.  As of now, these functionalities do not exist.  I'm hoping that something is going to change and we'll have to see what the future brings.

  • Replace build array with replace subset array

        Currently I am using a build array function, but would like to replace it with a replace array subset, but I am new to labview and having a lot of trouble.  I've attached a screen shot of the code I am struggling with.  Does anyone have any ideas?
    Attachments:
    Build array code.JPG ‏29 KB

    First, I'm assuming this is inside some sort of loop.  Second, I would recommend cleaning up the code a bit so the feedback node is not overhanging the edge of the case structure.  It's unclear as to what is wired to what.  Third,  I would recommend using shift registers instead of the feedback node.
    Fourth, and the main thing is that you are currently initializing a 64 element 1-D array and appending it to your array on every iteration with the build array.
    If you want to use the replace array subset.  Initialize the array to the size you want outside of the loop.   Feed it into the left hand shift register.  Replace each row (or column) with your new data.  You will need to track the iterations, and possibly add special code to shift the array, or enlarge the array in the event you have more data come in then the original size of your array.

  • Build array element labeling

    Hello,
      I am using the build array function to make a large boolean array. How can I have the element positions labeled so that I can easily determine what bit in the array I am connecting to?
    Regards,
    Kaspar
    Regards,
    Kaspar

    You didn't mention that in your problem statement.  Also, you mentioned you're using Build Array.  Are you interested in knowing the terminal position on the Build Array that you're wiring to?  There is currently no way to do that, as they all have a name of "element" when you hover over the Build Array with a tip strip.  How many values are you wiring to your Build Array, anyway?  If there are so many that you can't keep them straight without labels, perhaps there's a more elegant way to deal with the code?
    If not, though, perhaps you could include a decoration on the diagram separating every 5th element that could help you more easily determine what position you're at with the build array:
    -D
    Message Edited by Darren on 05-23-2007 03:09 PM
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    build_array_dec.png ‏9 KB

  • I have added photos to a portfolio website I'm building and a lot of them look VERY grainy when you click on them. They are nice clean large files and can print bat high res way over 16" x 20" so whats happened to them in iWeb?

    I have added photos to a portfolio website I'm building and a lot of them look VERY grainy when you click on them. They are nice clean large files and can print bat high res way over 16" x 20" so whats happened to them in iWeb?

    When you are dealing with websites, image file size is a trade off between quality and download speed. There's not a lot of point to having high quality images if they take too long to download in the browser.
    Nowadays we also have to consider the device that the end user is viewing the images on. An image that is optimized for viewing on a large screen is total overkill and unsuitable for those using mobile devices.
    Really we should be supplying different versions of media files for different devices using @media rules in the stylesheet but this is rather outside of the scope of iWeb. If you use the built in image optimizer and the iWeb Photo template with slideshow, the application will optimize the images according to the way in which you set this function in preferences and the slideshow size will be automatically reduced for those viewing it on smaller screens.
    If you want to give your viewers the opportunity to view large, high quality images, you can supply them as a download.

  • What happens if i sync two desktop firefoxes? Will my bookmarks be organised by computer or will there be duplicates?

    How to set up firefox sync is well described, but there is hardly any information on what happens after setup. I have two computers with different bookmarks and settings and i want to keep it that way, but i would still like to have access to the other computer's data.
    Will the sync import all settings and merge them or will the settings remain separate somehow? Will this only affect bookmarks or also sessions, that is open tabs and windows? I would be okay with merging bookmarks, but browsing sessions need to remain unique although it would be nice to somehow access the open tab list from the other computer.

    Thanks for the reply.
    It is encouraging to see such timely responses!
    I must be old-school ... you know, mainframe days... ;)
    To me synchronize does not necessarily imply merge both into a superset.
    Sometimes synchronize means: make one look like the other.
    (See refs at wikipedia or other online definitions. I only point this out to explain how it is that I do not automatically assume the same process function for the word that Mozilla does. And having worked with user documentation for years, it seems that clarifying of assumed terms is important.)
    Though I am not sure if any authors of the Firefox help pages ever read here, I would wish that they would include just this extra little tidbit - that "synchronize" in Firefox means creating a superset of all data, and then making both look like the superset.
    Would have saved me a lot of time searching and worrying about what will actually happen.
    Sigh.
    The one other thing, which I will probably have to experiment with, regarding bookmark synchronizing:
    What does it do with two similar but not exact bookmarks.
    I am guessing that it will try to match on URL address, not text label. So i wonder what it will do if I have same URL but with slightly different text name label, which one does it pick?
    Or perhaps it will keep both, if its match criteria is both of URL and text name label.

  • What Happened to Other Two HDs?

    I've installed three internal hard drives, but only the third appears on the desktop.  What happened to the other two hard drives?

    Niel,
    1. May 9, 2013, I bought a G4 QuickSilver Mac with only one hard drive on ebay.  Main Disk was named   "WD1200 Boot Drive."  Worked great.
    2. May 13, 2013, I installed a second hard drive to the one mentioned above, and named it "2nd Maxtor Boot Drive."  Worked great.
    3. May 21, 2013, I installed a third hard drive, and name it "3rd Hitachi Boot Drive." Worked great.
    4. May 21, 2013, after I installed "3rd Hitachi Boot Drive," and used it as the "Startup Disk," I copied all of my external hard disk data (named "Mac Companion") to "3rd Hitachi Boot Drive."
       a.) I then began moving to trash/deleting the data from "Mac Companion."
       b.) Because data being trashed/deleted from "Mac Companion" was taking so long, I quit the procedure by just pulling the plug on the Mac while it was still under the control of "3rd Hitachi Boot Drive."
       c.) I didn't "Shut Down" by the book.
    The next morning, today, when I booted up, the only hard drives showing were:
    1.) 3rd Hitachi Boot Drive, and
    2.) Mac Companion
    The other two hard drives did not show up on the desktop; nor did they show up in the Utility folder.
    All the drives were installed correctly.   All drives were functioning correctly. There were no problems until I "shut down incorrectly."
    What should I do next?

  • What happens to the function keys when i unplug the extended keyboard?

    i use my laptop (12 function keys) with a wired apple aluminum extended keyboard (19 function keys). i assigned a few functions (screen shots mostly) to the upper function keys on the keyboard... f16-f19. but when i unplug the keyboard i'm not sure how to get those functions on the laptop keyboard.
    what happens to those functions when the keyboard is unplugged? is there a way to map those functions to the keyboard so that they are re-assigned when it's unplugged?

    wilyliang wrote:
    question still remains: do f16, etc., exist or can they be re-invented once the USB keyboard is removed (besides having to re-map the shortcuts each time)?
    I haven't found a way, though there might be.
    or even: is it possible to assign two different key combos/function keys to a single command/shortcut?
    Now that depends on the application that's assigning the shortcuts. Some Microsoft and Adobe apps allow multiple shortcuts per function, I've taken advantage of those a few times myself. But cheaper apps often cut you off at one shortcut.

Maybe you are looking for