Create a graph of query 2D Array

Hello world.

The connection of DB Toolkit, I created a 2d with 2 columns table:

-the first rapresenting of different temperatures

-the second with the Date and time related

the current array is in the format of string because DBL format I could not properly represent Date and time

How can I can create a graph where Temp = y and DateTime = x ?

I attached you the VI and a photo with the 2d array that comes to execute the query.

Thanks for your help!


Tags: NI Software

Similar Questions

  • How to create a graph in time real LabVIEW 6.1?

    I am new to programming in LabVIEW (6.1). I wonder to create a LabVIEW interface that can operate the multimeter Keithley 6487, allowing us to apply a voltage and nth measures. With the measures that we have create a chart (V curve i) I find the XY graph, but it only allows to send all the measures at the same time (indexing) to generate the graph and not whenever we take the action so the graph build inn in real-time. I need to know how to create a chart or change the XY graph, so I can generate the i - V curve with each step we take in real time. Whenever we take the action and not once the program ends. Thanks in advance.

    You must place the graphic inside the loop and the use of shift registers to accumulate the X and Y in the form of tables. I do not have 6.1 right now in the process of execution, but it would basically look like this:

    Note that the above is for demonstration (the code is in fact a greedy loop). You can consider putting Scripture on file inside the loop. In this way, if the program crashes, you will not lose your data.

    WARNING: Using table build as indicated above will result in continued growth of memory. If your program is running for a long time, this can become a problem. One thing you may need to watch must have a limit on the size of the array. I know there is an example of "Table of XY" comes with LabVIEW, and I'm sure that this is with 6.1. You should take a look at this example, which implements a fixed buffer for the data in the chart size. You should be able to use the VI "graphic buffer XY"directly in your code. "

  • create/remove graph sliders programattically

    Hello

    In LabVIEW 2011, we are working with a single-trace graph that updates periodically; We need to draw programmatically the sliders during the race, as new data become available.  Initially, we just create a static array of cursors, made all invisible, then moved and makes them visible as they have become relevant; However, now we want to make the dynamic list.  It is best done by reading the list of cursor, manipulate the table according to the needs, and then writing it in the chart, or is there better ways?  The process is to identify peaks and valleys in a plot in ever-changing data.  I find it interesting that the user can create new cursors manually, but there is no property to allow the same programmatically; Ditto for remove them; the user created cursors use the default attributes that are not adapted to our needs.

    I am looking for the solution less long-term, and rewrite the entire table seems to be unnecessary performance degradation.

    Maybe we should create new sliders in blocks to reduce the number of updates to list of cursor?  I'd like to think the worst case is about 60 sliders, but as the peak detect algorithm is automatic, an unusual data signal could cause several hundred.  The graph will survive even this?  All the data will be, worst case, be something like 15000 data points.  Experiences/pointers/warnings will be appreciated.

    Thank you

    Blair

    Blair Smith wrote:

    [...] It is best done by reading the list of cursor, manipulate the table according to the needs, and then writing it in the chart, or is there better ways?

    I don't see any method to add a slider, so manipulate the table is the way to go.  You could save the time it takes for the reading list reading it only once, at the beginning and adding to what your field evolves.  You can limit updates to occur no faster that the operator can enjoy.  If your data adds dozens of peaks in a fraction of a second, you could get away with adding them at once per second or more.

  • two your create a graph online

    How can I use two your to create a line gaph, and each vo is presented as a line.

    I think that you will need to create a join view using a query to display two data sets - then use a double there line graph.

  • Query JSON array does not

    No idea how to get the following to work?

    Thank you

    Phil

    drop table json;


    create table json)

    clob json_attr

    CONSTRAINT ensure_json_attr CHECK (json_attr IS JSON));


    insert into json (json_attr) values

    ("{'EMPNO': 7369, 7499 (7521) AND}")

    "DEPTNO": [20, 30, 30].

    "COMM": [0, 300, 500].

    'JOB': ['CLERK', 'SELLER', 'SELLER'],

    "MGR": 7902, 7698 (7698) AND

    'ENAME': ['SMITH', 'ALLEN', 'QUARTER'],

    "HIREDATE": ["17 DECEMBER 80", "20 FEBRUARY 81", "22 FEBRUARY 81" "" "],

    {"SAL": [800, 1600, 1250]} ");"

    SELECT jt.*

    JSON,.

    JSON_TABLE (json_attr, ' $' [*])

    COLUMNS)

    EMPNO number PATH ' $. EMPNO',.

    ENAME VARCHAR2 PATH ' $. ENAME'

    )

    ) AS jt;

    I want him to give:

    EMPNO, ENAME

    ---------- ----------

    7369 SMITH

    7499 ALLEN

    7521 WARD


    But she does not return anything.

    But she does not return anything.

    Obviously

    The path expression "$" [*] does not target anything in the document, which has a rather unusual btw.

    Is it really the kind of structure, with what you have to deal with?

    If so, I think that there is no other way but to use separate JSON_TABLEs to extract each of the array elements and join their return to form columns and relational lines:

    SQL> select jt1.empno, jt2.ename
      2  from json t
      3     , json_table(t.json_attr, '$.EMPNO[*]' COLUMNS rid for ordinality, empno number path '$') jt1
      4     , json_table(t.json_attr, '$.ENAME[*]' COLUMNS rid for ordinality, ename varchar2(30) path '$') jt2
      5  where jt1.rid = jt2.rid ;
    
         EMPNO ENAME
    ---------- ------------------------------
          7369 SMITH
          7499 ALLEN
          7521 WARD
    

    (Note that the above only works if the table contains a single row, but could be adapted to the condition that the table has some kind of identity)

    As said, the following would be much more sympathetic to manage:

    [
     {"EMPNO":7369,"DEPTNO":20,"COMM":0,"JOB":"CLERK","MGR":7902,"ENAME":"SMITH","HIREDATE":"17-DEC-80","SAL":800},
     {"EMPNO":7499,"DEPTNO":30,"COMM":300,"JOB":"SALESMAN","MGR":7698,"ENAME":"ALLEN","HIREDATE":"20-FEB-81","SAL":1600},
     {"EMPNO":7521,"DEPTNO":30,"COMM":500,"JOB":"SALESMAN","MGR":7698,"ENAME":"WARD","HIREDATE":"22-FEB-81","SAL":1250}
    ]
    
  • Create a REF CURSOR as an array of display/temp

    Hello world

    I had to upgrade a number of Crystal Reports Using REF CURSOR as part of an ERP upgrade project. The new version of the ERP application supports more use of the REF CURSOR and only supports the use of views/tables.

    I don't see how I can rewrite the REF CURSOR (which are defined in the PL/SQL procedures), in the form of VIEWS / TEMP TABLES with a single call. That is to say when the user runs the report.

    Can anyone suggest a method of conversion of the REF CURSOR in view/Temp Table without the two steps, the steps to populate a temporary table and then, i.e. 1 - 2 - query the table in the report. ??? -I was looking at a Pipelining as an option but again could reach with only two stages, pre filling before running the report.

    Any advice would be greatly received.

    Kind regards

    David.

    I found a solution by creating a FUNCTION with a PIPELINED return cursor, and then create a temporary table in the result set. Not really ideal was to use a Pragma AUTONOMOUS_TRANSACTION, but will work for me.

    Thank you

    David.

  • How to create a resource of query using CS component?

    Hi all

    Can someone please let me know how we can create a resource request (OOTB assettype WCS) using the option element CS?

    Assettype - Query, OOTB assets can be created using two methods: 1) using the SQL query and 2) using CS elements.

    I searched a lot of guides and has been unable to find even a small example or a snippet of code that must be used in an element cs while creating a resource request.  Even guide the developer gives example of using only one SQL query when creating a resource request and did not mention anything on the assets of the query to the CS elements.

    It would be very very useful for me and most of them if an example can be provided. Thanks in advance.

    Kind regards

    Praveen

    Hi Praveen,

    In the attribute menu editor drop-DOWN using a resource request, you need the following:
    -The SQL code in the assets of the query should return a column 'value '. For example:select name as value from shippingtype

    -If the data type of the attribute using the attribute Editor is 'good', the query should also return property IDs. For example:select name as value, id as assetid from Product where...

    See Designing Attribute Editors - 11g Release 1 (11.1.1.8.0)

    Your original CallQuery was essentially correct except that you must

    1. return a value column (and possibly an id column)

    2. no loop on the results. The attribute editor will loop on the results.

    3. set the name of the list the variable 'list '.

    For example

    <%
      String sqlQuery = "select name as value from Query";
    %>
    
    

    Note that this will return a list of the names of the assets of the query, which may or may not be what you need.

    I hope this helps.

    Kind regards

    Stephan.

  • Create the collection of query with bind variable

    Apex 4.0.2

    By Joel Re: Collection with variable binding the apex_collection.create_collection_from_query_b supports queries containing references to the bind variables (: P1_X) but I don't know how to use this feature, the documentation is not an example, just the API signature for the overloaded version has changed.

    If the query contains 2 bind session state variable references (: P1_X and: P1_Y), can someone please show an example of what to spend for the parameters p_names and p_values to the API?

    Thank you
    procedure create_collection_from_query_b(
        --
        -- Create a named collection from the supplied query using bulk operations.  The query will
        -- be parsed as the application owner.  If a collection exists with the same name for the current
        -- user in the same session for the current Flow ID, an application error will be raised.
        --
        -- This procedure uses bulk dynamic SQL to perform the fetch and insert operations into the named
        -- collection.  Two limitations are imposed by this procedure:
        --
        --   1) The MD5 checksum for the member data will not be computed
        --   2) No column value in query p_query can exceed 2,000 bytes
        --
        --
        -- Arguments:
        --     p_collection_name   =  Name of collection.  Maximum length can be
        --                            255 bytes.  Note that collection_names are case-insensitive,
        --                            as the collection name will be converted to upper case
        --     p_query             =  Query to be executed which will populate the members of the
        --                            collection.  If p_query is numeric, it is assumed to be
        --                            a DBMS_SQL cursor.
        -- example(s):
        --     l_query := 'select make, model, caliber from firearms';
        --     apex_collection.create_collection_from_query_b( p_collection_name => 'Firearm', p_query => l_query );
        --
        p_collection_name in varchar2,
        p_query           in varchar2,
        p_names           in wwv_flow_global.vc_arr2,
        p_values          in wwv_flow_global.vc_arr2,
        p_max_row_count   in number default null)
        ;

    HELEN wrote:
    Apex 4.0.2

    By Joel Re: Collection with variable binding the apex_collection.create_collection_from_query_b supports queries containing references to the bind variables (: P1_X) but I don't know how to use this feature, the documentation is not an example, just the API signature for the overloaded version has changed.

    If the query contains 2 bind session state variable references (: P1_X and: P1_Y), can someone please show an example of what to spend for the parameters p_names and p_values to the API?

    Not tried, but guess something like

    apex_collection.create_collection_from_query_b(
        p_collection_name => 'foobar'
      , p_query => 'select f.foo_id, b.bar_id, b.baz from foo f, bar b where f.foo_id = b.foo_id and f.x = to_number(:p1_x) and b.y = :p1_y'
      , p_names => apex_util.string_to_table('p1_x:p1_y')
      , p_values => apex_util.string_to_table(v('p1_x') || ':' || v('p1_y')))
    
  • How to bind the user interface component to a display object that is created from a SQL query

    I use JDeveloper 11.1.1.2.

    I created a method in my ApplicationModule to create a dynamic ViewObject instance based on a 'voCode"passed in:

    public loadVO (String voCode) {} ViewObject

    ViewObject viewObject = findViewObject (voCode);
    If (viewObject == null) {}
    viewObject = createViewObject (programCode);
    }
    return viewObject.
    }

    I created a Client interface for this method and updated the control data of the ApplicationModule.

    The "Oracle JDeveloper 11g Handbook", I should be able to create a link from the tree and an executable methodIterator to the method of "loadVO" through the control of AOS data.

    I tried to manually add the binding to the definition of the page my page jspx, I like to see if I can replace an existing binding with this new binding.
    I was not able to add the link under "tree to create binding" 'Root Data Source' both 'Tree level rules' must be specified.
    I was able to specify the root 'Data Source' to point to the "loadVO" and the corresponding parameter, but not able to add a rule.
    When I clicked on the icon "+" to add the rule, anything that allowed me to clarify the rule (if I know which rule I should add).

    How can I bind the module of the application 'loadVO' method while it is exposed in the data control to provide data to a UI like PivotTable component?

    On the other hand, I was able to create the "methodIterator" first for the method 'loadVO' AM but I wasn't able to create a tree link to refer to the "methodIterator".
    Is it possible to call the method loadVO with the value of specific setting via the "methodIterator" of a bean method?

    Published by: pyin_amec on January 25, 2010 15:57

    I've corrected the subject line and change my question to better reflect the problem I tried to solve.

    Published by: pyin_amec on January 26, 2010 07:41

    Hello
    It worked for me... I created an inputtext area where I can enter a query and run...
    It could be that useful...

    AM Impl

         public void createVoWithQuery( String pQuery )
         {
    
              ViewObjectImpl vo = null;
              if( findViewObject( "DemoVo" ) != null )
                   findViewObject( "DemoVo" ).remove();
    
              vo = ( ViewObjectImpl )createViewObjectFromQueryStmt( "DemoVo", pQuery );
              //  vo.setKeyAttributeDefs( new int[]{0} );
              vo.executeQuery();
         }
    
         @Override
         protected void prepareSession( Session session )
         {
              super.prepareSession( session );
              if( findViewObject( "DemoVo" ) == null )
                   createViewObjectFromQueryStmt( "DemoVo", "Select 1 from dual" );
         }
    

    Page Def

    
        
          
        
        
      
      
        
          
    
          
        
        
          
        
        
          
            
          
        
      
    

    page

    
              
                
                  
                    
                      
                    
                  
                
              
              
              
                
                  
                    
                  
                  
                
              
            
    
  • Creating a graph of intensity from the discrete values

    I have 4 discrete results. I want to display this information in a graph of intensity. I want each of these discrete values to have a specific color on the intensity. If possible the value 4: a = 1, b = 2, c = 3, d = 4. If I spend 2 x 2 table 1,2,3,4 in the graph of the intensity, I want a red, b blue, c green, d be and yellow. How can I specify that on the chart? Is there a good example?

    Thank you!

    In this thread, I give an example where you set Z scale by using a property node.  In your case switch off interpolation of Z scale as well.

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=437481#M437481

  • Problem creating list of values query

    Hi all

    I am facing some problem with a simple list of Apex selection list item values query which is:

    RETURN 'select distinct dd_type as d, dd_type as r
    from portal_02.WAVE_'||:P86_WAVE_ID||' @ DATABASE_LINK1 
    order by 1';
    

    And I get this error during the execution of the page:

    ORA-06550: line 2, column 99: PL/SQL: ORA-00942: there is no ORA-00942 table or view: table or view is no ORA-02063: preceding the line of DATABASE_LINK1 ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00942: table or view is no ORA-02063: preceding the line of DATABASE_LINK1


    I placed also p86_wave_id cascading of parent elements.

    Anyone has an idea why this is happening and how can I fix this problem?

    Use: Apex 4.2.6 & Database 11g.

    Concerning

    Nabila

    I was wrong.

    You are positive that a value exists in the session state for P86_WAVE_ID? For your first attempt, one might think it was empty when loading the page, when he made everything that uses the list?

    Ahh, there you get this when you try to save the definition of LOV, it is probably just trying to validate the request, made with a null value.

    Not sure if you can get it to analyze at run time, but you could workaround with a wave_ object definition?

  • JDeveloper 11.1.2.3.0 cannot create the graph of the ADF

    Hello
    I'm new to ADF. I create a Java EE and EJB diagram (JPA/EJB 3.0) Web Application, as shown in the demo (http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/JDevExperience/JDevExperience112flv.html). But when I try to create a chart, I can not find the selection. Now, I don't know why this problem exists. Please help me. Thank you.

    Sheng

    Hi Arun,
    I solved the problem. I add the library of data visualization ADF under libraries of tags Facelets in project properties, then the problem is solved. Thank you very much for your help.

    Kind regards
    Sheng

  • How to query an array type without using Loops(FOR,etc)

    Hi all

    I'm just a beginner working with oracle DB. I have a basic question about the TYPES of TABLES in oracle.

    creating table example (a number, b varchar2 (10))
    /
    Set serveroutput on;

    declare
    TYPE tab_type IS TABLE of example % ROWTYPE;
    t_tab tab_type: = tab_type();
    Start

    I'm IN 0.2
    loop
    t_tab.extend;
    t_tab (t_tab.last) .to: = i;
    t_tab (t_tab.last) .b: = "maru";
    dbms_output.put_line (t_tab (t_tab. (Last) .at);
    end loop;

    -What I CAN DO SELECT * FROM THE TABLE t_tab without using a cursor to iterate line by line
    -Since I need to compare the values in a table called HAND with this SAMPLE table.i need to check if all the files present in the table MAIN is present in the
    -Type of table table SAMPLE. I do not want to insert into a temporary table (because it becomes an overhead projector) and compare the results.
    end;

    Kindly help me in this regard and let me know if you need more details.

    Thanks in advance.

    Maybe you would like

    create type mytype as object
    (
    a number,
    b varchar2(10)
    );
    /
    create type tab_type as table of mytype;
    /
    declare
    t_tab tab_type := tab_type();
    sRES varchar2(10);
    begin
    for i IN 1..2
    loop
    t_tab.extend;
    t_tab(i) := mytype(i,'maru');
    end loop;
    
     select b
     into sRES
     from table(cast(t_tab as tab_type))
     where a = 2;
     dbms_output.put_line(sRES);
    end;
    /
    

    Published by: Alkaron on 27.03.2012 08:37

  • Creating lines in select query

    Hello
    I have a column in my query that controls the number of times where the rank must be returned by the query.
    For example
    with the trial as
    (select 'abc' as col1, '123' as col2, 1 as the double numtimes
    UNION ALL
    Select 'def' as col1, "456" as col2, 2 as numtimes from dual
    UNION ALL
    Select "ghi" as col1, '789' as col2, 3 as the double numtimes
    )
    Select * from test

    which returns
    COL1 COL2 NUMTIMES

    ABC 123 1
    def 2 456
    IGS 3 789


    Now I want the second row returned 2 times and the third row 3 times (based on numtimes)

    Is there a SQL way to do...

    Any help would be really appreciated

    Try:

    SQL> with test as
      2  ( select 'abc' as col1 , '123' as col2 , 1 as numtimes from dual
      3  UNION ALL
      4  select 'def' as col1 , '456' as col2 , 2 as numtimes from dual
      5  UNION ALL
      6  select 'ghi' as col1 , '789' as col2 , 3 as numtimes from dual
      7  )
      8  select *
      9  from   test
     10  connect by level <= numtimes
     11         and col1 = prior col1
     12         and prior dbms_random.value is not null;
    
    COL COL   NUMTIMES
    --- --- ----------
    abc 123          1
    def 456          2
    def 456          2
    ghi 789          3
    ghi 789          3
    ghi 789          3
    
    6 rows selected.
    
  • Using a list created in a SQL query in

    I have solved this before, but can't remember how, it will be a simple

    I created a list of a CFLOOP, let's call it MYLIST = 'us, ca, to the, en.

    I need to run a CFQUERY SQL on this list, WHERE xyz IN (MYLIST)

    The problem is that it will not be read correctly. Can someone tell me the right command to make the SQL read the list properly on a basis of individual billing

    Thank you

    Mark

    list of cfqueryparam = 'yes '.

Maybe you are looking for