moving the lines of a 2D array

Hello evryone!

I have a table called 2D message that appears in the attached VI.

example: 11011001

10011011

I have another 1 d array called offsets that generate random numbers from 0 to 5 for the number of lines in the message...

example: 5 2

I now have to create a 2D array, each line having the message + maximum size (moving table)

And in each row of this table 2D, I have to enter a row of the matrix of message from the value given by the shifts as index table. If the offset value is not maximum i.e. 5 in this case, the rest of the values must be zeros.

Example: 0 0 1 1 0 1 1 0 0 1 0 0 0

0 0 0 0 0 1 0 0 1 1 0 1 1

Any suggestions on how to do it? Thank you!!

Creating such a 2D table has a problem.   consider a table 1 d of travel like this 2 5 1.  If your aray 2D will be like this:

MSG Board:

11011001

10011011

10101011

0 0 1 1 0 1 1 0 0 1 0 0 0

0 0 0 0 0 1 0 0 1 1 0 1 1

0 1 0 1 0 1 0 1 1 0 0 0 0

The last 4 zeroes are not part of the msg but will show as if its part of the message.  This condition is supported in your code?  (This can be managed by using the offset value and the length of the block message of Stil.  Is your message block constant? )

The attached vi made the task described you hav

Tags: NI Software

