How to keep account different values of two two-dimensional array

Hello

I need help regarding one of my LabVIEW VI. I have three matrices 2 dimensions, namely Sx, Sy, and P of dimension 4 x 4 of each. I want to do the following calculation:

P(i,j)=[P(i,j+1)+P(i,j-1)+P(i+1,j)+P(i-1,j)]+1/8*[-3*SX(i,j+1)+SX(i,j-1)+2*Sy(i-1,j)-2*Sy(i+1,j)].

For now, you can consider all values of Sx and Sy matrices and matrix P for the first time for all the elements as zero.

I did it in Matlab, but have no idea on how to do this in LabVIEW. Please help me in this regard.

Thanking you!

You can go there.

Tags: NI Software

Similar Questions

  • How to add the full value of two buttons?

    How to add the full value of two buttons (any key) VI and display it in the output text box? I am attaching a sample program, but I know that his evil... Help, please

    Try this

  • How to convert a different value of black color photos

    How to convert a different value of black color photos

    There are many ways to do it. You can open it in Camera Raw and check the box "convert to grayscale".

    Or you can add a B & W adjustment layer in Photoshop:

  • Extend the two-dimensional array

    Hi all

    How can I extend both the axis of a two-dimensional array?
    DECLARE
      TYPE num_array IS TABLE OF VARCHAR2(100);
      TYPE bidim_num_array IS TABLE OF num_array;
      l_array bidim_num_array;
    BEGIN
      ...
    END;
    in order to fill the two-dimensional table as a matrix:
    l_array(1)(1) := ...
    l_array(1)(2) := ...
    l_array(1)(3) := ...
    l_array(2)(1) := ...
    l_array(2)(2) := ...
    l_array(2)(3) := ...
    l_array(3)(1) := ...
    l_array(3)(2) := ...
    l_array(3)(3) := ...
    I don't know the size of the MxN matrix.

    Thanks in advance.

    Manuel Vidigal wrote:

    How can I extend both the axis of a two-dimensional array?

    Just as you would with one-dimensional, just twice - one for each dimension. You will also need to initialize second dimension table whenever you extend first dimension:

    SQL> DECLARE
      2    TYPE num_array IS TABLE OF VARCHAR2(100);
      3    TYPE bidim_num_array IS TABLE OF num_array;
      4    l_array bidim_num_array := bidim_num_array(); -- initialize two-dimensional array (this initializes first dimension only)
      5  BEGIN
      6    l_array.extend; -- extend two-dimensional array
      7    l_array(1) := num_array(); -- initialize second dimention array
      8    l_array(1).extend; -- extend second dimension array (this extends first dimension only)
      9    l_array(1)(1) := 'Row 1, Column1';
     10    l_array(1).extend; -- extend second dimension array
     11    l_array(1)(2) := 'Row 1, Column2';
     12    l_array.extend; -- extend two-dimensional array (this extends first dimension only)
     13    l_array(2) := num_array(); -- initialize second dimention array
     14    l_array(2).extend; -- extend second dimension array
     15    l_array(2)(1) := 'Row 2, Column1';
     16    l_array(2).extend; -- extend second dimension array
     17    l_array(2)(2) := 'Row 2, Column2';
     18    for i in 1..l_array.count loop
     19      for j in 1..l_array(i).count loop
     20        dbms_output.put_line(l_array(i)(j));
     21      end loop;
     22    end loop;
     23  END;
     24  /
    Row 1, Column1
    Row 1, Column2
    Row 2, Column1
    Row 2, Column2
    
    PL/SQL procedure successfully completed.
    
    SQL>  
    

    SY.

  • two-dimensional array

    Hello

    Sorry for this question but I am new to flex.

    How do I declare a two-dimensional array?

    You can do this:

    
    
      
        
      
      
        
        
        
      
    
    

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance - Flex 2 and 3 certified ACE

    www.ChikaraDev.com

    Flex / development, training, AIR and Support Services

  • How do subtract you different values for items in a specific table?

    Hi LabVIEW community.

    I am new to LabVIEW and Im working on my first application. One of my challenges I have problems is to know how to avoid specific values of some elements in a table.

    My application is to measure the distance between sensor and magnet, however the initial distance for each magnet sensor is different. I have converted the tension up to a distance using the Math node for each element and now need to correct these values by subtracting their initial value.

    The source is a table 1 d of DBL64 composed of 32 elements and each of these values must have a different value subtracted.

    for example:

    Element 1 - 5.557

    element 2 - 2.34

    3-7 654 element and so on

    I tried to separate them (index table) and subtract the values of each item and then combine them again. This was not effetive. I need to write these values in a .txt file and also to use them in another calculation.

    I have attached my attempted under VI.

    Any advice would really be apprecieated.

    You don't need to look it. There is a very simple method. Generate a table that contains all your desired offsets.  Then he subtract off the coast.

    This is the VI even with this change:

  • How to keep the input value after click on the back button being the ADF

    Hi expert,

    I have a case currently the adf:

    1. I put 'value' in the Label 1

    2. I click on the next button

    3. I click on the "back" button

    4. the 'value' went from 1 label.

    How to keep the 'value' of 1 tag after I click back, do you have any suggestions?

    Kind regards

    Ricky

    Hello

    Where you store the value? Try to store it in a variable pageFlowScope or a property of the pageFlowScope bean.

    value = "#{pageFlowScope.testVar} '"

    value = "#{pageFlowScope.testBean.testVar} '"

    Kind regards

    Ruben.

  • Starting from two data tables, how do you get the values in two columns using values in a column (values get col. If col. A is not null values and get the pass. B if col. A is null)?

    Two tables provided, how you retrieve the values in two columns using values in a column (the pass get values. If col. A is not null values and get the pass. B if col. A is null)?

    Guessing

    Select nvl (x.col_a, y.col_b) the_column

    from table_1 x,.

    table_2 y

    where x.pk = y.pk

    Concerning

    Etbin

  • Get all the different values in a table - 'or array elements' does not work with I32

    Hello

    I just found out that "array elements or" does not work with a table 1 d of integer values. I didn't expect that.

    I did a semi quick forum search and did not find a pointer to an effective solution. Can someone give me a hint?

    Do not back my initial intention is to list all the values that appear in an array of integers.

    I thought that if I converted the figures for powers of 2 and or I had solved the problem at hand - only to discover that the elements of array does not.

    If someone could propose a different approach, I'd be happy too.

    I should mention that the execution time is a factor here - I need a fast code, but any suggestions are welcome because they could help me get started.

    Best regards Florian

    Hi Florian.

    try this:

    "Function, it seems, the table of GOLD ' is polymorphic (as written in the context-sensitive help), but does not support arrays of I32. At least the error message means just that...

  • How to extract a single dimension of two two-dimensional array

    Hello

    Perhaps this question is too naïve and simple. I have two two-dimensional chart (256 rows and two columns). All I want is to retrieve one of these columns as a dimensional table a separate. It seems to be something very very basic that should cover just about any programming language. However, I couldn't find the right function in the list of functions of table. I don't know I'm missing something very obvious. I tried the Board index, subset of table, table of cluster and reshape the table. None of them is the right function for this. I have used LabVIEW for awhile now, but I can't find a solution to this fundamental problem. Can someone help out me.

    Thank you

    HI -.

    With the function Index Array you tried a number of cabling to the marked entry index (col)?

    See the vi attached for an example.

  • Problem of two-dimensional array

    I have problems assigning values to two dimension table. Here is an example:

    _Global.test = new Array (new Array, new Array);

    for (n = 1; n < = 3; n ++) {}

    _Global.test [n] ["txt"] = n;

    trace (_Global.test [n] ["txt"]);

    }


    Here is the trace output:
    1
    undefined
    undefined

    Can someone please tell me what I'm doing wrong?

    If you want to create a 2d array, which is an array with two elements, with each element of array, that you use:

  • How to display a different value than that of back-end for a quick dashboard data

    Hello Experts,

    We have a command prompt of dashboard for a report that has short values. I need display a full name for the prompt value instead of abbreviated values such as San Francisco SFO, in New York for NYC, etc. Here are the back-end OFS data values, etc. of NYC. Any ideas on how to achieve this?

    You can create a static table and use the column id descriptor in RPD.

    http://www.rittmanmead.com/2010/08/Oracle-BI-EE-11g-handling-double-columns-iddescription-interoperability/

  • How to get a different value of element from page to page process.

    Hi all

    I have a submit after process on page 32 to insert into a table.
    and a 34 page where there is a region that contains on page 32.
    what page 32 get submitted (as well as process) it contains no value for: P34_USER_ID although I'm on page 34 and: P34_USER_ID point of value.

    submit after process on page 32 Type: PL/SQL-> anonymous block have code like...
    ...
    INSERT INTO LETTER_ATTACH (LETTER_ID, FILENAME, MIMETYPE, ATTACHMENT, UPDATE_DATE)
    SELECT: P34_USER_ID,: P32_FILE_INPUT, blob_content, mime_type, SYSDATE
    OF wwv_flow_files
    WHERE NAME =: P32_FILE_INPUT;
    ...

    can not find something wrong...! ?? :(
    Please help me on this matter.


    Roman

    Published by: user13416557 on August 27, 2011 13:48

    Hello

    When you are on page 32, check that it has value on the session state for the point 34 page
    http://download.Oracle.com/docs/CD/E23903_01/doc/doc.41/e21674/concept_ses.htm#sthref100

    Kind regards
    Jari

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

  • with 2 collar and two rows two-dimensional array

    I could not find how to form a matrix 2 x 2 in the old Easter in ActionScript. All bays are only a single line.  How can I change it.

    var myArray:Array = new Array();

    myArray [0] = new Array (val1, val2);

    trace(myArray[0][0]); val1

    trace(myArray[0][1]); val2

    But depending on what you actually trying to do there may be better ways. For example, if you save to x and plotting perhaps.

    myArray [0] = new Point (val1, val2);

    trace(myArray[0].x);

    trace(myArray[0].y);

    Or you can push an object in the table. Or even use a vector...

Maybe you are looking for

  • Trash 1 new message next message does not open automatically

    It used to be, if I had 2 or more new e-mail and I opened the first and then trashed it, the following would open automatically. I have accidentally changed something, because in doing so, he stopped. I use Mac 10.8.5 How can I fix it? TIA Dan

  • password protect the bookmark or bookmark folder

    Can a bookmark or favorite folder password protected and if so, how. Thank you

  • Disabled USB when you run the WD My Passport Ultra software

    I use a WD My Passport Ultra 1 TB with Windows 7 X 64, when I run the WD software all USB ports and paved touch on my laptop would deactivate but jut the keyboard. I made all possible options to solve it, but... I have removed the app, re installed t

  • YouTube stops, does not load

    Hi all, I just reinstalled Windows 7 home Premium 64-bit. I use Chrome (although this is true for IE too) and when I try to watch YouTube videos that they may not load at all, they might start after up to a minute, they can play 25-30 seconds before

  • In a table will not be updated

    I have a page in an APEX application that contains two forms.  Top form is a series of fields that the user can modify at will.  The lower form is a tabular form that has a SQL statement containing a where clause clause on a field of the top screen.