Make a table table 1 d 2D

Hello

I have a 1 d table and I would like to make a 2D of this array in the following order

Table 1 d: 1 2 3 4 5 6 7 8 9 10 11 12

If lines = 4 then the 2D table should look like this

1-5-9

2-6-10

3-7-11

4 8 12

and if lines = 3

1, 4, 7, 10

2, 5, 8, 11

3, 6, 9, 12

Could if it you please let me know how can I do it in LabVIEW?  Line number and table 1 d are the input parameters

Thank you

As already said of the OriolesFan, reshape array's proper operation.

This is the most general solution that fills the output array. If the elements are always divisible, you can leave aside the function 'sign' and 'Add' and wire just QI to exit to the upper bound of size to "reshape the table." (and generates an error if the output remains is not zero )

Tags: NI Software

Similar Questions

  • How to make a table with ActiveX Excel using Excel_RangeSetValue2?

    Hello

    I want to make a table in Excel. For this, I use two functions: Excel_WorksheetGetRange and Excel_RangeSetValue2.

    I write the table on Excel file, but only the first instance of the table is copied.

    Here, a part of my program:

    char * DataToWrite = {"A", "B", "C", "D"}

    cCell Char [10];
    VARIANT vCell, data;

    ExcelObj_Worksheet hWorksheet;

    ExcelObj_Range hRange;

    ...

    CA_VariantSetCString (& vCell, cCell);        cCell = a1: a4
    Excel_WorksheetGetRange (hWorksheet, NULL, vCell, CA_DEFAULT_VAL, & hRange);
    CA_VariantSetCString (& Data, DataToWrite);
    Excel_RangeSetValue2 (hRange, NULL), data;

    Here what I get when I'm compiling on Excel file:

    A

    A

    A

    A

    You must use the other instructions to complete the range of cells:

    strcpy (msg, "A1: a4");
    CA_VariantSetCString (& MyVariant, msg);
    Excel_WorksheetRange (ExcelWorksheetHandle, NULL, MyVariant, CA_DEFAULT_VAL, & ExcelRangeHandle);
    Excel_RangeActivate (ExcelRangeHandle, NULL, NULL);

    Create a SafeArray of data table
    CA_VariantSet2DArray (& MyVariant, CAVT_CSTRING, lines, 1 table);
    Transfer data to Excel range
    Excel_SetProperty (ExcelRangeHandle, NULL, Excel_RangeValue2, CAVT_VARIANT, MyVariant);

    ClearObjHandle (ExcelRangeHandle);

  • How to make the table from separate text semikolon

    Hello

    I have a text with multiple lines. The lines are separated with \r\n.

    In every row is the same number of values that are separated by a semikolons.

    How can I (easy) make the tables of each value online?

    Currently, I solved it by creating a loop and using game-model, register shift, to insert to the table... But this looks very great.

    How can I make this easier?

    Thanks for the help

    Hello

    We must define the separator.

    See the image as an attachment.

    Mike

  • Try to make the Table system (Acrobat Pro MS - Windows) dynamic intern

    Hi Experts...

    I developed system of presence of an intern in Adobe Acrobat Pro ms, Im new in JavaScript, but I managed to make the picture, but now I need to make the dynamic table, not all courses are 10 days, some are 20 days so every time I need to change the form (prepared) to copy the boxes and divide 100 / number of boxes so I can put a value in each box check out if the trainee course is 10 days so every day will come it will be equal to 10%, so at the end of

    I can see the percentage of presence, now I want to copy the boxes to cover all 4 weeks so I change the number of (duration) of the course each cru of the boxes will change their values dynamically, so the percentage of presence will work right.

    Here is the download link for the original PDF:

    https://www.dropbox.com/s/dgaf771nhqsixzo/testing%20New%20Presence%20system.PDF?DL=0

    5-19-2016 7-05-24 AM.jpg

    So please can you help me or me to know what to do to make this table dynamically change the values for the checkboxes as percentage the guide will change automatically, thanks in advance.

    You might want to rethink your approach.

    I would like to change to count the number of checkboxes limited the period number and then simply divide the number of boxes checked by the number of the period.

  • I can not change the size of the tables in adobe dream weaver 2015 cc arrows to expand or make small table does not appear.

    problem.jpg

    I try to do a lot of things to develop or make small table as in youtube videos, but just in my dreamweaver does not do anything to do that!

    Thank you!

    Use CSS to style your tables.

    table {}

    Width: 60%;  / * ADJUST AS NEEDED * /.

    margin: 0 auto;

    border: 1px solid #CCC;

    border-collapse: collapse;

    do-size: 14px;

    }

    Nancy O.

  • Should I Debenu PDF aerobatic 12 as a plug-in for Adobe Acrobat to make a Table of contents to an existing PDF

    Colleagues at the forum,

    This is my question, I have a big PDF, 341 pages, another 500 pages, I want to make a table of contents, and I read this Debenu PDF aerobatic 12 program as a plug-in for Adobe Acrobat does not this solution, which allows to quickly create a table of contents, however, the program is expensive at nearly five hundred dollars I wonder why doesn't have Acrobat Professional this service included in the program, if we can get a solution of Table of contents and Index, that would be great. Acrobat has this feature already or do you think I should buy this program. Yes, we can do a table of contents using the word program and then go to the PDF file and the link between that each line of the table of contents to the page, but it would take a lot of time and the solution provided by Debenu sounds like good. I'm looking for your advice because I do not know much in this area.

    Best regards

    Bahri

    Acrobat has this built. Normally, the table of contents is prepared at the same time as the document, possibly in the word, which will use heading styles to do it automatically. It is then converted to PDF. It is very rare to make this work with a PDF file, I guess that's why he isn't a main function of Acrobat.

  • Taking a class SQL and make a table for a project and have a problem with my table does not.

    Here is my syntax

    create the table student_data

    (Stu_ID, varchar2 (4))

    Lname varchar2 (12),

    Fname varchar2 (12),

    address varchar2 (25).

    zip of varchar2 (10),

    Phone # varchar2 (15).

    E-mail varchar2 (35),

    AA_degree_ID varchar2 (2),

    AA_grad_year varchar2 (4).

    Status (10),

    BA_start_date varchar2 (4).

    Major_ID varchar2 (5).

    Advisor_ID varchar2 (4).

    Student degree Plan developed varchar2 (4).

    Graduation of Student application complete varchar2 (4).

    Student program assessment varchar2 (4));

    and says error starts on line 1

    Error report-

    SQL error: ORA-00907: lack the right parenthesis

    00907 00000 - "lack the right parenthesis.

    If it makes a difference that I wrote all the outside syntax in Notepad ++ and copy pasted above.

    Student degree Plan developed varchar2 (4).

    Graduation of Student application complete varchar2 (4).

    Student program assessment varchar2 (4));

    If someone else sees this i figurde my answer these he i connected with underscores and I took thing the table was trying ot and then told me they had long in length, so I had to shorten.

  • How to make my table of contents interactive to publish online?

    I have produced a Table of contents for my document in InDesign and checked the box 'Add the page anchor' in the options. But when I export to publish online, the table of contents are not linked to pages in the document.

    Then, I tried to make the page numbers in table of contents converted into hyperlinks leading to page numbers, but that no longer works.

    What I'm missing here? Looks like I should be able to do this easily, but... Thanks for the hints!

    Hi Christy,

    During the generation of the TOC, check "Make text anchor in paragraph Source" in the dialog Table of contents the table of contents clickable links in the document to publish online.

    Concerning

    -Anshul

  • In a helpset with several CHMS, how to make the table of main contents appear in all CHMS child?

    I use RoboHelp 11. The software product I am documenting is modular, so help is also divided into numerous CHMS (requirement). One of the other requirements is that the table of contents of the master project appears, called anyone who chm contains the link by the software. I did it with merged WebHelp (Kudos to Peter Grainge), but I could not help using RoboHelp HTML. Someone has it tried with success? Advice would be appreciated.

    This forces you to make the following changes:

    1. In each project, open the window used to display CHM. Click Advanced Properties and enter the name of the file from the table of contents for the master project in the field of the "Table of contents".
    2. After compiling all the files, open the master project. High hydrostatic pressure in the Notepad file. Locate the [MERGEDFILES] section. This should be a list of all CHMS that make up the final deliverable. For some time I used CHMS, so I do not remember if you must do this in all projects. Try first in the main project and you'll know if you do.
  • Make a Table of the dynamic contents for a document with a liquid layout... Help!

    * Running LiveCycle ES4 and use of the 'action' to code generator *.

    I have a HUGE document (70 + pages) that needs a dynamic table of content that updates the user adds information that can push all the sections that follow to the new page numbers.  There are sections AND subsections under each article, but for this, lets keep things simple and just talk sections.  I had to face to find a way to do this for months and I need to have done this week. I already have the table of contents and click on each section heading, it sets the focus to the PDF for the first text field in this section.  (each section has a text field just after the title of section)


    To make it dynamic, I added 2 pieces for each section:

    (1) a field of visible text on the Table of contents page with the default page number that the article is on until the user enters information

    2) an invisible digital field placed just before the first text field in each section that of value is set on "property page number: current runtime" so he always holds the current page number


    Using the constructor Action, what I do is every time a textfield is changed, change the value of the table visible from the field content of this section to the value of the invisible digital field that is now the current page number.  There are 7 sections, so if the text of article 2 field is changed, then update the Table of contents to sections 3-7.


    Screen Shot 2015-01-27 at 12.05.36 PM.png


    When I tested on a single article, it worked.  But now it does not work and I do not know why.


    Here are some properties of the object than my being at the origin of the problems too. If anything sticks?


    Visible box on the table of contents page

    Domain: Type = text field

    Value: Type = Protected (I was cycling through all THE different types, but the only time where it worked, it was the Type of value)


    Invisible box above the first textfield in each section

    Domain: Type = numeric field

    Value: Type = calculated - read-only property of execution: current Page number


    any suggestions? Thank you!

    This has never answered, but I understand on mine.  Figured since it had 66 times, I would like to share what I found.  It was actually an easy fix.

    I added a textfield (set to display the current page number of the page on which it is) at the beginning of each section that appears in the table of contents and set it to always stay with the first line of text in this section as well as the document grew, the page number, in that the section begins will remain correct.  Place to hide it.  In the "binding" tab, I put the name is the same name as the corresponding heading in the table of contents.

    Hope this helps someone who is in my place last year. =)

  • How to make a table to show the movieclips?

    I want a table that takes video clips, a bit like a tile game... I do this thing a little "Badges" on my game, and I want to add with a table, so it makes it a lot easier then adding each of them.

    I want it so that it displays 6 at once, and then you press a button, and it shows the 6. How can I start doing this? Thank you

    This is a really good photo to get the idea (the places are the tiles)

    http://i378.photobucket.com/albums/oo230/Brod8212/PicForTiles.jpg

    use:

    var squareA:Array = ["square1", "square2", etc...];

    var columnNum:Number = 3;

    var xGap:Number = 20;

    var yGap:Number = 20;

    var startX:Number = - 11;

    var startY: Number = - 25;

    for (var i: Number = 0; i<>

    var mc:MovieClip is this.attachMovie (squareA [i], "square" + i, i);.

    XGap = MC._x * (I % columnNum) + startX;

    MC._y = yGap * Math.floor (i/columnNum) + startY;

    }

    p.s. Please mark this thread as answered.

  • Can you make a table for the images?

    I just need an array of unique column for images that I have all my images in PNG 45x150px so I hem all size and such, but is there a way to make it easy to simply place in a table, or what I need to do a bunch of div tags?

    Insert > table

    Choose a table with 1 column and however the number of lines you need.

    If you add more pictures, simply add newTags for them to create new lines.

  • How to make a table of contents reflects the document formatting?

    I use a table of contents for a long document. In the document, some special words - the titles of the texts that I write about - italic. But when they appear in the Table of contents, they are not. Part of the table of contents and problematic subheadings are shown in the attached images. I can do all the headings / subheadings italics, but I don't seem to be able to reformat the individual words, I can find no option for the table of contents to reflect the formatting of the titles themselves. I'm heading to the last resort of manually typing all the senses...

    V4.3 Pages ' 09, or Pages v5.6.1, will resume the paragraph/character in the body of the document style attributes in the generated TOC. To a certain extent, you can customize the table of contents thereafter.

  • Is it better to make several tables of data or a large painting and access as many times?.


    I don't see where you got the 4 dimensions for your table.  I only see 2: channel and sample.

    From what you describe, I would put any information 'support' for a channel in a cluster.  You must have an array of clusters to hold your data support.

  • Makes great table location of memory permanently

    For the transfer of data from 100 M/s, I tried to create a table of 100 M and will pass the pointer of the array to a C program. The C program get the needle table and write to it.

    Just wonder if big Board has permanent memory location. If OS or labview doesnot assign continuous memory to this great picture. There will be an error when the C program tries to write to the table.

    Any suggestion, thank you.

    Arrays always have in contiguous memory. It is a fact, for each programming language, I know, is true for C as well as regards to LabVIEW.

    They got ways to 'emulate' contiguous memory in order to nihilate certain constraints of the system, but those who are most often specific IDE and cannot be shared between different programming languages (or more often with an overload immens). An example of such an approach can be found here (the link works for everyone hope!).

    hope this helps,

    Norbert

Maybe you are looking for

  • Auto boot PXI DMM

    I use NI PXI DMM 4065/4071/4072 with MXI controller to measure the current continuous on my device. I am very sure that PXI DMM are not initialized because the device could not be activated at PC startup unless I opened the DMM front panel and cofigu

  • NO 6356 captured data in real time?

    Buenas tardes the comunidad has NEITHER. Bueno esta are mi segunda pregunta one NOR photos of Lola gracias por the colaboracion, realmente me colaboraron muchisimo en mi pregunta anterior hasta resolverla. Quisiera saber if con tarjeta NI 6356, are e

  • Update Windows SQL Server 2005 Express Edition cannot install KB2463332

    I use Windows XP Professional and I'm unable to install the most recent Windows Update KB2463332 for Windows SQL Server 2005 Express Edition SP4 I am able to download... but when it runs the installation of locks.  Microsoft has released about 7 upda

  • I myself found it impossible to uninstall a program (Spotify)...

    I myself found it impossible to uninstall a program (Spotify)...?

  • Piece of original spare or false display?

    Hello Because of my broken display glass, I would like to fix myself. But I m confused if all spare parts on Ebay or Amazon are Original or not. How can I check if it s Original or not? Thank you Heintz