using the table grid

Hi all

I have a 2D array of 8-bit binary data.

I want to add data to a table and change the color of each cell according to the values of data in the following way
If any bit of the 8-bit data is '1' the cell must be red otherwise the cell will be green.

is one of the necessary additional options

I want to show the Red or green in the main of the front pane. By clicking on this grid in particular, the 8-bit value should appear in a new window.

Help, please.
M a newbie to Labview.

Thanks in advance.

ni4me wrote:

Hello

I am able to view the results in the grid

But I'm stuck to call the find.vi to get the details of a particular cell when you press the button «Get the details»

Help, please

First of all, you need to implement a design that allows the vi to terminate without having to press the button abandon.

Second, if you do not wrap the structure of the event in a while loop it will run only once, probably not what you want.

For details of the table cell that has been the press, you need to use the mouse pressed event Table. Create a Table invoke node and select the Point in the row column method. The release of details of the data node event left thread entry point of the invoke node. If ungroup you the exit CellPosition of the invoke node, you will get the values of line and column of the Table cell that was pressed. Feed these values to your Find vi.

The vi Find flashes only open if we leave it as it is. You need to change to make it work until the user perform an action.

Ben64

Tags: NI Software

Similar Questions

  • Can you attribute programmatically size when you use the table in the Cluster service cluster

    I use the table of the Cluster service.  The only way I know to the size of the cluster is to right click on the function and set the Cluster size.  But what happens if the length of my table changes?  Is there a way to make the cluster size is the number of elements in the table?  Seems like labview should do this automatically at run time.  There may be some nodes of property I don't know.

    I tried the SQL statements, but it always boils down to having to know the number of columns is in the database prior to execution.

    What I did to generate the object to be a cluster to match database fields.  My recordset is an array of objects.  Then I a vi member to build a recordset from the database and another Member vi to retrieve an array of clusters of the recordset object.  If the database changes, I have to change the subject and these two vi.  All the other Subvi call these two for the manipulation of data.  No other sub - VI have bundle and ungroup functions in them, only the vi of two members.  Thus a change in the database requires a change of control and two vi.  Not too bad.

    (I'm tooting my Horn in choosing me as accetped solution provider.  I learned this bad habit of others here on the forum.  )

  • Can I get the total number of records that meet the conditions of a query using the Table API?

    Hello

    A < row > TableIterator is returned when I ask operations using the index of tables. If I want to get the total number of records, I count one by one using the returned TableIterator < row >.


    Can I get the total number of records directly meets the conditions of the query?

    I can get the total number of records directly the request of the meeting of the conditions of CLI using the command Global table - name tableName - count - index index-name-field fieldName - start startValue-end endValue.

    Can I get the same results using the Table API?

    I used MongoDB and NoSQL Oracle for about a year. According to the experience of the use of these dbs, I think mongoDB querying interface is powerful. In the contras, the query interface is relatively simple, which results is a lot of work that is usually a long time in the client side.

    Hello

    Counting records in a database is a tricky thing.  Any system that gives you an accurate count of the records will have a hotspot of concurrency on updates, namely the place where the counting is maintained.  Such a count is a problem of performance in addition to competitive access problem.   The problem is even more difficult in a system widely distributed such a NoSQL database.

    The CLI has overall command that counts, but does so by brutal force - iterate keys that correspond to the parameters of the operation.  This is how you must do this within the API.  There is not a lot of code, but you have to write.  You certainly want to use TableIterator TableAPI.tableKeysIterator (), because a key iteration is significantly faster than the iteration of lines.  Just one iteration and count.

    If you use TableAPI.multiGet () and a key with a touch of brightness full then, in fact, count the results as they are returned in a single piece (a list).

    Kind regards

    George

  • Using the CF grid, need to comment on the creation of editable columns.

    I have an attempt at creating a page of recipes,

    Issue 1:

    Columns will have the days of the month - don't know how to do this without hard coding in it, but I would like to somehow fill it dynamically.

    The data will be from a database:

    https://bubbl.us/view/2788d1/5195a9/25F4oONgeDEtU & r = 1719403621 /.

    2nd question:

    How can I match the entry in the database with the appropriate column.

    There might be another way to make who I am open to, can't seem to wrap my head around this issue.

    Any contribution is appreciated.

    Everyone is away from the Coldfusion user as cfgrid controls Interfaces, as they are dated. Use the editable grids provided by Javascript libraries, for example, Slickgrid.

  • How to use the OEM grid control to find databases, not in archivelog mode?

    Hello

    We have currently 130 databases, say, if I want to come off as any database currently NOT in archivelog mode, is there a quick way to find out?

    using the OEM grid control

    or

    a similar trick,

    but really do not need to manually check each database.

    Thank you very much!

    This query works in 12 c - please run as SYSMAN.
    It is based on undocumented assumptions well + (AND key_value = "NOARCHIVELOG") +.

      SELECT *
      FROM SYSMAN.MGMT$GROUP_DERIVED_MEMBERSHIPS O ,
        SYSMAN.MGMT$TARGET T ,
        sysman.MGMT$AVAILABILITY_CURRENT st
      WHERE
      o.member_target_type     IN ('oracle_database', 'rac_database')
      AND ( t.target_type           ='rac_database'
      OR (t.target_type             ='oracle_database'
      AND t.type_qualifier3        != 'RACINST'))
      AND o. member_target_guid     = t.target_guid
      AND t.target_guid             = st.target_guid
      AND st.availability_status    = 'Target Up'
      AND ( EXISTS
        (SELECT *
        FROM sysman.mgmt$metric_current i
        WHERE I.TARGET_GUID = O.MEMBER_TARGET_GUID
        AND metric_name     = 'archFull'
        AND Metric_Column   = 'archTotal'
        AND metric_label    = 'Archive Area'
        AND column_label    = 'Total Archive Area (KB)'
        AND key_value       = 'NOARCHIVELOG'
        ));
    

    Another way to achieve the goal is to push the extended parameters (SELECT LOG_MODE FROM V$ DATABASE) on each DB and monitor the values they return to the repository. This is an example for a (slightly) different problem - http://iiotzov.wordpress.com/2012/08/08/how-to-use-the-new-oem-12c-metric-extensions-to-enforce-enterprise-wide-custom-policies.

    OEM repository has many other uses grand-http://iiotzov.files.wordpress.com/2012/05/oem-repository-a-second-look.doc, http://iiotzov.files.wordpress.com/2011/08/iotzov_oem_repository.pdf

    Lordane Iotzov
    http://iiotzov.WordPress.com/

  • Display several values on the front using the table

    For example, if I enter "10" for number of datapoints, I want to see 10 hexadecimal and binary all values in a column. At present, only 1 value appears and erasing all of the previous values

    Thank you!

    You do not use a shift register to store the values in the table between the fo the loop iterations For.

    It is a fundamental concept of LabVIEW.

    I recommend you watch the LabVIEW tutorials online
    LabVIEW Introduction course - 3 hours
    LabVIEW Introduction course - 6 hours

  • 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

  • Use the table 2D input and output dll

    Hi, I have a problem with table 2D used with library funtion call to get the table of DLL.

    uint16_t is defined as unsigned short, who is unsigned 16-bit in labwindows.

    In the following two codes origFrame.height is 1024, 1280 origFrame.width.

    QCam_Err DLLEXPORT FrameGrab(void* handle, uint16_t frame2D[1024][1280]) {}

    uint16_t * p;
    p = (uint16_t *) origFrame.pBuffer;
    Copy each pixel of the 2D array
    for (int i = 0; i)
    for (int j = 0; j)
    frame2D [i] [j] = * p ++;
    }
    }
    }

    2D array is passed to the DLL in the form table 1 d, I also tried table 1 d below but to get the same numerical results.

    {QCam_Err DLLEXPORT FrameGrab(void* handle, uint16_t *frame1D)
    uint16_t * p;
    p = (uint16_t *) origFrame.pBuffer;
    for (int i = 0; i)<(origFrame.height*origFrame.width);>
    frame1D [i] = * p ++;
    }
    }

    Both of these methods gives me the same numeric result with regard to the numbers in the output array.

    Something interesting is that the output array has the right size, but all the numbers in the table are about ~ 40, while my expected in all values table is 60.  I know, because I use this to get values of a pixel in a camera and I know that the values of the pixels.  I also used the same code in LabwindowsCVI as a normal program built as exe.  Everything works fine and I get my expected values.  So apparently miss me something here, when I changed the settings to make dll.

    What I've done wrong?  Thank you very much for your help!

    Best,

    Charles


  • Use the table of numbers as "item select to compare.

    Greetings,

    I'm curious to know how to use an array of numbers as value in the tab select edit ideally my "case" would execute an expression "Contains(Locals.arrayofnumbers,0)."

    Basic principle:

    1 Labview VI launches with ListBox containing all tests (multiple selections enabled)

    OUTPUT is an array of I32.

    2 I32 table is attributed to Locals.arrayofnumbers

    3 Locals.arrayofnumbers is used with the element select 'compare '.

    4. each CASE has the statement... "next" Contains(Locals.arrayofnumbers,#)

    * each case would have 1 sequence to run *.

    Currently TS throws an error prompt indicating that the Select step expected number, that is the table of numbers.

    I already found a solution quick and pretty clean by instituiting just a condition prior to each sequence and captured to eliminate flow control all together. But I prefer not to use prerequisites for global flow control if possible and use controls to rate as expected.

    I have used TS help, but don't quite give me what I needed. Maybe I didn't use the correct search string. The forum here, is the same. I'm sure that the answer may be there, but maybe I'm using the wrong search string.

    Thanks in advance for any help.

    To SUM UP: User selects (via LabVIEW listbox) 1 - n tests to be run (output table I32). I32 table is used for the selection of the case by evaluating "contains (Local.arrayofnumbers, 0).

    Kind regards

    chazzzmd78

    Honestly, a Select System / box is the wrong choice for what you do.  I'd go with the prerequisite options.  It reduces the number of steps of TestStand.

    In your case you just to see whether something exists or not in a table.  Ideally, you will use the Select operations / box when you have 1 selected option of many.  I suppose you're a loop around the case select so that you can run all the tests so that your code looks something like this:

    For N (N is the number of tests they have selected)

    Select Locals.ArrayOfNumbers

    Briefcase (Locals.ArrayOfNumbers, 1).

    Run test 1

    Briefcase (Locals.ArrayOfNumbers, 2)

    Run the test 2

    Select close

    Closing loop

    If you want to use the Select option / box correctly I would like this:

    Item ForEach in Locals.ArrayOfNumbers (assign the item being Locals.i)

    Select Locals.i

    Case 1

    Run test 1

    Case 2

    Run the test 2

    Select close

    Close ForEach

    I hope that makes more sense.  If you have any questions let me know.

    Kind regards

  • cluster using the table

    I am relatively new to the use of clusters for this purpose.

    Is there a way to try to do what I've shown in the clip below?

    The bulit clustered to table isn't really any try because then I have to index or use the subset of the array to get the appropriate filepaths or visa sessions.

    what you have now is fine if you have more than five elements, and you don't want to extract some

  • How can I resize a table directly (without using the table to remodel)?

    Hello world

    I have a porgam in which I use a table as a command (with specific values that goes from the user before running the program). By mistake at the beginning, I created a table of 4 dimension (for example), but I didn't because I was showing only the first 3 values (not to expand the table to 4 or more). I would now like to change the size of the array of 4-3. I don't seem to be able to find an option (right click on the table) which allows me to do so directly. I don't want to use the icon "reshape the table", because it is not what I want to do. I hope I am clear enough.

    Thanks for any help,

    Kind regards

    Marc

    • Right click on the additional array element, then... Select 'delete data operations.
    • Now go to the menu bar and not "current default values edit..make'
    • Save the VI.
  • Create a view using the table

    Hi all

    I am beginner in Oracle.

    I have a two-column table that I use to create a view documents/statement once it meets the qualification.

    The table has fields. 1 number and 2. Group. If there is more than 3 records found on this table with the same NUMBER and the GROUP he should create this table view.

    Thank you

    Pramod Devkate

    The training is therefore two lines for a ticket and the agent. When the third row is added, create a line in the summary table. Later a fourth line is added to the table of training for this ticket and the agent, but we do not update the line in the summary table. We only touch the summary table when the third row is added to the training table, then it is only updated by the application. Very well

    INSERT INTO summary (ticket, agent, total_travel, total_mtts)

    Select ticket agent, sum (travel), sum (mtts)

    training

    where (ticket, agent) not in

    (select the ticket agent summary)

    Group ticket, agent

    having count (*) > 2.

    This inserts in the table only notes and agent ID that do not exist already.

  • How to find the interface using the table name target

    Hi friends,

    Whether it's with the help of the name of the target table, it is possible to find the name of the interface that invokes this target in ODI 11.1.1.7 table.

    Thanks in advance.

    Kind regards

    Saro

    Highlight the data in the browser store, expand its sub-tree, there is a node "filled in", under the node, it lists all the data stores that are used as sources for the current data store

    then expand "used by"-> interfaces, it will display all interfaces include the current data store (but maybe the current data store is used as a source)

    That's all you can get user interface, otherwise I guess you can use the SDK.

  • Using the baseline grid and 'space after' for formatting

    I use InDesign CC on a MacBook Pro of the retina. I'm designing a document and you want to use a reference grid to align the text. I would like also to use the option "space after" in the definition of a paragraph style. I use the type of 10 points on the line spacing by 15 points. "Space after" is defined as 7.5 points.

    If I try to apply both database grid orientation and the specification of "space after", I basically lose my pt 7.5 defined "space after" a lot more space because the wells of the first line of the following paragraph to the reference grid line below. I find myself essentially with 22.5 pt instead of 7.5 pt.

    These two incompatible functions or y at - there a way around that I don't know?

    Thanks for any advice.

    There is no way around it. Best is to calculate your different leading.

    space before and space after values so that everything falls on a

    base line. In this way you avoid having to rely on "Align on the baseline." You

    can also turn on "skip dragging ' in Preferences > Composition if

    you have graphics with dressing in them.

  • You can use the table of exception when you activate a FK constraint?

    Anyone know if its possible to use the exception table when you activate a FK constraint? I know that it works to allow a first key constraint, but have not been able to operate to allow a FK constraint. BTW, we use Oracle 11 GR 2.

    Works for me.

    SQL> create table exceptions
      2  (row_id          UROWID
      3  ,owner           VARCHAR2(30)
      4  ,table_name      VARCHAR2(30)
      5  ,constraint_name VARCHAR2(30));
    
    Table created.
    
    SQL> create table t1
      2  (col1 number not null);
    
    Table created.
    
    SQL> insert into t1 values (1);
    
    1 row created.
    
    SQL> insert into t1 values (2);
    
    1 row created.
    
    SQL> insert into t1 values (1);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> alter table t1 add constraint pk_t1 primary key (col1) exceptions into exceptions;
    alter table t1 add constraint pk_t1 primary key (col1) exceptions into exceptions
                                  *
    ERROR at line 1:
    ORA-02437: cannot validate (RIMS.PK_T1) - primary key violated
    
    SQL> select * from exceptions;
    
    ROW_ID                         OWNER    TABLE_NA CONSTRAINT_NAME
    ------------------------------ -------- -------- ------------------------------
    AAB5jpAAWAAH2XTAAC             RIMS     T1       PK_T1
    AAB5jpAAWAAH2XTAAA             RIMS     T1       PK_T1
    
    SQL> delete from t1 where rowid = 'AAB5jpAAWAAH2XTAAC';
    
    1 row deleted.
    
    SQL> delete from exceptions;
    
    2 rows deleted.
    
    SQL> alter table t1 add constraint pk_t1 primary key (col1) exceptions into exceptions;
    
    Table altered.
    
    SQL> select * from exceptions;
    
    no rows selected
    
    SQL> create table t2
      2  (col1 number);
    
    Table created.
    
    SQL> insert into t2 values (1);
    
    1 row created.
    
    SQL> insert into t2 values (2);
    
    1 row created.
    
    SQL> insert into t2 values (3);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> alter table t2 add constraint fk_t2 foreign key (col1) references t1 (col1) exceptions into exceptions;
    alter table t2 add constraint fk_t2 foreign key (col1) references t1 (col1) exceptions into exceptions
                                  *
    ERROR at line 1:
    ORA-02298: cannot validate (RIMS.FK_T2) - parent keys not found
    
    SQL> select * from exceptions;
    
    ROW_ID                         OWNER    TABLE_NA CONSTRAINT_NAME
    ------------------------------ -------- -------- ------------------------------
    AAB5jsAAWAAIP8rAAC             RIMS     T2       FK_T2
    
    SQL> select * from t2 where rowid = 'AAB5jsAAWAAIP8rAAC';
    
          COL1
    ----------
             3
    
    SQL> 
    

Maybe you are looking for