XTABLE - I want to boot the XTABLE values

Hello

I used the TABLE object in a DIALOGUE SOUTH 11 DiAdem box to display values calculated at the user.  Which works very well.

Now, my boss has asked me to set the color of the cells that contain values that are out of specification, to RED.

I don't think I can do this with the purpose of the TABLE, but I discovered the XTABLE object that seems to offer the individual to set cell properties.

In theory, this object XTABLE seems very useful, unfortunately, I was able to discover from the help file, how to set the values in the cells running. I can put an entire column of cells on the same value using the example EventColCtrlPreSet (Col, ByRef, IsInputCell cell), but how do I set up each individual cell to a different value by programming?

Please can help you, as trial and error makes me nowhere.

Thanks in advance

Phil

Hi Phil!

If you switch from TABLE XTABLE you must understand the different aproach full for the same task in the two controls. If you use the TABLE you must fill it with content. XTABLE instead will be asked for each value of the cell in an event. Simply set the number of lines in your code where you fill the TABLE. In the case of "EventValGet", you must use the numbers of rows/columns to the address of your data. The XTABLE will call the event for the visible cells. If you understand this, you can take a look at the example to understand how it works.

BTW: XTABLE could be designated as a "virtual Table".

Matthias

Tags: NI Software

Similar Questions

  • [Labview] I want to get the average value in each new 100 samples.

    Hello. I'm Sophie.

    I'm studying Labview for my research.

    For me, the sampling frequency is 125KHz.

    I want to get the average value in each new 100 samples.

    Therefore, I want to get an average value of 1 ~ 100th samples and store this average value. Call assets(1).

    Then, I want to get an average of 101 ~ 200th samples and store this means value, call moyen2.

    .

    .

    .

    .

    I don't know how me I want.

    Thank you

    Sophie.

  • How to find duplicates of a field value? For example - in a field, I have values like {123,345,346,123}, now I want to remove the duplicate value in the field so that my output looks like {123,345,346}

    How to find duplicates of a field value? For example - in a field, I have values like {123,345,346,123}, now I want to remove the duplicate value in the field so that my output looks like {123,345,346}

    If it's an array you want to deduplicate then here is a script [for use in the Script Processor] I prepared earlier:

    var result = new Array();

    var added = new Object();

    If (input1 [0]! = null)

    {

    for (var i = 0; i)< input1[0].length;="">

    {

    var point = input1 [0] [i];

    If (! added [item])

    {

    added [item] = 1;

    result [result. Length] = item;

    }

    }

    }

    Output 1 = result;

    Kind regards

    Nick

  • Tile performance - I want to set the maximum value to 100%

    Hello

    I'm running a question on the slab of the Performance.   I'm hungry when I'm adding percentages and rolling up to a tile of unique performance.  If the point x: 11%, Y: point 19%, point 24% Z:... etc.  However, when I add all the elements together, sometimes I'll get 101% which, in our profession, the rule, not possible.    Is there a way to force the maximum allowed be 100%?  I would like a method to implement logic that says: when summarizes all the elements, if the value is greater than 100, make the value of 100.

    I know that this sometimes rounding errors on individual items, but it is acceptable.  I'm looking for a way change the tile of the performance instead.

    Thank you

    Figured it out.  For future reference, I added a case statement for the sum... If the sum ([the index]) > 100 then 100.  Otherwise, use the sum ([the index]) essentially, go to edit the formula in the criteria and change now.

  • Re: Satellite NB305 - restore the default value of my internet browser

    I don't know where to post this request.
    Took forever to find words 'post new topic' and only clicking like to respond to a thread.

    I want to return to the default value of my internet browser.
    I know where to do it. Stupid question, but I can not display OK or apply in the dialog box.

    Does not show, you use a smaller font, or try to move the dialog box does not work.
    I actually want to google by default but tried in vain several times.
    Says I do not have seplt correctly but I http: identical www.google.com/ appears on my desktopPC.

    Question 2: Bought this in the United Kingdom but I live in Australia.
    How do I set up to reflect the Aussie not UK? Guess I have now will not kknow how to find answers to this.

    Also when I log in here the grey line saying profile connection House is in middle of screen so hard ro read the words above and below.

    > I want to restore the default value of my internet browser.
    What internet browser do you use? What is MS Internet Explorer?
    Internet Explorer settings can be defined by default very easily.
    Go to tools-> Internet Options
    You will find different tabs as general, security, confidentiality, etc.
    Visit the unique tabs and you will find Reset buttons or omissions.

    In addition, you can change the display
    Here, you should check out Style-> default Style

    > Question 2: bought this in the United Kingdom, but I live in Australia.
    > How do I set up to reflect the Aussie not UK? Guess now, I don't know how to find answers to this.

    I'm afraid, that I have no idea what you want to change it...

  • There is a special token that I can put in a column of the CSV file recovery channel which implies approval of the current value?

    Versistand version is 2013 sp1.

    I use stimulus CSV expressions in my sequence in real time and want a channel to keep its value current (last) until a certain time. Is there a way to do this?

    Stimulation CSV file example:

    timestamp, chan1, chan2

    0,0,

    10, 1,

    20,1,5

    30,2,10

    In this example, chan2 would retain its current value until the timestamp 20.

    Is it possible to implement this feature?

    Kind regards

    Rick Howard

    Thank you! It is a valuable feedback. I can't think of a way to do natively with the functionality of reading CSV for sequences in real time. Some thoughts on how this can be done:

    1. create your own utility to sequences of script based on a CSV file in real-time. Extend the functionality of having a special marker in a cell which designates not only to change the value for the channel as timestep. Do not start from scratch. This tool open source and this one the two script of sequences in real time and stimulation of reading profiles based on data sets (although in different ways).

    2. with the help of software without insertion to the fault of the string value that you want to keep the initial value for the first X seconds of reading the CSV file. For example, you could play another sequence with your CSV file at fault the channel at its current value so that reading CSV does not replace the value.

  • Get the highest value of acquired data

    Hi, how can I get the highest value of data according to data acquired using the accelerometer ADXL345 and LINX in LabVIEW?

    I want the highest data to be shown with a flag. However, the data being shown are always the last acquired data. My problem would be what happens if the highest data somewhere at the beginning or in the middle of all the acquired data? How to display the highest data using an indicator?

    Here's a look at my front, block diagram, and sample of the acquired data.

    From the front panel, the basic indicator of detected last poster 0.1929 (amplitude), which is the last value. But looking at the Excel file, the highest data are data which is 0.2013. The highest, I want to be displayed on the indicator not the last value. How do I do that?

    Thank you!

    I gave you an example of what you need to do - it is not okay if wire you the new value and the old value for the X or Y - it will always return the maximum of the two values so the order doesn't matter. It would have been more useful if you had posted what you tried the max & min. You need a registry to offset inside the loop (like I did with my while loop). If you only want to display the maximum value for each iteration of the loop for external, you must initialize the shift register by plugging a 0 to its terminal on the left. A shift register her pinned the value of the last run - probably not what you want here.

  • Calculate the average value

    the data that I measured changed quickly, so I want to get the average value of the data

    Don't tell me to use mean.vi, I already know.

    and I got an idea that is to add data in a table every time, then the sum of all value data and take the line of result by the number of items

    but I don't know how to do this, anyone can build a simple vi to show me? Thank you

    I enclose my vi that uses mean.vi to the average value of calc, you can remove it and help in your path, thank you!

    Do not add your data in a table that grows forever. What a waste of RAM. To calculate the average, you only need to sum and N.

    Here is a simple code to accumulate the sum of the values in a shift register and divide by the number of add operations.

  • How can you get the index of an enum rather than the enumeration value?

    IM new to labview and I'm trying to read the index of an enum object to the string value has the enum.

    that is for example an enumeration of the values 1, 5, 10, 20 with markings 0,1,2,3 I want to take the index value to use in a code as a string.

    in order to make the values of 0,1,2,3

    Are there simple solutions?

    See you soon,.

    JimJamBot

    It is already a number.

    Try to use a "I32" or similar in the digital palette.

    Ben

  • HELP Please: compare timestamps with excel and make the corresponding value in the next column

    Hello

    I have attached the program I did up to now and the txt file required by the program.

    I want to compare the timestamp given by me at the beginning of the program, and when it is true, I want to take the corresponding value of nearby and use for the calculation.

    I am able to compare the time but I do not know how to take the corresponding '0' or '1' value of the file.

    I'm a beginner to labview. It can be simple, but I couldn't understand it

    Kindly help.

    Thanks in advance

    Arun

    This?  If you get a match, find a true Boolean 1 d array and use the index of the element to get the data of the next column.

  • Find the minimum value of the table in time...

    Firstly that it is not "find the min value in the table.

    It is:

    I have a table that changes its values at each iteration, and I want to compare the new values with previous values and make a new array with the minimum values...

    In C++, it would be like this:

    int main() {}

    int array [8];

    int min [8];

    int i;

    for (i = 0; i<>

    min [i] = 1000000; Initialize minimum table with a high value

    }

    {while (1)}

    Array = update_array ();

    for (i = 0; i<>

    If (array [i]<>

    min [i] = array [i];

    }

    }

    do things...

    }

    return 0;

    }

    IM new to labview and it always confuses me a lot...

    Thanks in advance.

    Using the function Max & Min regular (not table Max & min as you know) with tables and a good will of employment registry change.  Max Min &, as most of the digital functions, is polymorphic and works witt tables as well as scalars.

    Lynn

  • Change the default value for the field selection at run time

    I would like to know how can I keep persistent information in Sib. My problem is I want to change the default value of the choice field when running so that when the user starts the application again, it can retrieve the new default value.

    store values can be done using the persistence framework.
    See Persistable, PersistantObject and PersistantStore in the API.

    You can call setSelectedIndex on an objectchoicefield.

  • OBIEE dashboard how to set the default value of a prompt dynamically

    Hello

    I have a prompt that displays the quarter of the year. I want to put the default value of this prompt dynamically. So, if sysdate is between January and March, then fast should say 'Q1 '. If the month of sysdate is between April and June, then fast should say 'Q2'... etc.

    I set the default selection of the prompt SQL suite and put in the following code:

    SELECT BOX WHEN EXTRACT (MONTH FROM sysdate) IN (1,2,3) and THEN "Q1" double WHEN RETRIEVED (MONTH OF sysdate) (4,5,6) and THEN "Q2" double WHEN RETRIEVED (MONTH OF sysdate) (7,8,9) THEN "Q3" double ELSE 'T4' LATE double

    However, it seems not be soon and there is no default value. I was just wondering what I'm doing wrong. Thank you!

    ~ Kevin Sun

    What is the problem with the answer you were given in this thread: OBIEE parameter default value a "quarter" guest dynamically?

  • Extension of EO or CO to set the default values?

    Hi all!

    I spread an EO, ExtBankAccountsEOImpl, which contains the bank details of a provider.

    When I create a new retail bank, I want to set the default value of some fields (for example the currency)

    According to the nationality of the supplier (all fields are null by default oracle). See below.

    bank_det.PNG

    Is this possible with EOs? Can the EO extended somehow get their hands on the party_id?

    Or do I have to extend the CO instead?

    Best regards

    Christian

    Christian,

    Thus, your EO extension works very well, no?

    You need to check the standard code (controller and methods of AM which is called by the CO) and see if the party_id is stored as part of the operation or not. If so, you should be able to get the values in extended OS.

    If this isn't the case, you must extend the CO.

    Note: Changes made by extension EO EO will affect all pages using the OS, if any other page exists.

    I hope this helps.

    See you soon

    AJ

  • How to set up the default value in the ADF option button?

    Hi all

    I use 11.1.6

    I want to put the default value in the radio button (in the UI).

    EX: I have a SelectOneRadio as sex

    In these two values, one is male and secondly a woman.

    I need to see the default value of the male part of the user interface.

    I mean when the loading of the page it should show male is checked in the user interface part?

    Someone help with this task?

    Ok

    So in your BinderSolutionsBean, you have an attribute called;

    String scenType;

    public String getScenType()...

    What you need to do is to initialize scenType to rtb;

    public BinderSolutionBean {}

    String scenType = "rtb";

    .

    .

    .

    }

    Hope this makes sense;

Maybe you are looking for