Search table 1 d for a value

Hi all

I have a table 1 d of numbers that goes from 255 to 0, I want to seek a first element which is less than 100 and retrieve the index.

Can someone help me how to on this subject.

Use the same ideas.  Throw a column in the table at the same time.  Search.  Repeat steps.

The more 'complex' part of this program is interfacing with the excel worksheet.

Tags: NI Software

Similar Questions

  • Search for the string in the string table and see the following value in the line

    Hi, I'm new I have LV and I do a Vi that read worksheet values and generates 2d channels of the same spreadsheet table. For the moment everything I need is a function that find specyfic string in this table and show the next value in a line. As:

    Table:

    a; b
    c; d
    f; g

    example: find the 'c '.

    VI shoud show "d".

    Concerning

    Not a bad homework problem.  Do it with pencil and paper.  Write your table and pretend you're the computer.  What you want to do (step by step)?  What questions do you have?

    Now that the translation a bit to computers.  You mentioned that the data is in an array of strings.  What structures (LabVIEW) work with tables?  [Do you know how to work with tables?  [Otherwise, review some of LabVIEW Tutorial material - see top right of the first page of the Forum].  What do you know about channels?  What questions you need to ask questions on the channels?  What do you know about string functions?

    Watch these things in some LabVIEW code, 'feed' some data and see what he does.  If it seems to do things "unexplained", you can try to look at the block diagram to run by turning the performance highlight (and if you don't know what that means, use the help of LabVIEW and see the tutorials).

    Bob Schor

  • The search in a table 2d-coordinates for the point of click

    I'm doing a VI that creates a layer of 2d points on an image imported (as pictured). These points are generated by a Subvi, which simply draws points over and over again (based on the 3 selections of initial angle). All the coordinates of the points are stored in a data feed that is sent to a registry change for other future functions. Each coordinate corresponds to an electrode, labeled 0-255, goes into the lines first (although that could change, but I guess it would be easy to change). Labels are created through 2 loops (as seen in diagram 1).

    I would now like to click on a particular point and put it out in a different color, but also an indicator show me what electrode I clicked. I seem to be at a loss on how to do it! I need explore a table 2d-2 groups of the element, where she looks for the line first, then the corresponding column (or vice versa, it is not serious, but just for ease of understanding, let's say she is looking X first, where the columns first) and compare them to 2 elements (the mouse click coordinates).

    Here's what I've done so far. I need to search for the function in the following way; If find X, look no further columns and select that particular column where the X was found and begins to look for the values Y and and then stops when the value of Y is. Once the two values are found, take these out of the loops and throw them in a cluster and the function of drawing lots.

    Thank you!

    p.s. in case anyone is wondering why I have the function "in the range" in there, it's so that the user does not have to be exact pixel this allows the user to click within 2 pixels of the coordinate of the point.

    Hi Daniel!

    What do you think of this approach?

    We subtract just the mouse coordinates in the coordinated range 2D (Array stores the coordinates of the points on the image), the absolute value and look for the minimum. X and y the selected point index is returned in minutes or the index. You can replicate the fuction "in range" by ensuring min value is not too high.

    With regard to:

    Andrew Valko

    NOR Hungary

  • Compare and get the data in the tables (see post for details)

    I have two tables TableA and TableB. I struggle to write a query to get the dates of TableB (instead of TableA dates) where TableA dates don't coincide with the tableB (beginning and end).

    Example 1: For account A1234,.

    TableA got 2 rows 1/31/2014-3/3/2014 (which corresponds to TableB row), but TableA got another rank 31/01/2014 - 31/01/2014 that corresponds with the date of TableB Begin. In this case, I'm looking for output as below,

    Use TableB start and end date and combine number two rows from TableA for this account

    ACCOUNTTableB_BEGINTableB_ENDAMOUNT
    A123431/01/201403/03/2014100.0000000000

    Example 2: For the B7777 account.

    TableA end date aligns with the end dates of TableB for this account, in this case I want out put as,.

    Use TableB start and end date and get the amount of TableA

    ACCOUNTTableB_BEGINTableB_ENDAMOUNT
    B777705/04/201306/05/2013200.0000000000

    Example 3: On behalf of D5555,.

    Even a TableA line corresponds with TableA, there are two other rows in TableA matching start date with TableA and correspondence with the end date with TableA, in this case, that I put as,.

    Use TableB start and end date and combine number three rows from TableA for this account.

    ACCOUNTTableB_BEGINTableB_ENDAMOUNT
    D555508/08/201410/09/20141100.0000000000

    Example 4: To account E6666.

    Table corresponds to a row with TableB and no additional lines in TableA, just display the data in A table

    Tables and data:

    create table TableA
    (
      Account varchar2(10) not null,
      Begin   date not null,
      End     date not null,
      Amount  number(19,10) not null
    )
    ;
    
    
    create table TableB
    (
      Account varchar2(10) not null,
      Begin   date not null,
      End     date not null,
      Amount  number(19,10) not null
    )
    ;
    
    
    TableA Data:
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('31-01-2014', 'dd-mm-yyyy'), 0.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('03-03-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('B7777', to_date('18-04-2013', 'dd-mm-yyyy'), to_date('06-05-2013', 'dd-mm-yyyy'), 120.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('C6666', to_date('25-06-2014', 'dd-mm-yyyy'), to_date('08-07-2014', 'dd-mm-yyyy'), 10.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('16-08-2014', 'dd-mm-yyyy'), 1000.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 0.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('16-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    insert into tablea (ACCOUNT, BEGIN, END, AMOUNT)
    values ('E6666', to_date('01-01-2014', 'dd-mm-yyyy'), to_date('01-02-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    TableB Data:
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('A1234', to_date('31-01-2014', 'dd-mm-yyyy'), to_date('03-03-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('B7777', to_date('05-04-2013', 'dd-mm-yyyy'), to_date('06-05-2013', 'dd-mm-yyyy'), 200.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('C6666', to_date('06-06-2014', 'dd-mm-yyyy'), to_date('08-07-2014', 'dd-mm-yyyy'), 10.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('D5555', to_date('08-08-2014', 'dd-mm-yyyy'), to_date('10-09-2014', 'dd-mm-yyyy'), 1100.0000000000);
    
    
    insert into tableb (ACCOUNT, BEGIN, END, AMOUNT)
    values ('E6666', to_date('01-01-2014', 'dd-mm-yyyy'), to_date('01-02-2014', 'dd-mm-yyyy'), 100.0000000000);
    
    
    
    
    SELECT A.ACCOUNT,
           A.BEGIN,
           A.END,
           A.AMOUNT,
           B.ACCOUNT,
           B.BEGIN,
           B.END,
           B.AMOUNT
      FROM TABLEA A
      LEFT JOIN TABLEB B
        ON A.ACCOUNT = B.ACCOUNT
    

    Hello

    SeshuGiri wrote:

    Hi Frank,.

    Your query/solution works very well, but I forgot to mention something in the first post...

    Please insert these additional lines and try the request again.

    TableA Additional lines:

    1. Insert into TABLEA (ACCOUNT, BEGIN, END, QUANTITY)
    2. values ('F9999', to_date (January 2, 2014 ',' dd-mm-yyyy ""), to_date (3 January 2014 ', 'dd-mm-yyyy'), 999.0000000000);
    3. Insert into TABLEA (ACCOUNT, BEGIN, END, QUANTITY)
    4. values ('A1234', to_date (March 3, 2014 ',' dd-mm-yyyy ""), to_date (4 March 2014 ', 'dd-mm-yyyy'), 999.0000000000);

    TableB Additional lines:

    1. Insert into TABLEb (ACCOUNT, BEGIN, END, QUANTITY)
    2. values ('A1234', to_date (March 3, 2014 ',' dd-mm-yyyy ""), to_date (4 March 2014 ', 'dd-mm-yyyy'), 999.0000000000);

    Question 1:

    The table has a rows for A1234 account (i.e. the time period different than the ranks for the same account)

    one is A1234 31/01/2014-03/03/2014, A1234 03/03/2014-03/04/2014

    Your query that returns two rows for A1234 account (which is what I want), but the amount is messed up.

    ACCOUNT BEGIN END TOTAL_AMOUNT
    1 A1234 31/01/2014 03/03/2014 1100
    2 A1234 03/03/2014 03/04/2014 1100

    Except:

    ACCOUNT BEGIN END TOTAL_AMOUNT
    1 A1234 31/01/2014 03/03/2014 101
    2 A1234 03/03/2014 03/04/2014 999

    Question 2:

    In some cases TableA will have an account (F9999), but the TableB don't. I can just this line by making the Left Join right join?

    I don't get the results with additional data. I get 1099 for two lines where account = 'A1234 '.  I get 1100 as the amount on the line with the account = "D5555.  You did it other changes to data?

    Except:

    ACCOUNT BEGIN END TOTAL_AMOUNT
    1 A1234 31/01/2014 03/03/2014 101
    2 A1234 03/03/2014 03/04/2014 999

    Still, I don't see why you want to 101 for the amount of the first row.  Why not 100?

    How can you know which rows from tablea should get attached to what rows from tableb, when the account is not unique?

    Maybe you want something like this:

    SELECT a.account

    b.begin

    b.end

    SUM (a.amount) AS total_amount

    FROM tablea a

    ON a.account = b.account JOIN tableb B

    AND a.begin BETWEEN b.begin

    AND b.end

    AND a.end BETWEEN b.begin

    AND b.end

    GROUP OF a.account, b.begin, b.end

    ORDER BY a.account

    ;

    but I guess just to your needs, and guessing is not a very good or reliable way to solve problems.

    Question 2:

    In some cases TableA will have an account (F9999), but the TableB don't. I can just this line by making the Left Join right join?

    Yes, it looks that you want an outer join.  What happened when you tried?  As always, post your code, the exact results you want from the given sample data, as well as an explanation of how you get these results from these data.

  • What is the table/column name for group of segments data

    Hello!

    I'm looking at the specific table/columns that contain the values for the segments of people group by assignment. Well want to can someone tell me.

    Thank you.

    Jon

    Join the pay_people_groups with per_all_assignments_f with the people_group_id of the column

  • How to disable the page for a value change event processing

    I am trying to find a solution to a requirement and is currently working on use cases using the HR schema.

    I have a text entry box in the page that accepts a new Department name.

    The value change listener method on it called a bean of support to verify the uniqueness of the name of the Department. (I'm an iteration through the lines of the Departments table to check if the value is unique)

    Now, I need to disable the page and display an hourglass, so what this control and display a message at the end of the treatment.

    I have this job except that I don't know how I can disable the entire page and see an hourglass.

    I have to use Javascript for this?

    Hello

    I've had this work now after the use of clientListener as below.

    Binding = "#{backingBeanScope.backingBean.IT1} '"

    ID = "it1.

    valueChangeListener = "#{backingBeanScope.backingBean.checkUnique} '"

    autoSubmit = 'true '.

    Validator = "#{backingBeanScope.backingBean.validateDeptName}" > "

    Type = "valueChange" / >

    Thanks for your help.

    References: http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf

  • MEV: Column level of masking - error: ORA-28104: entry for sec_relevant_cols value is invalid

    Hi gurus,

    I try to hide the column to secure the table for a specified user, here are the details of the code that I use to apply security and DB:

    Version of DB: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0

    Security features:

    create or replace function kr_sec_function_papf (p_object_schema IN VARCHAR2,

    nom_objet_p VARCHAR2)

    return varchar2

    as

    p_nid varchar2 (200);

    Whoami varchar2 (100);

    Start

    If SYS_CONTEXT (' USERENV', 'SESSION_USER' ") ="VPDTEST ".

    then

    p_nid: = 'national_identifier = national_identifier';

    return (p_nid);

    on the other

    p_nid: = '1 = 2';

    return (p_nid);

    end if;

    end kr_sec_function_papf;

    /

    Code to add the policy:

    BEGIN

    DBMS_RLS. () ADD_POLICY

    object_schema = > 'APPS,'

    object_name = > "PER_ALL_PEOPLE_F"

    POLICY_NAME = > "secure_emp"

    policy_function = > 'kr_sec_function_papf ',.

    statement_types = > "SELECT."

    sec_relevant_cols = > 'NATIONAL_IDENTIFIER ',.

    sec_relevant_cols_opt = > DBMS_RLS. ALL_ROWS);

    END;

    /

    I get the error message when executing the above plsql block, the error is:

    ORA-28104: entry for sec_relevant_cols value is invalid

    ORA-06512: at "SYS." DBMS_RLS", line 20

    ORA-06512: at line 2

    Someone please help me solve the problem.

    Thanks in advance.

    ~ Krishna Nand Singh

    Hello world

    I had this problem to be solved.

    The problem is with the object_schema-online 'APPS', setting the schema name of the object is 'HR' and APPS a with the same name.

    The Correct code should be:

    BEGIN

    DBMS_RLS. () ADD_POLICY

    object_schema-online 'HR ',.

    object_name-online "PER_ALL_PEOPLE_F."

    POLICY_NAME-online "secure_emp."

    policy_function-online "kr_sec_function_papf."

    statement_types-online "SELECT."

    sec_relevant_cols-online "NATIONAL_IDENTIFIER."

    sec_relevant_cols_opt-online DBMS_RLS. ALL_ROWS);

    END;

    /

    Thank you

    Krishna Nand Singh

  • Generate public names for intermediate values?

    I'm trying to remember, but I can't find the reference.

    To configure the properties for the web service file, is it necessary to have public names for the intermediate attributes or conclusions? (I remember that the answer is Yes... and which would make sense).

    If the answer is Yes, is there a trick to generate public names for all attributes and not only the basic level? (I think that the answer is no.)

    If my memory is good, can someone explain the logic do not provide a checkbox to generate all the attributes?

    Thank you

    Hi Paul,.

    I do not think that necessary add public names for all intermediaries; the ODS compatibility check when you generate in OPM search only public names for top-level attributes and base level.

    However here in Sweden, we have made a decision to give each attribute public names (Basic, intermediate and senior), because the integration and test teams may want to check the value of a rule using ODS. It is really useful for OPM unit tests and the etc test results - even when text attribute changes, we do not have update the test script since the public name is there and she had remained the same... It is also our final report of the decision and generally easier to follow other OPM reports.

    I know that some projects don't want to do it as they see it as more maintenance, but we have a here useful naming convention and the benefits of having intermediate public names outweighed the small effort necessary to keep them up-to-date.

    I don't think that there is a quick way to generate automatically the intermediate public names unfortunately... we just added them little by little since the beginning of the project. If you have literally 1000s to add, it can be faster to add a properties file in generating the XML yourself. I like to use Excel to generate a properties file when I have a collective update or addition make.

    I hope this helps! ID be interested in other ways to add all intermediaries, if others have them!

    See you soon,.
    Ben

  • creating table of partition with null values

    Hello

    I have a table with 20 GB of data. I changed this table in the table to partition with partition of the range
    the column with which I took for range (date), holding the values null

    can I have a partition for null values?

    Hello

    CREATE TABLE ICBS. KNET_STMT_EXTRACT_NEW_P
    (
    SRVC_TYPE VARCHAR2 (200 BYTE),
    FILLER_1 VARCHAR2 (200 BYTE),
    RTE_STAT VARCHAR2 (200 BYTE),
    TRAN_DATE VARCHAR2 (200 BYTE),
    TRAN_TIME VARCHAR2 (200 BYTE),
    POST_DATE VARCHAR2 (200 BYTE),
    DATE OF REC_INSERT_DT,
    DATE OF PROCESSED_DATE,
    KNET_RECON_RESSON VARCHAR2 (100 BYTE),
    NEW_TRAN_DATE VARCHAR2 (10 BYTE),
    REASON VARCHAR2 (200 BYTE)
    REASON_IND NUMBER (5),
    NODE_ID VARCHAR2 (8 BYTE),
    PROGRAM_ID VARCHAR2 (8 BYTE),
    USER_ID VARCHAR2 (8 BYTE),
    TIME_STAMP DATE
    )
    ICBS TABLESPACE
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    64K INITIALS
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    LOGGING
    PARTITION BY RANGE (REC_INSERT_DT)
    (

    KNET_STMT_EXTRACT_NEW_P_DEC11 PARTITION VALUES LESS THAN (TO_DATE (' 2012-01-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN '))
    LOGGING
    NOCOMPRESS
    ICBS TABLESPACE
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    INITIAL 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    DEFAULT USER_TABLES
    ),
    KNET_STMT_EXTRACT_NEW_P_JAN12 PARTITION VALUES LESS THAN (TO_DATE (' 2012-02-01 00:00:00 ',' SYYYY-MM-DD HH24:MI:SS ',' NLS_CALENDAR = GREGORIAN '))
    LOGGING
    NOCOMPRESS
    ICBS TABLESPACE
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    INITIAL 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    DEFAULT USER_TABLES
    ),
    PARTITION KNET_STMT_EXTRACT_NEW_P_MVAL VALUES LESS THAN (MAXVALUE)
    LOGGING
    NOCOMPRESS
    TABLESPACE TBL_MAXVALUE
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    INITIAL 1 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    DEFAULT USER_TABLES
    )
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING
    ALLOW THE MOVEMENT OF THE LINE;

    Published by: hitgon on April 30, 2012 10:56

    Published by: hitgon on April 30, 2012 10:58

    Published by: hitgon on April 30, 2012 10:59

  • A table can cause two distinct values by using 'or '?

    I was wondering if it is possible for a table to have two different values.  In other words, something like this:

    var table = new Array (obj1, obj2 and obj3) | (obj4, obj5, obj6);

    I know the code above is not correct, but it is possible for a table to have two different set of values?

    I don't think that there is any whay she is subordinate, but you can have a picture of mutlidimensional:

    var table = new Array ([obj1 obj2, obj3], [obj4, obj5, obj6]);

    and then to make the choice of a set or the other.

  • How to avoid the report for all values of roller running upward of guided navigation

    Hello

    Thanks in advance

    I have 3 reports on three different pages of a dashboard. (Set up a navigation guided on a column of each report). When I click on the value of the column of guided navigation lead me to report 2 for this particular value (is invited), similarly for 3 report also so far it works great.

    However when I go back to report 3 2 and 2-1, the reports are run for all the values for the value which has been adopted by the guided navigation of the previous report (on which I clicked to go to the next report of value) instead.

    Published by: 808623 on November 9, 2010 02:10

    Use the ' back ' button.

    Otherwise, history.back(-1) it will take you to the session previous search in Google to get the HTML code and place it in object HTML/text at the bottom of each page of dashboard

    which will restore the last session he values he's running not not all previous values

    Thank you
    Saichand.v

  • How to use as operator for several values

    Hi all

    I want to obtain the column values for the column - filed_name which ends by ('X 1', 'X 2' 'X 3' 'X 4' 'X 5' 'X 0' 'XA' 'XB' "XM" "XP" 'X' "CM" "MT") of the variable_info table


    I tried to use as shown below

    SELECT * FROM VARIABLE_INFO WHERE FieldName like (' %x 1 "," %X 0 ");

    but getting error
    ORA-00907: lack of right parenthesis

    can someone tell me how to use as operator for multiple values?

    Thank you/kumar

    You need not a subquery, just make sure that you use parentheses to group your GOLD requirements

    SELECT RELATION ,
    FIELD_NAME ,
    ATTRIBUTE ,
    FIELD_DESCRIPTION,
    SOURCE
    FROM VARIABLE_INFO
    WHERE RELATION NOT IN ( 'CHAI',  'ITAB', 'ITB2', 'ITB3', 'MINI', 'NOTE', 'MINC', 'FINI', 'FTIM', 'FWTG', 'FMLY', 'FMIS', 'FSUM', 'MEMB' ,'FINC', 'FASO')
    AND (SUBSTR(FIELD_NAME,-2) in ('X1', 'X2' ,'X3', 'X4', 'X5', 'X0', 'XA', 'XB', 'XM' ,'XP' ,'CM','MT')
      OR substr(FIELD_NAME,-1) in ('X')
      OR substr(FIELD_NAME,1) in ('J')
      )
    AND (ATTRIBUTE LIKE 'NUM%' OR ATTRIBUTE = '-') ;
    

    The error you are getting sounds like a problem with the definition of VARIABLE_INFO. It seems the synonym or something that it points to rear edge

    For example:

    CREATE SYNONYM X FOR DUAL;
    CREATE SYNONYM Y FOR X;
    CREATE OR REPLACE SYNONYM X FOR Y;
    SELECT * FROM Y;
    
    SQL Error: ORA-01775: looping chain of synonyms
    

    Kind regards
    Bob

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

  • How to search a text with a particular value node in a document xml with labview

    Hi, here is my xml doc.



     
        FA
        1800
        2015
        1952.5
     

     
        ADF
        2.6 G
        1880
        2635
        2635
     

    I want to use 'get the first matching node' vi to locate the node of "FA". The I use vi "To get the content of the text node" for the value "1800". I also want to get two node value 2015 and "1952.5". But my VI does not work. I spent my schema vi here. could someone take some time to look at? Thank you!

    You forgot to add / / in front of Type. Close references when are no longer needed.

    Ben64

  • When you use a left and right axis, how to choose what issed axis for the value of y GetGraphCursor?

    I use a graph with a left and right axis (2 data sets).  I try to use a slider to select a point in time (x) and the values of y in the two sets of data.  I can't understand how the control, the value that is returned for the value is when you use the GetGraphCursor call.

    GetGraphCursor (panelHandle, PANEL_GRAPH, yourCursorNumber, & x & y)

    Using SetCursorAttribute with the attribute ATTR_CURSOR_YAXIS must be what you are looking for. The online help for this attribute explains wery well:

    Description: Used to change the y-axis which is associated with the bar graph.
    When a graphics cursor is created, the Y axis with which it is associated is determined by the value of ATTR_ACTIVE_YAXIS.  Subsequently, the association can be changed using ATTR_CURSOR_YAXIS.
    The y-axis associate serves as reference for the coordinates of the cursor position in calls to SetGraphCursor and GetGraphCursor.

Maybe you are looking for