Building array skipping some iteration results

Hi folks!
Sorry for the newbie question ~:-)
I am writing a subVI for processing a text file into a 2D table of Key/Values
I would like to write it in a blankline-tolerant way.
Well, if I sue iteration and auto-indexation the blank line are loaded into the table
as empty cells. I would like to skip these null values.
There is any trick to skip null values in autoindexation, or it is customary to use other ways.
In case, any hint?
Thanx!
::LabView 6.1::

like this ?
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
Attachments:
remove keyless lines.vi ‏35 KB

Similar Messages

  • Is it possible to create a 1 D array with the "build array VI"? when receiving random number

    Hello all,
    Is it possible to create a 1 D array with the "build array VI" when receiving random number?
    I am receiving random data and the build array VI always create a 2D array which might cause some problem if you want to compute certain type of operation after.
    Any example will be welcomed.
    Thank you,
    Israel 

    Hello Lynn and Yamaeda
    First I want to Thank you Lynn for your linguistic contribution indeed "Build Array" is a primitive and not VI, thank you for the education. In reality what I am doing is simple.
    I have two arrays of complex elements Array1 and Array2.
    Array1 conains the complex elements ""(a0+ib0) ; (a1+ib1) ;...(an+ibn) ;
    Array2 conains the complex elements ""(c0+id0) ; (c1+id1) ;...(cn+idn) 
    What I want to do is the multiplication of the first array by the  conjugate of the second array element.
    Array1*(Conjugate Array 2)" for the first element the results is "(a0.C0-b0.d0) + i(b0c0-a0d0)" and the etc...
    and then taking the square root ([(a0.C0-b0.d0) power of 2]) +  [(b0c0-a0d0) power of 2])
    I was wondering if there were some dedicate primitive that could solve the computation above which is the cross correlation in Frequency domain.
    Thank you very much.
    Israel

  • 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.

  • Error in file export when order of elements in build array changes

    Hi everyone,
    A while ago I wrote a vi file which does the following:
    At first it initializes a camera and chooses a region of interest (ROI). Data out of the ROI will be discarded.
    Then it raster scans a motor stage in x and y direction, in bidirectional mode (meaning that x alternates between scanning from left to right and right to left as y is inreased).
    For each point of the scan, the spectrum is collected, which is then integrated in lambda to give an idea of the total intensity.
    Then the intensity is plotted, along with the spectrum at each point.
    The final results are exported in a text file.
    The problem:
    If I flip the order of the wires in the "build array" before the file export, placing the Total Count (intensity) wire in place of the Spectrum wire, the file export fails. What I mean by "fails" is that the .txt file contains characters that look like chinese!
    Why is that?
    I attach my .vi as well as two screenshots which demostrate the problem.
    Solved!
    Go to Solution.
    Attachments:
    correct.png ‏182 KB
    Wrong.png ‏180 KB
    1.7z ‏119 KB

    mikeporter wrote:
    Hey Jeff... The changes you recommend are all good (and necessary) but the thing I'm stuck on is that regardless of what happens to the floating point data, there's that built-in VI that changes it to string representations of the numbers. And as I understand it, that is where the problem is.
    Mike...
    PS: Coming to NI Week?
    Not this year
    What scared me was the sgls on a SLs with no wire branch to force a data copy which, would force LabVIEW to preserve the sgls since the SL might need to be used again then, they get all mixed up building arrary out of mixed coerced sgls and dbls.  With the potential of a miss-reussed buffer (not uncommon in 2011) confusing the string operations in the write to spreadsheet.   The problem of course, must exist outside of write to spreadsheet file since it only exhibits with a build array element order change.  Or, we all are halucinating (Possible alternate theory)  
    Jeff

  • How can I do some iterative calculus in Numbers?

    i would like to know if i can do some iterative calculus in numbers, may someone help me?

    Excel allows circular references if you limit the number of iterations in Excel/Preferences/Calculation. Numbers does not have that preference or the ability to do iterations.  However, you can do it easily with Applescript.  A simple script that repeatedly takes the value from one cell and places it into another is all that is required. The Numbers table would be designed to have an input cell for the "seed" value, the formulasand a cell for the result based on that input.  No circular references. You might also have a cell to specify the number of iterations. The script would do the iterating by repeatedly taking the result and placing it in the input cell.
    Here is a simple example. First image is before running the script.  Note that one iteration has already been done by the table itself:
    Here is the script. Note the delay. It may not be required but is there to ensure the calculations i nthe table complete. I set it to 1/2 second so you can see it running (assuming you try this out).
    tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
              set value of cell "B5" to 1 -- this is the counter for iterations. One iteration is already complete
              repeat while value of cell "B5" < value of cell "B4" -- B4 has the number of iterations
                        set value of cell "B2" to value of cell "B3"
                        set value of cell "b5" to (value of cell "B5") + 1
                        delay 0.5
              end repeat
    end tell
    Here is the result:

  • 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.

  • How to use 'build array' (concatenate) to create a array horizontally?????HELP

    I want to link nine arrays whose dimension is 2*2 horizontally,but the function 'build array' (concatenated way) made them vertically.........help me please..........maybe this is too simple.........since I am only a students who learnd labview only few months..
    Solved!
    Go to Solution.

    A transpose operation only solves certain scenarios, but you don't give enough information on what you actually want.
    For example, of you have 3 2x2 arrays:
    a1 a2     b1 b2     c1 c2
    a3 a4     b3 b4     c3 c4
    What should the final vertical result be?
    a1 a2
    a3 a4
    b1 b2
    b3 b4
    c1 c2
    c3 c4
    or
    a1 a3
    a2 a4
    b1 b3
    b2 b4
    c1 c3
    c2 c4
    Or something else?
    Please be much more specific. Maybe even attach a small VI containing typical default data.
    LabVIEW Champion . Do more with less code and in less time .

  • How to insert elements into an array after each iteration of a for loop

    I am new to labview and working on an application where I am supposed to store an element into an array (without overwriting) after each iteration in a for loop. I have tried using Build Array Function keeping the indicator outside the for loop and played with indexing but didn't work. Please suggest me an idea how to do it.
    Thanks
    Solved!
    Go to Solution.

    Thank you for your suggestion.Here is my actual application attached . In the first image, a difference in time is evaluated and an enum const of insert into array is passed to the shift register where it takes to Insert element into array phase (Second image). I need to enter the time difference into an array after every loop iteration. Please have a look and could you let me know where I am mislead.
    Attachments:
    Image 1.JPG ‏88 KB
    Image 2.JPG ‏71 KB

  • 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.

  • Build array or merge signals?

    I know there are more than one way to merge waveform signals to display them in a waveform chart. The two I know are merge signal express vi and build array. But I was wondering which one of the two were more efficient. I once read somewhere in this discussion forum that "build array" is one of the more time consuming tasks.
    Not very critical to what I am doing (a loop of data acquition takes just a few milli seconds with build array) but was just wondering if one or the other was a better way to do it. Or there might both be the same.
    Thanks.
    Solved!
    Go to Solution.

    Whenever the size of a data structure changes, a new memory allocation needs to be made. It does not really depends on what primitive you use.
    Do the sizes actually change with each iteration or does the final size remain constant and you are just merging inputs of constant size?
    LabVIEW Champion . Do more with less code and in less time .

  • Build Array Question

    Hi,
    I am wondering how to build a selective array from a continually changing stream of data. For example in the attached picture, I wish to append to the array only even numbers. So the resulting array should be [2 4 6...]. However, I am aware that for a case structure, an output terminal is required, so instead my output reads [0 2 0 4 0 6...], since the default value in the false case is zero. Is there a way to build an array that will only append new elements when certain conditions are met? (in this case, the condition being if the number is even).
    I am aware that you can use a sort array function block, then remove the zeros. Is there a better way to perform this task that I need? In my actual program, I need to record the value of the time at a couple values at the turn of the hour when certain conditions are met, then feed the new array to a graph. Thanks,
    Adam
    Attachments:
    Build an Array.JPG ‏31 KB

    You can just put the build array part into the case statement.
    You can also switch the build array to concatenate inputs mode (right
    click on it), and use arrays to output from your case statement (using empty
    arrays when you don't want to add anything)
    Ideally you avoid puting build array into a loop, since reallocating large arrays can really slow down a program (shouldn't be a problem for small arrays).
    Message Edited by Matt W on 11-21-2006 08:27 PM
    Message Edited by Matt W on 11-21-2006 08:28 PM
    Attachments:
    build array 1.PNG ‏15 KB
    build array 2.PNG ‏15 KB

  • GET PERNR skips some employees in the report

    Hi all.
    This is my first post in this forum. I'm beginner in ABAP programming and I've got a issue in my report that I don't succeed in solving it.
    In the first line of the source code, within the start-of-selection event, I use the GET PERNR command to bring the employee personnel numbers. While I was debugging I've noted this command was skipping some employees. There isn't any line of code before the GET PERNR.
    Do you have any ideia about what's happening?
    Thanks in advance.
    Tiago.

    HI Tiago,
    here is another probably cause. The dates. It´s important that the employees,
    are active in the infotype(I think that is Infotype 0), in the dates that check your program. It´s useful to know
    the selection data period (pnpbegda/pnpendda), the employees selection data (pnpbegps/pnpendps), the radiobutton selection data (pn-begda/pn-endda), of the pnp logical d.b.selection screen. You can see the values of these fields debbuging Ah!, another point, start-of-selection & Get pernr, are differents events in the execution of an abap program.
    Hope this lines help you!
    Carles

  • I want to skip some html code part when refersh the page, how can we know

    Hi,
    i want to skip some html code part when refersh the page, how can we know when we pressed refresh button or F5 key
    thanks in advance....

    There's not really any simple way to do this. Maybe tracking the page the user should be one from every page in the site and if the page being accessed is the same as the last one accessed, assume it was a refresh.

  • Unicode test conversion - skip some steps?

    Hi all,
    We will be upgrading our system from R/3 4.7x200 to ERP2005, and we have recently successfully upgraded our sandbox R/3 4.7x200 system to ERP2005, all pretty much without too much of a hassle. Now we are planning to do a unicode conversion on the same sandbox system, to get some idea about the runtime of such a conversion. The problem is that we are short on time, and I wonder what the effects will be if I skip some of the steps that should be done before we begin with the actual conversion phase (R3load). I have done some of the pre-conversion steps, but not all, and I wonder if there are some that I absolutely MUST do in order to get through the actual conversion?
    In the end, we are not looking for a functioning system after this test conversion, we are only interested in the runtime and downtime findings.
    Regards,
    Thomas

    Hi,
    You cannot skip same conversion step.
    the good ideas is to use the released method by SAP to do upgrade/conversion at the same time. this will save you time.
    check OSS note
    Note 928729 - Combined Upgrade & Unicode Conversion FAQ
    Good Luck

  • Some odd results... anyone have any thoughts?

    Hi - I have quite a few sequences that I've exported from FCE 4 to compressor, and imported in DVDSP4. I've created a track joining all of the sequences together. It's worked well so far. Recently, I did a batch export from compressor, and got some wierd results, that shows up in DVDSP. (I've never done a batch export before). When I try to simulate the playing of the sequence, I get a green screen, and in the track, I get hollow squares. I've tried to re-export to DVD one sequence as a test, and that seemed to import fine. Does anyone have an opinion on the greenscreen/squares wierdness? Btw, the audio seems just fine.

    Hey Ira, how are you?
    Sounds like a bad encode/corrupted asset or perhaps you used a codec that was not processed properly.
    You can also try deleting the PAR/MPEG files beforre going through encoding again or delete preferences just in case

Maybe you are looking for

  • Problems saving a file in Adobe Reader 11 after highlighting

    Hi, Has anyone come across a problem where Adobe Reader 11 seems to have problems in saving certain files after highlighting some text? One of our processes involves checking information and to do this we open up a saved PDF file in Adobe Reader 11 a

  • Uninstall for CS5 in German. How can I get it in English?

    I have a Mac (10.9.4) and I tried to uninstall CS5: Applications>CS5 Folder> Uninstall CS5 and the Adobe Application Manager page came up. It was all in German! Don't speak or read German. What is going on here?

  • Oracle express hang up when two or three users are using the same login.

    For developer purposes, we installed the last version of XE, and we are trying to run a small client-server application, but using the same user: login and password in two different remote PC's. The database is installed in an PC dual core with Windo

  • RAC Node hang and unexpected reboot

    Hello friends       We are facing the intermittent issue of node hang and unexpected shutdown of node. This is 2 node rac 10.2.03 running on windows 2003. Here's crsd.log 2009-07-16 17:24:03.058: [ OCRMSG][5252]prom_rpc: CLSC recv failure..ret code 7

  • Tell a friend is currently unaviliable

    Why I got massage" Tell a friend is currently unaviliable..Try again later" when I tag [ tell a friend]?