Values discrete table slide

Hello. I have a 1 d array of double for example [1, 2.5, 3, 6,8, 10] and I would do a regulator to behind the scenes, where the user can choose only those exact values. Please note that this example vector is very low and in fact I vector 'time' it had been longer, 100 numbers, so some manual Insertion is not an option .

I have already searched in 'property node', but did not find anything useful.

Thank you in advance.

The table is always sorted?

You could use "threshold" with the value of your slide and the table of valid points sorted, round off the result to the nearest index, then use the table to index to get the valid value for further processing.

You can also subtract the value your table silde, take the absolute value of the result and use table min & max to find the index of the closest point.

Once the slide is released, you can write the valid value back to the slide (don't fight the user when it is running it!).

A better solution would be to use a whole blade where each value is the index of the array element. Hide digital display and scale and show the value of something that looks like a digital display, but is actually a separate indocator.

Tags: NI Software

Similar Questions

  • Change the value of all slides

    Hello world

    I need help today with a problem on the slide - void / knot vi and property.

    I would like to change any value of slides with a sub vi

    Any ideas?

    Thank you

    Hello

    Using the node property, you can change the value of the slide.

    Siva

  • How the change in the value of the slider once out of the mouse in response

    Hi all

    When I used the slide bar to control my device, I answer the value change of slide bar and set the new value on my device. But it will generate the answer constantly when I use the mouse to drag the pointer, which is not my. I just need answer only after the mouse exit. How can I implement this feature?

    Hope your suggestion, thanks a lot.

    Use 2 separate controls instead of the digital screen on the slider.

    For a mouse event on the cursor, update the value of the digital control and do whatever it is you need to do.

    For a change in the value of the digital control, update the value of the slider and do whatever it is that you need to do.

  • How to compare the original value of table size and the changed value

    juice I took a table and then took the function of the size of the array so that it shows me the number of the elements present in it. so it'll be the original table size value. If the items in the table even changes another value, then I want to compare the original table size value and the value of table size has changed. How to compare... Please help me. you are looking for a possible solution. Thank you

    Hi stara,

    the attached picture shows the ony solution.

    It will be useful.

    Mike

  • How to set the maximum value of the slide in run mode

    Hello

    I have a number of files to process, the files are going to be covered in the runtime. I want to use a slider that controls a single in the process at some point file. As the total number of files cannot be pre-be determined, I wonder how I can configure the maximum value of the slider when running (after I know how many files in the pool).

    Any help will be greatly appreciated.

    JACIE

    Right-click on the property and select change writing.  Now you can wire a constant to the property node.

  • Obligation to fill the values in table advanced according to the selection of a value in another article of lov (not in the advanced table)

    Hi all

    We work in a custom oaf page subdivision. We have an obligation to fill the values in table advanced based on a value selection in an element of the lov (this LOV is not in the advanced table) .can share you it please me steps or examples of code to achieve this. Waiting for response.

    Kind regards

    I do not understand completely still. What do you mean by "default in the table values must be inserted".

    You can create a dummy VO with the same columns and fix the VO in the advanced table.

    In the normal scenario, when the user clicks on submit button, browse this VO, and copy the values to the validation according to VO and appeal EO. If values gets inserted into the database.

    When the user selects the number of PO, simply run the other VO and fill this dummy VO so that values are available in the advanced table. When you click on send, do not copy these values to the EO based VO, so these lines won't get inserted.

    It work?

    See you soon

    AJ

  • Pass values of table type (parameter)

    Hi all
    I've written a procedure that has table type among the input parameters. How to pass values from table type while calling the procedure. Please suggest


    Thank you and best regards,
    Mahesh


    -For reference

    -Registration type
    CREATE or REPLACE TYPE lt_rec_type IS (of the OBJECT
    Article VARCHAR2 (2000 BYTE)
    (, quantity NUMBER (10));

    -Table type
    CREATE or REPLACE TYPE lt_tbl_type IS TABLE OF THE lt_rec_type;

    -Procedure
    (PROCEDURE) xxxx
    p_table_type lt_tbl_type);
    SQL> CREATE OR REPLACE TYPE lt_rec_type IS OBJECT(item VARCHAR2(2000), quantity NUMBER(10))
      2  /
    
    Type created.
    
    SQL> CREATE OR REPLACE TYPE lt_tbl_type IS TABLE OF lt_rec_type
      2  /
    
    Type created.
    
    SQL> CREATE OR REPLACE PROCEDURE proc(p_table_type IN lt_tbl_type)
      2  AS
      3  BEGIN
      4     FOR i  IN 1..p_table_type.count
      5     LOOP
      6             dbms_output.put_line(p_table_type(i).item ||'/'|| p_table_type(i).quantity);
      7     END LOOP;
      8  END;
      9  /
    
    Procedure created.
    
    SQL> SET SERVEROUTPUT ON
    
    SQL> DECLARE
      2     l_tbl_type lt_tbl_type := lt_tbl_type();
      3  BEGIN
      4     l_tbl_type.extend;
      5
      6     l_tbl_type(1) := lt_rec_type('Car', 100);
      7
      8     l_tbl_type.extend;
      9
     10     l_tbl_type(2) := lt_rec_type('Bike', 450);
     11
     12     proc(l_tbl_type);
     13  END;
     14  /
    Car/100
    Bike/450
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • Each scale minimum and maximum for each slide table slides

    Hello

    is it possible to set values mini/maxi different scale in a group of slides via property nodes? As far as I know that's not possible. All the slides in the table must have the same minimum and maximum value. I only find a way to change all the scales at the same time. Are there any other ideas?

    Thanks in advance

    LVW

    Hi lvw

    You are right on the table, it is not possible to have different scale values. If you don't have a small number, you may be able to use a cluster of sliders, then you can set each individually. You can use the table for cluster and cluster to table to convert data types. You can also use cluster control references to define each level individually.

    Ian

  • NaN values in table

    Hello

    I got a code made by my colleague who is no longer with us. In a column of table 8 and not generated by program. lines to initialize all values such as NaN values. I've never met before NaN values.

    Research, I understand this isn't a number, but it's not really make much sense to me. Why the table cells are written as NaN? What is the meaning of NaN? Can I leave empty cells and not showing no no NaN inside?

    Kind regards

    Austin

    Ok. Yes, I now understand the meaning. So if I create a table in the future and I want to configure a few lines to NaN values. How can I do. Is there a constant called NaN?

  • Report header update XML with values of table of process model

    Using Get and add steps to add some containers StationGlobal the XML report.

    Then made changes to the horizontal.xsl to show the new values.

    Everything was fine until I tried to view the news of cable that is a container for three tables.  Find the correct xsl to analyse the way in which the table is stored in the xml file throws me a loop for.  Joined a scale to the bottom of the example.

    How the XML is stored...

    my best attempt at analysis... that it performs a loop twice but displays the same results

    Any thoughts...

    Thank you

    Kevin

    Kevin-

    I have attached copies updates to your XML and XSL files. Please take a look and see if this implements your target. Let me know if it does not or if you have questions about the changes.

    I hope this helps.

  • Under certain conditions add value in table

    Hi all

    I have two tables 2D of the string data in my VI (taken from the .mdb using ADO & SQL file). The "Window list" table on the left, that's what I want to add values to. The 'List of glass' table on the right contains the values that I want to add to the main table according to the values in other cells.

    For example:

    1 component ID window are 2191 and 2001. Under the thickness of the component 1/component 2 in the table "window list", I would add the thickness appropriate for stream ID 2191 and 2001 table "list of glass".

    Here's a snip of the two tables in question.

    This should be simple enough, but as I am a rookie LV I am not very well how to do.

    Thank you very much

    Laura

    Joint must be what you want.  Let me know if you have any other questions.

  • remove the threshold values of table

    Hello

    I would like to get help to complete my program where I am removing values above a threshold in a table and establish the curve according to the values above the threshold (from-45 in this case) is deleted.  I still seem to have a few values greater than the threshold that appears in the desired graphic.  Any help is greatly appreciated.

    Thank you

    hiNi.

    Your VI is extremely complicated. All you need is a conditional tunnel.

  • Reset to the values in table

    I built a VI which I think must initialize an array of bool 8 element to all WRONG. Then at each iteration of the for loop, it is, should turn each element increasing to TRUE. But in each iteration of the loop, the item previous returns false instead of stay TRUE. Why is this, and what logic is necessary to avoid this problem?

    dourk wrote:

    I added the shift register, and if I run it without the DAQ help, it works perfectly, thank you!

    You must use "replace table subset", "do not insert in the table". You will also need to initialize the array with 8 elements.

    ("insert into array" will grow the array by one element each time you insert one, move everything higher up. After two iterations, the table will have 9 items. However, 'replace table subset' will keep the table the same size, by changing the value of an element by a new value)

  • How to find the index of the closest value in table

    Hello

    I have a double-table A and a double value B.

    I'm looking for on what number in the table A is the closest number to number B?

    Thanks for help

    If the array is sorted, built-in 'Threshold 1 D Array' might work for you.

  • How to compare the 3 values in table

    Hi all

    This is my first post so be tolerant

    I need to find "bad values" in the table, it will be easier to explain with example:

    I have a table like this: 0 0 0 0 0 0 0 0 5 0 0 0 0<- so="" "5"="" is="" the="" bad="" value,="" my="" method="" is="" to="" check="" two="" of="" nearby="" values="" so="" x(i-1)="0," x(i)="5" x(i+1)="0," and="" if="" checked="" value="" is="" more="" than="" 25%="" bigger="" or="" smaller="" it="" should="" be="" replaced="" by="" average="" of="">

    example: 0 1 2 3 4 9 6 7 8<- bad="" value="" is="" 9,="" and="" result="" of="" my="" filter="" should="" be="" (4+6)/2="">

    I did it using the formula node (not 20% and no way, but the point is the same) and it works but now I want to do without C and I had a lot of problems because of the size of the array memory is 10000.

    I joined thah vi and signal, you can test that it works very well

    Thank you

    Mike

    MeeHow wrote:

    ... What is the problem?

    Because the first incorrect value is the point of 2780, because it is also disabled because the average of neighbour is biased by the incorrect value to 2781.

    You could jut blindly replace all values with the value that has the lowest absolute value among the three points that we have. Here's a quick project, seems pretty good, but it really depends what you want.

Maybe you are looking for

  • Airport/capsule, U-verse

    I must just have U-verse installed to replace AT & T DSL.  The tech said not to use the Terminal airport but that of AT & T. He said there would be problems with 2 routers.  I have 2 questions: is that correct and if so, how can I connect the time ca

  • NETGEAR genius - network card showing strange connections

    Looking at the map of the network, I see far too many connections. One of the Japan, several of ARRIS (?) and one of IR (?). I tried to find these internally, but cannot find them. I consider our phones, pads, computers, TV, etc.. I've been hacked? A

  • HP envy x 2: restore HP Envy X 2 with USB

    When I turn on / open my hp envy x 2 it brings me to the login screen. After I got the connection, the screen goes black and I can't do anything other than move the cursor. How can I reset with to be able to see the screen. ? I know you can use a USB

  • On the desktop Media Center has stopped working Windows 7

    Media Center has stopped working need a fix?

  • New processors for Dell Optiplex 745?

    Hi, I have a mini Dell Optiplex 745 desktop computer and was looking to upgrade my processor. What options are there for me? I was hoping to upgrade to an Intel Core i5 processor. The motherboard is as follows: Board: Dell Inc. 0GX297Serial number: C