To refer to a table control FPGA

I develop a cRIO application that includes a table of 23 controls in the FPGA.  The generator of FPGA Interface C API them defined as a name and size.

typedef enum
{
NiFpga_ControlArrayU32_Setpoints = 0 x 8118,
} NiFpga_ControlArrayU32;

typedef enum
{
NiFpga_ControlArrayU32Size_Setpoints = 24,
} NiFpga_ControlArrayU32Size;

How do I référenceriez the 15th point, as NiFpga_ControlArrayU32 [15] or as an offset to 0 x 8118?

Hi Paul_Knight,

When the C headers are generated, there should be one called NiFPGA.h.

There is a function within this header to read a U32 matrix. The function is called NiFpga_ReadArrayU32. This is a documentation on the different functions of reading table.

http://zone.NI.com/reference/en-XX/help/372928G-01/CAPI/functions_readarray/

You should be able to read the values in the table and store them in an array in C. You can then access them as you would normally in your program C. I hope this helps!

Tags: NI Software

Similar Questions

  • CVI suggested help update on 'programming with the Table controls.

    Hello

    May I suggest adding a sentence to the chapter 'Programming with the Table controls', 'Creation and deletion of cells' section help of CVI.

    After the sentence "use the following functions to control the number of rows in a table control...". "I would like to add a suspicion that the number of lines is also affected by (programmatically) adjustment of the height of the table.

    Now that I've discovered, it's obvious ;-)

    Hi Wolfgang,.

    I think you might be misunderstanding this sentence in aid. It does not refer to the size of the table, in regard to the number of lines go in the table. It is in fact the number of real lines exist in the table. And the total number of rows in the table is absolutely not affected by the height of the table.

    Luis

  • Table control tab and size

    Hello everyone,

    I use control table for the first time and have problems in the following areas:

    1 when I start to insert values in cells, I could go and insert values with unlimited seemining the number of rows. Is there a way to limit the number of available lines in the table for a specific number? I tried to use the NumRow property, and apparently it is more useful to indicate the number of lines to display in the table control.

    2. when I hit the tab key, the focus shift from one cell to another, which is good, except that it does not jump to the last column. He goes from cell 4 to 5, 5 to 6 each time I type the tab key. But when he is in the 6 cell and I type the tab key, it climbs to 8 cells, instead of cell 7, which is what I expected it to do. Is there a way to fix this? See the image below.

    Thanks for your help.

    Yours,

    chati

    Hello

    Take a look at this little example. I hope this helps.

    Best regards

    Fabian

  • Issues related to the cell property node: Position Active for a table control

    Hello

    What determines the Position of the Active cell in a table control property node? I have this in my code and display the value of an indicator on front panel. The displayed value is always set to 0,0. Help for the property node says it's "read - only" so what defines the Position of the Active cell in a table control value?

    Define you the active cell with a property node.  Once you select an active cell, you can do this cell and single cell-specific things, things like the background value color.

  • How can I change the "right click" menu for a table control?

    Hello

    How can I change the "right-click menu" of a table control. I would like to be able to remove the ability to add or remove columns and maybe more selections. I want to keep the possibility of

    Add or remove lines

    Right-click on your table.  Then go to advanced-> DURATION Shortcut Menu-> Edit.

  • Programmatically set the size of a table control (not the number of col and lines)

    Hi all

    I am trying to create a little VI, in which the user selects the number of columns and rows in a table, and after clicking on a button 'OK', the table control is displayed in the control panel (to be filled in by the user). To do this, I use the nodes property to the number of columns and lines. I have no problem with that.

    However, I want to "limit" the size of the control table (control of himself, not the dimensions of the table) and make use of vertical and horizontal table, the scroll bars. I want to avoid it is that passes type 100 user and 100 lines and appears a huge table control.

    I could tho this by using an array instead of an array, via the node property "size", but I would use an insead table a table.

    Thank you very much

    Daniel

    With a table control, you cannot set the display size to be anything other than a multiple of a complete cell.

    If you are limited to a number of lines and columns.  If you want to resize with more control you also need to resize the control within the Bay, accessible via the property 'picture Element '.

    Another option (but seems huge exaggerated) is to place your table in a secondary and set the size of the secondary to the size you need and enable scrollbars for her.  It is not an option that I would choose but if it helps...

    Have it, your description of your user interface sounds not very intuitive.  How the user knows at any time exactly what cell they access if they have to scroll backwards?

  • GPF using the Table control

    Hello world

    We use a table control to display the log files. Each row of the table represents a log file entry. In addition to that we have put in place

    Some filter chopsticks (string tonalite) to speed up filtering. This means that only the entries corresponding to these substrings are shown. So whenever the filter options

    changed to renew the contents of the table.

    This is done by DeleteTableRows, looking for entries to display, InsertTableRows and SetTableCellRangeVals.

    It works very well.

    But if we remove all the contents of the table (caused by the filter options) and then hit a button (even if the focus is on the table) you get a GPF on ProcessSystemEvents.

    This occurs only after inserting a large number of rows in the table before deleting all the. For example, a table with 5000 x 2 (rowsxcolumns) reduced to 0x2.

    1 create a table with 5000 x 2 (rows x columns) control elements.

    2 remove all lines

    3. press tab until the control panel to get the focus.

    4. hit Enter for example

    => Crash

    Someone has an idea? We have already 'dimmed' CTRL, but this is not enough to avoid that the focus on the table by pressing the tab key. So, which leads to an accident as well.

    Thanks for the help

    Philipp

    Yes, it is a known issue (396240), although it is not actually on time last updated known issues. Unfortunately there is no good solution, other than just by waiting for a version corrected to be released, which should happen soon.

    Luis

  • The table control does not correctly...!

    Hello

    I put a table on the front of my application control. The problem is when I load the file containing the data on it, the data gets overlaps that existed previously in the table control. This problem remains with 'reset default' invoke node as well. I noticed that this problem persists in some PC while on others, it works well. Is there a permanent solution for this?

    Hi mnx,.

    What happens when you write a matrix constant empty in one of the table instead of "Reset default"?

  • How do I click on a cell in a table control and display the value in a string?

    What I want to do is click on a cell in a table control and have the value of the cell in an indicator of the chain. Cell that ever I click on, I wish that the value to be displayed in the indicator.

    Thank you!

    Use the property "Change Position".

  • Get the current index value of the table control

    I have a table control 1 d on a panel that contains a value of temperature curve that I send to a temperature controller. The values in the table are not unique, because for example 40.5 degrees in the table could represent 40.5 degrees on the cycles of cooling or heating. I could have severat heating/cooling cycles programmed into the table. I would like a way to read the array index of the currently displayed item in the array in the up/down control of index on the left of the table control. I could then run curves partial temperature easily by neutrophilia a starting point on the curve in the table control.

    I don't see a property that I can use to get this index value. Anyone have any ideas?

    Thank you

    J

    Use the property 'index values. It will be the first item of the output of a 1-d array.

  • the table control

    Buenos dias,

    Estoy utilizando datos event Structure en UN para put a control array. In the case of the mouse towards the low selecciono fila in the that wants to start a write y borro los datos can fila to esa en haber, despues voy introduciendo data in case key down? y convirtiendolos uppercase. Paso una fila a otra mediante the tecla return.

    En problema esta en una vez escrita TR the table return a revisar los datos, fila seleccionada con el raton is borra como debe hacer. Pasar al has the following fila don't return con los datos than habia is only became pero al write again no be borran y me appears los antiguos mas los nuevos datos.

    How puedo hacer what borren los datos al volver a write sin tener as suprimir each of characters?

    A greeting

    Hello

    I can solve my problem using Listbox.

    Here is an example of how you can do.

    Thanks for the help

  • Remove the table for a photo table control framework

    Hello

    I need to create an array of 2D images. Due to the large amount of elements in the array, the width of the image is reduced to a minimum. However there are still a considerable gap between the 2 adjacent elements in the table (see the attached example), which is caused by the picture in the image control.

    I tried to affect the color of transparent photo frame, but even if it is invisible, it is still there. I tried to customize the control too, but I couldn't find a way to remove the framework (for classic and modern styles).

    (BTW, for the control of classical style, there is an option without color box control framework, but no option for 2D image control.) I need model/photos inside the element of control 2D image, so simple color 1 color box is not enough)

    Could someone help to suggest a way to remove the frame and optimize the density of space in the table? Thank you much in advance.

    PJI

    Hello, PJI,.

    You should be able to define the lower field in the area of the image of the control.

    -Right click Control and choose "Advanced Properties"-> "Customize.."

    -To the editor change order to 'Edit Mode'

    -from the menu, click on 'Window'-> 'display the parts.

    -In the part window, select the frame

    -set new values for top, left, height, and width, so that the image is behind the area of the photo

    I hope this helps.

    UliB

  • Intertwining of the tables on FPGA

    Hello

    I am trying to interleave 1 3 tables for writing a FIFO DMA on an FPGA, but I can't make it work properly. When I try 2 1 tables it of ok, but with 3 elements are not properly interlaced and the result is that all 1 3 bays are mixed up.

    I tried to use the interleave with 3 entrances and gives the mixed result, and I also tried to striping and striping 2 tables then the 3rd in this table. It works better that at least I get 2 tables properly interlaced, but the 3rd one is missing. For the test I used 3 sine waves each of a different magnitude, but the same frequency, using the input function 3 the result is a sine wave in a sine wave. 2, interlacing and then the 3rd in this table are reflected in three waveforms good but table 2 and 3 are identical.

    According to the help, it is possible to use the interleave on an FPGA at the entrance and the results are tables 1 d, which combines 3 1 the tables should be, I think...?

    I tested the service in a standard vi and it worked fine so the question is of course to the fact it's on an FPGA, but this is because of the FIFO, the function interleave or something else?

    The material is a 7856R if that makes a difference.

    See you soon,.

    Darren.


  • Export the names of all the element tree for table control

    I want to export items of all my tree control in a table 2D channels so I can use the data in another application.  How can I do this programmatically?  Do I have to iterate over the elements or y at - it an easy trick?

    Thanks, I guess I should therefore analyse through the tree with a control program complex also.

  • misalignment of the separator of columns in the table controls

    Hello

    I'll use a table for the first time control; This is why I started watching the sample programs. In "colview", I realized that the column separator is not properly aligned in the column heading, it is shifted to the right a few pixels; looking for the list of known problem I did find an entry, I dared to post here

    See the figure below:

    Thank you! (Via CVI2010)

    Thanks for the report of Wolfgang.  I filed a bug with the ID 303721.

    NickB

    National Instruments

Maybe you are looking for