Similar Questions

  • Easy way to extract the line of two-dimensional array?

    Y at - it an easy way to extract a two table row Dimensions? I have two lists of table to a dimension that I consider a pine table, where each pin list is a table of numbers. I want to go through it and to extract a line at a time to send in a vi. Currently, I'm looking to do a bit of a long way, and I was wondering if there was an easier way. The long way:

    GetArrayBounds (Locals.ArrayOfPinsToTestAtOnce, Locals.BogusString, Locals.ArrayBounds), / / enter the quantity of lines and columns Locals.ArrayBounds
    Locals.ElementsPerList = Val (Mid (Locals.ArrayBounds, 1, 1)), //Get number of bowling by list
    Locals.NumberOfLists = Val (Mid (Locals.ArrayBounds, 4, 1)), //Extract number lists
    SetArrayBounds (Locals.OneRow, "[0]", "[" + Str (Locals.ElementsPerList) + "']" ") //Set table defines for a line chart
    < locals.numberofgroups;="" i++="" )="" would="" be="" done="" in="" teststand="" step,="" just="" for="" easy="">
    {
    < locals.elementsperlist;="" j++)="" also="" would="" be="" done="" in="" teststand="">
    Locals.OneRow [j] = ArrayOfPinsToTestAtOnce [j] [i]
    PERFORM STEP HERE (Locals.OneRow)
    }

    Thanks for the tips!

    In all honesty, I just want to do in LabVIEW.  You can try to add to the list in this idea.

  • lines while moving the window on 5 k IMac

    Hi all

    I got a new iMac 27-inch 5 k, alls installed, but on some windows I get weerd lines all while moving.

    On my (old) iMac 27-inch with the same OS (Caroline 10.11.6) I do not have that.

    Not all windows look like that while on the move, some do, but others have not depending on the application.

    Sometimes the lines persist and I need to go back to another window and to return to the normal display.

    No idea what I can do about it?

    Kind regards

    Peter

    Unfortunately, it seems that material. Under AppleCare, desktop computers have free on-site service, if you live within 50 miles of an Apple Store.

  • Find the line in the 2d array

    Help, please...

    I have a 2d double table and I want to find a specific line, an extract to new table 2d.

    My 2d array is:

    100 31.3 25.3 32.1 25.6
    100 31.3 25.3 32.1 25.6
    160 32.4 25.5 33.5 26
    170 33.2 25.8 34.3 26.2
    100 33.9 26 35.2 26.4
    160 32.4 25.5 33.5 26
    160 32.4 25.5 33.5 26
    100 31.3 25.3 32.1 25.6
    170 33.2 25.8 34.3 26.2

    and I want to find the line with the numbers 100,160,170 and build new table 2d

    100 31.3 25.3 32.1 25.6
    160 32.4 25.5 33.5 26
    170 33.2 25.8 34.3 26.2

    Please help... tnx, tnx

    I guess you should be more specific about your question. If you have decided to find values that are present in the 1st column, you can use search table 1 d and pass the index to the 2D array index so you will get a table 1 d of line then build the table by searching for the element.

    That's what explains Yamaeda

  • move the data by lines into a 2D array

    HI, I have a question about moving the data in a 2D online table, that I was not able to do so if anyone has an answer please let me know

    a picture of what im doing is attached as I said

    I want '1 and run' online no column, if I change the index of the line it will work but the problem is that the 'run' under the '1' and I don't want if I change the index of the column of labview makes the data like the attached picture, but when I changed the labview index moves the data by column when want per row

    Hi, I think that change your code as this will give you the behavior you're looking for.

    That being said, your source code is a bit confusing. Why do you have a loop for? If you remove the loop for example, the code will do exactly the same thing.

    Kind regards

  • After selecting an area and the application of fill, where the "done" or "Tick" to remove the moving dotted line?

    After selecting an area and the application of fill, where the "done" or "Tick" to remove the moving dotted line?

    Cmd - H show/hide extras, deselects cmd - D.

  • Moving anchor points and the whole shape gets distorted to change the line weight

    I have a fairly simple drawing that I drew in a larger size, so I could be more specific with it, and now I want to reduce up to the finished size and thicken the line, but when I make the line thicker, my anchor points are moving and the whole drawing is distorted.

    Using Adobe Illustrator of 24 years, I never saw that happen. When I click on the "up" arrow in the stroke palette a lot of time to gradually increase the thickness of line, I can watch made anchor 'walk' around like my shape gets distorted.

    If I go to the place a numeric value for the thickness of line, it doesn't.

    However, if I use the scale tool to shrink the design down to the size of 10% or 20%, or whatever, with traits of the scale and effects UNCHECKED, yet once, move the anchor points and the drawing is distorted.

    It's all about a brand new installation of Illustrator CS 6 for Mac (although I use CS 6 for about 2 years now, my hardrive crashed this past weekend and I had to reinstall everything).

    I missed a little box somewhere that I never saw elsewhere that is what actually happen?

    This post editing to add:

    Also, some of these objects in my drawing I cannot change the race less than 1 point thickness. If I choisis.5 ou.25 pt in the context menu, or even if I enter the numeric value, it jumps to 1 point. Other objects in the drawing are not.

    These objects in question are "rounded rectangle" forms I used the scissors tools to cut and then used the "join" command to put them as well as other forms that have been "scissored"as well."

    All forms of "Ellipse" and "Rounded Rectangle" that I have left intact do not exhibit this problem with stroke and distortion.

    You are being bitten by the Align-to - pixel grid. Select the entire document and go to the transformation Panel and turn off snap to Pixel - grid at the bottom of the Panel. Then go into the rollout (small triangle in the upper-right) and disable align objects on the pixel grid.

  • Get data when the mouse is moved on the line chart

    Hello

    I have a line chart drawn. I put showDataTips = "true". And when the mouse is placed on the line, the data that the line appear as the datatip.

    Now, I want to display this data in some separate labels or text controls (that I placed in the application). Soomeone can give me a hint how I can do this? I.e. when I move the mouse over the line, the data appears in the label and it changes as the mouse is moved and the modification of the data.

    I'd appreciate any help from an expert. Thank you.

    "FlexyBoy" wrote in message
    News:gcnd6p$n1j$1@forums. Macromedia.com...
    > Hello,
    >
    > I have a chart drawn. I put showDataTips = "true". And when
    > the
    > the mouse is placed on the line, the data that the line appear as
    > the
    > datatip.
    >
    > Now, I want to show this data in some separate labels or text controls
    > (that i
    (> placed in the application). Can soomeone give me a tip how I can do
    > This?
    > IE when I move the mouse over the line, the data appears in the label
    > and it
    > change when the pointer is moved and the data is changed.
    >
    > I would appreciate any help from an expert. Thank you.

    This could point you in the right direction

    http://blog.flexmonkeypatches.com/2007/09/03/Flex-charting-LineSeries-mouse-sensitivity/

  • Internet explorer.live/apply stationary/moving the window wanting to go mail, red lines of the EEG in a few words, how to remove have Window vista.

    Red under the line u, & then my friend asked why some of the e-mail was under the red line. Just got this new computer, it's not like the old.   Thank-, just wanting to delete, so it's gone.

    Hi Lorraine,.

    The best place to ask your question of Windows Live is inside Windows Live help forums. The experts he specialize in all things, Windows Live and I would be happy to help you with your questions! Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums at www.windowslivehelp.com.

  • How the 4.01 version to have the TABS line nearby even as in 3.67. ?. In other words, the line of TABS just above window web site at 3.67. Right, in 4.01, is now in the top line of the screen.

    Basically, need a feature that allows the user to rearrange the location of tab line (ie: the ability to drag the line to a different location). For me, it would be moved from the line Summit of 4.01 on line facing down(as the place where it sits in versions of X 3.6), just above the window of the web page. That would make it very convenient to click on multiple back when necessary. What I constantly in my case.

    I thank you for your public service and a great work all you do!

    You can right click on the orange Firefox button to open the menu of the toolbar.

    • Click "Tabs at the top" to remove the check mark and place the tab to its original position bar just above the browser window.
  • Halo 2:When I use my mouse on the line, the cursor movement is very slow and jerky.

    original title: halo 2

    Hello... Just installed Halo 2 on my Windows 7, 64-bit desktop.  I have all the latest drivers. All other games work fine.

    When I use my mouse on the line, the cursor movement is very slow and jerky. Unplayable.

    I was looking for a patch for the game or suggestion on how to correct adjust them.  I tried the option in game of adjustment of moving the mouse, but it did not help.

    Suggestions please...

    ----------------

  • Changes of date and time when you go to the line

    On the date and time to start on the computer is fine.

    When I go to the line for a unknown reason date and time moves forward 12 hours. This happens not always as some time it will be presented one, two or three days without change.

    Very frustrating because it affects the majority of the applications where the date and time are referenced.

    I'm missing something in the settings of date and time.

    [Moved from the forum comments]

    Hello

    -What operating system is installed on the computer?

    If you have installed Windows 7, you can run this Microsoft Fixit and check if that helps.

    Difficulty of broken desktop shortcuts and common system maintenance tasks: http://support.microsoft.com/mats/system_maintenance_for_windows/?wa=wsignin1.0

    Additional information.

    Set the clock: http://windows.microsoft.com/en-in/windows7/set-the-clock

    Thank you.

  • How to follow the line with the vision of the webcam and move along in this

    Hello world

    I have a question that I can't really find a topic about it.

    Currently, I had made my rover robot wireless control using a 3-axis joystick and works perfectly.

    But I want to add some features to the vision on board the rover system.

    I'm doing the webcam to detect a black line on a white background, and then, he moves just independently along the the line black.

    The thing is that I only know abit about installation in a vision... So, if anyone here able to guide me on the way?

    I use filtering color or color matching or model of a match?

    How to make sure that the black line remains in the middle of the vision? (Eg. moving itself at the center of the line within his vision)

    How can I control the engines using the achievements of the vision of the foregoing?

    Hey,.

    Your questions:

    I use filtering color or color matching or model of a match?

    Pattern Matching or Color Pattern Matching would slow down.

    I would use a 1 d Simple edge detection that returns the coordinates and the edge angle.

    How to make sure that the black line remains in the middle of the vision? (Eg. moving itself at the center of the line within his vision)

    You must control your motors that for example the angle is 0 degrees or 90 degrees (depending on your coordinate system) all the time.

    How can I control the engines using the achievements of the vision of the foregoing?

    This robot manual should tell you how to control the motors.

    Hope this helps,

    Christian

  • Search for the string in the string table and see the following value in the line

    Hi, I'm new I have LV and I do a Vi that read worksheet values and generates 2d channels of the same spreadsheet table. For the moment everything I need is a function that find specyfic string in this table and show the next value in a line. As:

    Table:

    a; b
    c; d
    f; g

    example: find the 'c '.

    VI shoud show "d".

    Concerning

    Not a bad homework problem.  Do it with pencil and paper.  Write your table and pretend you're the computer.  What you want to do (step by step)?  What questions do you have?

    Now that the translation a bit to computers.  You mentioned that the data is in an array of strings.  What structures (LabVIEW) work with tables?  [Do you know how to work with tables?  [Otherwise, review some of LabVIEW Tutorial material - see top right of the first page of the Forum].  What do you know about channels?  What questions you need to ask questions on the channels?  What do you know about string functions?

    Watch these things in some LabVIEW code, 'feed' some data and see what he does.  If it seems to do things "unexplained", you can try to look at the block diagram to run by turning the performance highlight (and if you don't know what that means, use the help of LabVIEW and see the tutorials).

    Bob Schor

  • in a PivotTable, the Director of the Forum can tell the index of the current instance of the line?

    Script dependencies and "recalculate()".

    I am the example here and use it to make a dynamic array. The button now work as my Add/Delete a button line + /.

    From the guide, I can use the instance manager and add or remove any instance of line. Now, I want to know what line I'm publishing now, so that when there is data in the other lines that the first line, it appears an alert reminding me to complete the first line beforehand.

    Capture.PNG

    Code instance manager that works in my local:

    var oTargetSubform = addButton.parent.repeatingTable.repeatingRow; Line subform or a table, the controls are intended to manipulate.

    oManager var = oTargetSubform.instanceManager; Download the instance Manager.

    while I suppose that property I should want to talk is oManager.index, it always returns 0, but I can't find the definition of 'index' in Designer 11: Adobe LiveCycle ES4 * instanceManager

    Hello

    to be able to know what line you are currently in when you change a field in any event you can call the index property of the parent row of the field... In this case, you can use the property parent to access the line where the field is inside of...

    For example: this.parent.index-> (1) parent means that the field is directly in the line considered a cell

    This.parent.parent.index-> (2) parents means that the field is in a subform in the line

    I hope this will help you!

Maybe you are looking for

  • Tecra 9100: reboot without end - media test failed

    Hello a friend of mine apperantely has some problems with its Tecra 9100 and he asked me if I could help him. Maybe some of you guys know what this could be... I'll post his original comments to e-mail on the situation: "When I start the computer it

  • Green screen with video call

    I had an update today on my version of the Skype android tablet. Before the update, I have not had any problems to make video calls. Now the other user can hear me, but only sees a green screen. I made sure I'm on the right camera and everything. On

  • Could not get an iMac at the beginning of 2006 to install the system after the frost of

    Our iMac in early 2006, recently upgraded to Lion since Snow Leopard, locked up. We close our eyes with the switch as nothing else worked. After that it wouldn't start. We tried to erase and install with the original system disks. We tried the retail

  • Format without losing any data?

    I removed the hd to my external hard drive enclosure because the usb connection broke. I put the hd in my pc and I format. Is it possible to do that without losing data?

  • Synchronization of Media Player...

    When I try to sync with my phone, I get the message that the device will be filled after synchronization, even if the device has more than 11 GB of spare space. It will be filled after the sync is because WMP wants to synchronize everything in my lib