n6700 parameters of voltage/current query via the mode property

I try to back the tension of the query and the current settings on the power modules in my N7600 chassis.  I use this routine.  I get the following error.  It works very well with my E363x feeds

It's working now.  I had to add the 'active' channel to the node with the voltage and current demands.  I got it that way originally, so I don't know why it didn't work.  Maybe I still had the old broken driver... thought that I had a new already when I tried.  It is in any case, everything works fine now.  I can share what physical supply is used with MAX without the code never know the difference.

Tags: NI Hardware

Similar Questions

  • Cannot "connect as current user" via the Security Server

    Hello community,

    I had a problem using the "connect as current user" option against a network outside of the enterprise security server. Connection by manually keying in the name of user and password works very well from the outside the company network For internal connections using a connection to the server instead of security server, everything works as expected without having to manually type the name of user and password.

    Single domain

    Customer of the horizon is 3.5.2 and joined to a domain

    2 Security Server 6.2.1 x

    2 Server 6.2.1 connection x

    On one of the servers of connection I got the following error message when you try to connect through the horizon customer using the option "connection as the current user:

    2015 12-28 T 20: 21:15.207 + 01:00 INFO (B 0, 08 - 0E34) < ajp-nio-8009-exec-7 > [PAEContext] (SESSION: a774_ * _b2fb) Idle Timer executor by using 1 thread (s)

    2015 12-28 T 20: 21:15.625 + 01:00 ERROR (0744-0AEC) < MessageFrameWorkDispatch > [ws_winauth] [GSSApiProcessServerContext]: negotiate failed. Error 0 x 0000000080090300 (not enough memory is available to complete this form) {SESSION: a774_ * _b2fb}

    2015 12-28 T 20: 21:15.626 + 01:00 (B 0, 08-04 B 8) WARN < ajp-nio-8009-exec-8 > [GssapiHandler] (SESSION: a774_ * _b2fb) failed connection GSSAPI: not enough memory is available to complete this application

    2015 12-28 T 20: 21:15.627 + 01:00 ERROR (B 0, 08-04 B 8) < ajp-nio-8009-exec-8 > [GssapiHandler] (SESSION: a774_ * _b2fb) cannot close the context 7 36 d-*-00D 3 with the error: unable to locate the context requested

    2015 12-28 T 20: 21:15.627 + 01:00 ERROR (B 0, 08-04 B 8) < ajp-nio-8009-exec-8 > [GssapiAuthFilter] (SESSION: a774_ * _b2fb) authenticate GSSAPI performance problem - GSSAPI_ERROR: GSSAPI failed: not enough memory is available to complete this application

    The connection to the server has 12 GB of memory in total and 9.5 GB of memory free/available.

    In the windows event log, the following error message appears:

    BROKER_USER_AUTHFAILED_GENERAL

    Failed to authenticate the user < UNAUTHENTICATED >

    Attributes:

    Node = hostnameofconnectionsserver.mydomain.com

    Gravity = AUDIT_FAIL

    Time = Mon 28 Dec 19:51:16 THIS 2015

    Module = broker

    UserDisplayName = < UNAUTHENTICATED >

    Source = com. VMware.VDI.Broker.filters.GssapiAuthFilter

    Recognized = true

    Just tried from a machine arrived in the area via the Security server. Cannot open a session as the current user. We also enabled on the external connections of MFA, but I don't think that should make a difference.

  • Modify the effect parameters when it is added via the advanced action

    Hello

    Is it possible to change a path of a fly when an effect is added via the advanced action?

    When an effect is added via right mouse click on > 'Effect apply', and then modifying a path is easy:

    edit a path1.png

    But when the same effect is added via advanced actions, so I can not understand how do...

    edit a path2.png
    What I wanted to achieve are a form this is the flight in/out on click. Sorting of a table of contents, but with instructions on how to complete the task. So far, I have:

    1. step 1 - nb shape. 1 is visible

    1.png
    2. step 2 - after clicking on "Hide" (on the screen above) 1st form flies out. Instead, I have form nb. 2 (this screen below)

    2.png

    3. When you click on 'Show' (on the screen above), form number 2 goes to hidden. On its place form 1 shoud appear, but it doesn't. I know they are there :) because when, for testing purposes, I stuck them on the left side of the screen, they were visible, but completely displaced.

    Here are two simple actions that I created:

    actions.png

    Any ideas?

    Pawel

    There is no video, it's a blog post. Sorry, seems I posted a wrong link: effects reset in Captivate 6 - Captivate blog

  • Is it possible to read the voltage/current SMU after the closure of the original session?

    What is the method, or is it still possible reading the voltage and current of an SMU SMU-4138 measurements after the original configuration session has been closed?  I have a (relatively) long Teststand sequence that sets up the EMS to provide power to the ESA, then conducts tests and along the way I have to take the readings of SMU.  I was always under the impression, it is advisable to open and close the EMS quickly set up, but the 3-State programming model does not allow a way to jump into the running state of Init with channels VI, except through committed and engaged States and thus any stop in the process. The power measurement VI only works if you are in the Running State. Seems like a no-brainer, so what Miss me?

    bholsinger wrote:

    I was always under the impression, that it is recommended to open and close the EMS quickly set up

    It's BAD advice.  You open at the beginning of your program, you do whatever it takes with it inside your test (configure, read, etc.) program and you don't log off not until you stop your program.

  • How to check the performance of query via the command sqlplus prompt

    Hello

    I work in the production environment, I want to check the performance of the queries in a production environment, we have no specific tools such as the expliin plan, TK Proff.

    I need chek performnce of sqlplus command line query

    Please let me know the process of query tuning of sqlplus command promt

    Here to explain plan:

    SQL> explain plan for
      2  select * from employees where employee_id = 170;
    
    Explained.
    
    SQL> select * from table(dbms_xplan.display());
    
    PLAN_TABLE_OUTPUT
    -----------------------------------------------------------------------------------------------
    Plan hash value: 1833546154
    
    ---------------------------------------------------------------------------------------------
    | Id  | Operation                   | Name          | Rows  | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT            |               |     1 |    69 |     1   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| EMPLOYEES     |     1 |    69 |     1   (0)| 00:00:01 |
    |*  2 |   INDEX UNIQUE SCAN         | EMP_EMP_ID_PK |     1 |       |     0   (0)| 00:00:01 |
    ---------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       2 - access("EMPLOYEE_ID"=170)
    

    You can also use autotrace, which is super easy:

    SQL> set autotrace on
    SQL> select * from emp;
    
                   EMPNO ENAME      JOB                        MGR HIREDATE
    -------------------- ---------- --------- -------------------- --------------------
                    7369 SMITH      CLERK                     7902 17-DEC-1980 00:00:00
                    7499 ALLEN      SALESMAN                  7698 20-FEB-1981 00:00:00
                    7521 WARD       SALESMAN                  7698 22-FEB-1981 00:00:00
                    7566 JONES      MANAGER                   7839 02-APR-1981 00:00:00
                    7654 MARTIN     SALESMAN                  7698 28-SEP-1981 00:00:00
                    7698 BLAKE      MANAGER                   7839 01-MAY-1981 00:00:00
                    7782 CLARK      MANAGER                   7839 09-JUN-1981 00:00:00
                    7788 SCOTT      ANALYST                   7566 19-APR-1987 00:00:00
                    7839 KING       PRESIDENT                      17-NOV-1981 00:00:00
                    7844 TURNER     SALESMAN                  7698 08-SEP-1981 00:00:00
                    7876 ADAMS      CLERK                     7788 23-MAY-1987 00:00:00
                    7900 JAMES      CLERK                     7698 03-DEC-1981 00:00:00
                    7902 FORD       ANALYST                   7566 03-DEC-1981 00:00:00
                    7934 MILLER     CLERK                     7782 23-JAN-1982 00:00:00
    
    14 rows selected.
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 3956160932
    
    --------------------------------------------------------------------------
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------
    |   0 | SELECT STATEMENT  |      |    14 |   532 |     3   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| EMP  |    14 |   532 |     3   (0)| 00:00:01 |
    --------------------------------------------------------------------------
    
    Statistics
    ----------------------------------------------------------
            480  recursive calls
              0  db block gets
             92  consistent gets
              9  physical reads
              0  redo size
           1630  bytes sent via SQL*Net to client
            520  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              7  sorts (memory)
              0  sorts (disk)
             14  rows processed
    

    This guide has lots of good info:
    http://docs.Oracle.com/CD/B19306_01/server.102/b14211/TOC.htm

  • Prepares the query via the Inline view

    Pls help to prepare a query i can extract the following data through view inline (IE, except using the UNION):

    1. the SELLER who works in deptno # 30
    2. the MANAGER working in deptno # 20

    Department # 30 both SELLER and MANAGER work same Department # 20 both SELLER and MANAGER work.

    I want to go get sole MANAGER of Department # 20 and only the SELLER in Department 30.


    I can retrieve the desired data above by 'UNION' but I don't know if the above data can be searched other than 'The UNION' as INLINE mode.
    INSERT INTO EMP
    VALUES
    (7369,'SMITH','CLERK',7902,'WEDNESDAY, DECEMBER 17, 1980',800,NULL,20)
    /
    INSERT INTO EMP
    VALUES
    (7499,'ALLEN','SALESMAN',7698,'FRIDAY, FEBRUARY 20, 1981',1600,300,30)
    /
    INSERT INTO EMP
    VALUES
    (7521,'WARD','SALESMAN',7698,'SUNDAY, FEBRUARY 22, 1981',1250,500,30)
    /
    INSERT INTO EMP
    VALUES
    (7566,'JONES','MANAGER',7839,'THURSDAY, APRIL 02, 1981',2975,NULL,20)
    /
    INSERT INTO EMP
    VALUES
    (7654,'MARTIN','SALESMAN',7698,'MONDAY, SEPTEMBER 28, 1981',1250,1400,30)
    /
    INSERT INTO EMP
    VALUES
    (7698,'BLAKE','MANAGER',7839,'FRIDAY, MAY 01, 1981',2850,NULL,30)
    /
    INSERT INTO EMP
    VALUES
    (7782,'CLARK','MANAGER',7839,'TUESDAY, JUNE 09, 1981',2450,NULL,10)
    /
    INSERT INTO EMP
    VALUES
    (7788,'SCOTT','ANALYST',7566,'SUNDAY, APRIL 19, 1987',3000,NULL,20)
    /
    INSERT INTO EMP
    VALUES
    (7839,'KING','PRESIDENT',NULL,'TUESDAY, NOVEMBER 17, 1981',5000,NULL,10)
    /
    INSERT INTO EMP
    VALUES
    (7844,'TURNER','SALESMAN',7698,'TUESDAY, SEPTEMBER 08, 1981',1500,0,30)
    /
    INSERT INTO EMP
    VALUES
    (7876,'ADAMS','CLERK',7788,'SATURDAY, MAY 23, 1987',1100,NULL,20)
    /
    INSERT INTO EMP
    VALUES
    (7900,'JAMES','CLERK',7698,'THURSDAY, DECEMBER 03, 1981',950,NULL,30)
    /
    INSERT INTO EMP
    VALUES
    (7902,'FORD','ANALYST',7566,'THURSDAY, DECEMBER 03, 1981',3000,NULL,20)
    /
    INSERT INTO EMP
    VALUES
    (7934,'MILLER','CLERK',7782,'SATURDAY, JANUARY 23, 1982',1300,NULL,10)
    /
    INSERT INTO EMP
    VALUES
    (100,'SALAM','SALESMAN',7698,'FRIDAY, FEBRUARY 20, 1981',1600,300,20)
    /
    INSERT INTO EMP
    VALUES
    (101,'KARIN','SALESMAN',7698,'SATURDAY, FEBRUARY 21, 1981',1250,500,20)
    /
    INSERT INTO EMP
    VALUES
    (102,'RAFIQ','SALESMAN',7698,'SATURDAY, FEBRUARY 20, 1988',1250,1400,20)
    /
    INSERT INTO EMP
    VALUES
    (103,'JABBAR','SALESMAN',7698,'WEDNESDAY, FEBRUARY 20, 1980',1500,0,20)
    /
    INSERT INTO EMP
    VALUES
    (500,'RAHIM','MANAGER',7839,'THURSDAY, DECEMBER 16, 1971',2975,NULL,20)
    /
    Thank you.

    Sharif

    Published by: user13094274 on May 8, 2010 06:49

    Am I wrong?

  • Local variables are comparable to the value property of a control or indicator?

    I use the buttons / switches mechanical locking action, event structures and local variables to track the status of my switches.  I used local variables with indicators, too.  Now I see that this could be done via the node property of a switch or an indicator.  Should I use the nodes property instead of local variables?  Should I use "switch" mechanical action and control the State of the control buttons / switches?  I used a mechanical locking action because it automatically reset when it is read, but who pushed me in the use of local variables.

    I know the property values to adapt the data flow model, while local variables might be placed in a sequence structure to ensure the order of execution.

    I just don't want my program all except if it is a correct approach.

    Thank you

    DH

    Dark Hollow says:

    Well, I'm changing the properties of user interface in my state machine.  For example, when you push a button to START the TEST, I want to disable and gray this button and activate the button to STOP the TEST.

    No engineer too much. In this case, you can use a single button and label the FALSE case a 'start Test' and the REAL case as TEST 'STOP '. No additional code needed at all. At the same time, you only use the half-Panel space! (and 10% space diagram!)

    Dark Hollow says:

    Another example... I have a couple of dozens of LEDs on the front panel to show the TEST SUCCEEDED.  If I have the wiring all of them, my state machine diagram gets messy.

    Define disorder! In my mind, code is not held together by wire is much messier because it is impossible to determine the order of execution and so program logic. A thread is a small 1 d object. A property node is a significant 2D object. 20 wires are much less messy than 20 knots of property, especially given that each property nodes still hanging by a thread in one way or another!

    In order to reduce the number of threads, use the most appropriate data structures. Instead of a few dozen sighted use a single Bay of LED. A single wire! Keep the table in a shift register and update alone LED as necessary by using "replace subset of the table".

  • my project is to measure the voltage and current by using the view of laboratory.

    Dear Sirs,

    I have a project to measure parameters electric ac current, voltage, power factor etc through aquisitioin of data with labview. Can I do this? If yes then kindly help me with some opinions and ideas. I'll be very grateful to you.

    Muhammad Azam Hanan.

    Student of the University of engineering and Technolgy, Lahore, Pakistan.


  • Hierarchical + analysis of query for the parameters of the OU

    Hello gurus,

    I'm trying for a couple of hours there is a query works as I want.

    Our application needs to store settings for our organizational units. These organizational units are generally organized in a hierarchy manner: a high-level unit many units of the child. The settings are stored in another table with 1:1 relationship.

    For ease of visualization, here are the data of the organization unit and parameter table in a more visual format:
    SQL> select * from organization_unit;
    UNIT_CODE  UNIT_NAME            PARENT_UNIT_CODE
    ---------- -------------------- ----------------
    00000      Top level
    10         L2 unit #10          00000
    10-01      L3 unit #10-01       10
    10-02      L3 unit #10-02       10
    20         L2 unit #20          00000
    20-01      L3 unit #20-01       20
    20-02      L3 unit #20-02       20
    
    SQL>  select * from org_unit_parameters;
    UNIT_CODE  PARAM1               PARAM2               PARAM3               PARAM4
    ---------- -------------------- -------------------- -------------------- --------------------
    00000      Default value        Default value        Default value        {null}
    10         {null}               Value from 10        Value from 10        {null}
    10-01      {null}               {null}               Value from 10-01     {null}
    10-02      {null}               {null}               {null}               Value from 10-02
    20         Value from 20        Value from 20        Value from 20        {null}
    20-01      {null}               Value from 20-01     {null}               {null}
    20-02      {null}               Value from 20-02     {null}               {null}
    The application queries the table of parameters to get a parameter value for a given unit.
    The parameter resolution algorithm is pretty simple: when you query a unit, the applicable parameter is set to the required level. If the parameter is undefined (null) to the required level, the value of the parameter to be returned is defined next in the hierarchy parent. In some rare cases, it can be null if a parameter is not set anywhere from required at the top level.

    I made a request that seems to work when querying a unit at a time. It uses hierarchical operators (start by + connect by) with a bit of analytical functions. Here's a test & the raw output example:
    SQL> WITH hierarchy
      2  AS
      3  (
      4    SELECT ou.unit_code,
      5         LEVEL            AS lvl
      6    FROM   organization_unit ou
      7    START WITH
      8      ou.unit_code = '20-01'
      9    CONNECT BY
     10      ou.unit_code = PRIOR ou.parent_unit_code
     11  )
     12  SELECT h.*,
     13       p.param1                                                        AS param1_raw,
     14       LAST_VALUE (p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param1_with_last,
     15       FIRST_VALUE(p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param1_with_first,
     16       p.param2                                                        AS param2_raw,
     17       LAST_VALUE (p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param2_with_last,
     18       FIRST_VALUE(p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param2_with_first,
     19       p.param3                                                        AS param3_raw,
     20       LAST_VALUE (p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param3_with_last,
     21       FIRST_VALUE(p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param3_with_first,
     22       p.param4                                                        AS param4_raw,
     23       LAST_VALUE (p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param4_with_last,
     24       FIRST_VALUE(p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param4_with_first
     25  FROM   hierarchy                                h
     26         LEFT JOIN org_unit_parameters         p
     27         ON h.unit_code = p.unit_code
     28  ORDER BY h.lvl DESC;
    
    UNIT_CODE   LVL PARAM1_RAW           PARAM1_WITH_LAST     PARAM1_WITH_FIRST    PARAM2_RAW           PARAM2_WITH_LAST     PARAM2_WITH_FIRST    PARAM3_RAW           PARAM3_WITH_LAST     PARAM3_WITH_FIRST    PARAM4_RAW           PARAM4_WITH_LAST     PARAM4_WITH_FIRST
    ---------- ---- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- --------------------
    00000         3 Default value        Default value        Value from 20        Default value        Default value        Value from 20-01     Default value        Default value        Value from 20        {null}               {null}               {null}
    20            2 Value from 20        Value from 20        Value from 20        Value from 20        Value from 20        Value from 20-01     Value from 20        Value from 20        Value from 20        {null}               {null}               {null}
    20-01         1 {null}               Value from 20        {null}               Value from 20-01     Value from 20-01     Value from 20-01     {null}               Value from 20        {null}               {null}               {null}               {null}
    Seems pretty good, higher settings are well "propagated" down with the LAST_VALUE function. But, I don't understand why the use of FIRST_VALUE and oppposite command does not give the same result. A little more play with the last query to get the final result of a given unit code:
    SQL> SELECT *
      2  FROM
      3  (
      4     WITH hierarchy
      5     AS
      6     (
      7        SELECT ou.unit_code,
      8               LEVEL            AS lvl
      9        FROM   organization_unit ou
     10        START WITH
     11           ou.unit_code = '20-01'
     12        CONNECT BY
     13           ou.unit_code = PRIOR ou.parent_unit_code
     14     )
     15     SELECT h.*,
     16            LAST_VALUE (p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param1,
     17            LAST_VALUE (p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param2,
     18            LAST_VALUE (p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param3,
     19            LAST_VALUE (p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param4
     20     FROM   hierarchy                                h
     21               LEFT JOIN org_unit_parameters         p
     22               ON h.unit_code = p.unit_code
     23     ORDER BY h.lvl
     24  )
     25  WHERE ROWNUM = 1;
    
    UNIT_CODE   LVL PARAM1               PARAM2               PARAM3               PARAM4
    ---------- ---- -------------------- -------------------- -------------------- --------------------
    20-01         1 Value from 20        Value from 20-01     Value from 20        {null}
    Works well!

    But my ultimate goal is to create a view that properly solve all these parameters for each level of the organization with the good spread rather in new queries for each unit at once. I played a little, but without success. :( My current gross query is the following:
    SQL> WITH hierarchy
      2  AS
      3  (
      4     SELECT ou.unit_code,
      5            LPAD(' ',2*(LEVEL-1)) || ou.unit_code    AS tree,
      6            LEVEL                                    AS lvl
      7     FROM   organization_unit ou
      8     START WITH
      9        parent_unit_code IS NULL
     10     CONNECT BY
     11        PRIOR unit_code =  parent_unit_code
     12  )
     13  SELECT h.*,
     14         p.param1                                                        AS param1_raw,
     15         LAST_VALUE (p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param1_with_last,
     16         FIRST_VALUE(p.param1 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param1_with_first,
     17         p.param2                                                        AS param2_raw,
     18         LAST_VALUE (p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param2_with_last,
     19         FIRST_VALUE(p.param2 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param2_with_first,
     20         p.param3                                                        AS param3_raw,
     21         LAST_VALUE (p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param3_with_last,
     22         FIRST_VALUE(p.param3 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param3_with_first,
     23         p.param4                                                        AS param4_raw,
     24         LAST_VALUE (p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl DESC)   AS param4_with_last,
     25         FIRST_VALUE(p.param4 IGNORE NULLS) OVER (ORDER BY h.lvl ASC)    AS param4_with_first
     26  FROM   hierarchy                          h
     27            LEFT JOIN org_unit_parameters   p
     28            ON h.unit_code = p.unit_code
     29  ORDER BY h.unit_code;
    
    UNIT_CODE  TREE        LVL PARAM1_RAW                PARAM1_WITH_LAST          PARAM1_WITH_FIRST      PARAM2_RAW                   PARAM2_WITH_LAST          PARAM2_WITH_FIRST         PARAM3_RAW                PARAM3_WITH_LAST          PARAM3_WITH_FIRST         PARAM4_RAW                PARAM4_WITH_LAST       PARAM4_WITH_FIRST
    ---------- ---------- ---- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- ------------------------- -------------------------
    00000      00000         1 Default value             Default value             Default value          Default value                Default value             Default value             Default value             Default value             Default value             {null}                    Value from 10-02       {null}
    10           10          2 {null}                    Value from 20             Default value          Value from 10                Value from 10             Default value             Value from 10             Value from 10             Default value             {null}                    Value from 10-02       {null}
    10-01          10-01     3 {null}                    {null}                    Default value          {null}                       Value from 20-02          Default value             Value from 10-01          Value from 10-01          Default value             {null}                    Value from 10-02       Value from 10-02
    10-02          10-02     3 {null}                    {null}                    Default value          {null}                       Value from 20-02          Default value             {null}                    Value from 10-01          Default value             Value from 10-02          Value from 10-02       Value from 10-02
    20           20          2 Value from 20             Value from 20             Default value          Value from 20                Value from 10             Default value             Value from 20             Value from 10             Default value             {null}                    Value from 10-02       {null}
    20-01          20-01     3 {null}                    {null}                    Default value          Value from 20-01             Value from 20-02          Default value             {null}                    Value from 10-01          Default value             {null}                    Value from 10-02       Value from 10-02
    20-02          20-02     3 {null}                    {null}                    Default value          Value from 20-02             Value from 20-02          Default value             {null}                    Value from 10-01          Default value             {null}                    Value from 10-02       Value from 10-02
    As you can see, it's not that I was expecting. I know there is something to do with a PARTITION BY clause, but do not know how.
    Anyone know how to solve my problem?

    Thank you
    Bruno

    For the purposes of reproducibility, here is the code to create the structure and data:
    Here is the format of my paintings and a few samble data:
    CREATE TABLE organization_unit (
       unit_code         VARCHAR2(5 CHAR)   NOT NULL PRIMARY KEY,
       unit_name         VARCHAR2(100 CHAR) NOT NULL,
       parent_unit_code  VARCHAR2(5 CHAR)   
    );
    
    CREATE TABLE org_unit_parameters (
       unit_code         VARCHAR2(5 CHAR)   NOT NULL PRIMARY KEY,
       param1            VARCHAR2(100 CHAR),
       param2            VARCHAR2(100 CHAR),
       param3            VARCHAR2(100 CHAR),
       param4            VARCHAR2(100 CHAR)
    );
    
    -- Inserting data
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('00000', 'Top level', NULL);
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('10', 'L2 unit #10', '00000');
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('10-01', 'L3 unit #10-01', '10');
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('10-02', 'L3 unit #10-02', '10');
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('20', 'L2 unit #20', '00000');
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('20-01', 'L3 unit #20-01', '20');
    
    INSERT INTO organization_unit (unit_code, unit_name, parent_unit_code) 
    VALUES ('20-02', 'L3 unit #20-02', '20');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param1, param2, param3)
    VALUES ('00000', 'Default value', 'Default value', 'Default value');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param2, param3)
    VALUES ('10', 'Value from 10', 'Value from 10');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param3)
    VALUES ('10-01', 'Value from 10-01');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param4)
    VALUES ('10-02', 'Value from 10-02');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param1, param2, param3)
    VALUES ('20', 'Value from 20', 'Value from 20', 'Value from 20');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param2)
    VALUES ('20-01', 'Value from 20-01');
    
    INSERT INTO ORG_UNIT_PARAMETERS (unit_code, param2)
    VALUES ('20-02', 'Value from 20-02');
       
    COMMIT;

    Hi, Bruno.

    You almost had it!
    Take your query that gets good results for a single node. Remove the START WITH clause so that it does the same thing for each node. You will need to add CONNECT_BY_ROOT to remember what node you started with in each case and PARTITION BY calling value in all the LAST_VALUE function:

    WITH hierarchy
    AS
    (
         SELECT  ou.unit_code               AS ancestor_unit_code,
                     LEVEL                    AS lvl,
              CONNECT_BY_ROOT      ou.unit_code     AS descendant_unit_code
           FROM        organization_unit     ou
           CONNECT BY    ou.unit_code  = PRIOR  ou.parent_unit_code
    )
    , got_params     AS
    (
         SELECT       h.descendant_unit_code          AS unit_code
         ,       h.lvl
         ,       LAST_VALUE (p.param1  IGNORE NULLS) OVER ( PARTITION BY  h.descendant_unit_code
                                                                ORDER BY        lvl     DESC
                                               )    AS param1
         ,       LAST_VALUE (p.param2  IGNORE NULLS) OVER ( PARTITION BY  h.descendant_unit_code
                                                                ORDER BY        lvl     DESC
                                               )    AS param2
         ,       LAST_VALUE (p.param3  IGNORE NULLS) OVER ( PARTITION BY  h.descendant_unit_code
                                                                ORDER BY        lvl     DESC
                                               )    AS param3
         ,       LAST_VALUE (p.param4  IGNORE NULLS) OVER ( PARTITION BY  h.descendant_unit_code
                                                                ORDER BY        lvl     DESC
                                               )    AS param4
         FROM               hierarchy           h
         LEFT OUTER JOIN  org_unit_parameters     p  ON     h.ancestor_unit_code     = p.unit_code
    )
    SELECT       unit_code, param1, param2, param3, param4
    FROM       got_params
    WHERE       lvl     = 1
    ;
    

    Output:

    NIT_ PARAM1           PARAM2           PARAM3           PARAM4
    ----- ---------------- ---------------- ---------------- ----------------
    00000 Default value    Default value    Default value
    10    Default value    Value from 10    Value from 10
    10-01 Default value    Value from 10    Value from 10-01
    10-02 Default value    Value from 10    Value from 10    Value from 10-02
    20    Value from 20    Value from 20    Value from 20
    20-01 Value from 20    Value from 20-01 Value from 20
    20-02 Value from 20    Value from 20-02 Value from 20
    

    I hope that's what you want. I don't see the exact results you wanted posted anywhere.

    Thanks for posting the CREATE TABLE and INSERT statements; It is very useful.

    The difference between LAST_VALUE (... DESC) and FIRST_VALUE (... CSA) has to do with the default windowing.
    Say that we try to calculate FIRST_VALUE and LAST_VALUE on a line where lvl = 1, and it has 2 and 3 lvls in the same partition.
    LAST_VALUE (... ORDER BY DESC lvl) means the window includes lvl = values 1 and all the highest (i.e., 2 and 3).
    FRIST_VALUE (...) ORDER BY DESC lvl) means the window includes lvl = 1 and all the values (which, of course, their absence)
    It is because the widow of default is BETWEEN UNBOUNDED PREVIOUS AND CURRENT ROW, where "preceding" means lower values if you use ascending order, but higher values if you use descending order. We could use FIRST_VALUE to get the same results, but we will have to explicitly set the window in BETWEEN CURRENT_ROW AND UNBOUNDED FOLLOWING.

    Published by: Frank Kulash, November 12, 2010 12:46
    Additional explanation of LAST_VALUE

    Published by: Frank Kulash, November 12, 2010 13:04
    Beheading has been corrected.

  • How can I get a query in the search field to open in a new tab or a new window, and the current window?

    How can I get a query in the search field to open in a new tab or a new window, and the current window?

    If you are looking through the search bar in the Navigation toolbar, this preference can be changed to research it open in a tab.

    Type of topic: config in the address bar and press ENTER. Then answer "I'll be careful." Type this pref in the search at the top.

    Browser.Search.openintab = double click to switch to true

  • On my iTouch Gen 5, to access the app store results by requiring a password to one account Yahoo, I deleted a year ago.  All other parameters recognizes my current e-mail and password.  I tried everything I can think of.  Ideas?

    On my iTouch Gen 5, to access the app store results by requiring a password to one account Yahoo, I deleted a year ago.  All other parameters recognizes my current e-mail and password.  I tried everything I can think of.  Ideas?

    What you are your trying to do?

    If you update the application, you enter log on the account that was purchased to update. It looks like your case.

  • How can I programmatically change the parameters of voltage range in a DAQ Assistant

    Hello

    First post here.

    I need to be able to change the properties of voltage range of a daqmx assistant DAQ based on user input.  My material, an SCXI module - 1102C does not change this property on a running task, so I would together the range of input voltage analog before activating the DAQ Assistant, or break the DAQ Assistant immediately after it starts, set the values, and then resume.

    I don't know how to change the task ahead because the DAQ assistant creates the task when it is running, and there is no job before that.

    In the attached photo, I have a conditional section, configured to run only if the loop iteration is 0.  I take the task of the Daq assistant, sending him stop vi of task, set the property and then send the task with the snap the vi task. I can watch him run with lightweight debugging on, and everything seems to work properly, but on the second (and all others) iteration of the loop, I read I. Max and it seems that a re DAQ Assistant set it to the 5V.  You can see what's going wrong here?

    BTW, there is a continuous acquisition and the code doesn't produce error messages when executing.

    I've encountered a similar question someone posted here in 2006, but his question was specifically a Labview API (VB, I think) and not a real solution of G.

    Attached are the real vi in question and a PNG of the block diagram.

    Thank you!

    Ruby K

    First of all, if you want to start getting beyond the basics with the DAQ hardware, you have to stop using the DAQ assistant and do it with lower level VI DAQmx.  There are hundreds of examples in the finder of the example.  You can even make a right-click on the DAQ assistant and select open front panel.  This will create a Subvi, you can open and see what is happening behind the scenes.  Do it.  I think you will find that the task DAQ is recreated on each (although I'm not 100 percent the way parameters are established or maintained in each section of this sub - VI).

    The second problem is that you have a bit of a race on iteration 0 condition.  These two property DAQ nodes are running at the same time.  Thus, when you read the AI. Max, this can happen before or after the AI. Max is located in the structure of your business.

    Thirdly, make sure that involve you your son of the error.

  • Can a module SCXI 1102 with a block of 1303 b cause some channels of reading of the voltage signals and other signals of current reading at the same time?

    Hello

    I'm trying to use two sensors of moisture Omega HX85BA and experience two CFI mass flowmeters in current loop. Humidity sensors have three outputs 0 - 10V, while flow meters have two outputs 4-20 Ma. Can I have all four sensors to wire to the same block of connection SCXI-1303 and read all the signals in the same VI? the block is connected to an SCXI 1102 b card and a 6052E DAQ of NI PCI card.

    Thanks in advance!

    Hello BBalmforth,

    Yes it can. Although you will need external resistances (I recommend resistors precision for better accuracy) for current signals. The SCXI 1102 b is indirectly measuring the current by measuring the voltage drop across the resistance. The table below describes the current diagram and how it will seek in LabVIEW and DAQ assistant.

    Wiring diagram

    LabVIEW

    DAQ Assistant

    Kind regards

    Izzy O.

    Technical sales engineer

    National Instruments

    NI.com/support

  • How to set the parameters of "Configuration ThinPro" via the HP Device Manager

    Hello

    Maybe I'm blind, but how can I set the settings in "Setup ThinPro', accessible from

    ThinPro Control Center-->

    Control Panel-->

    Setup-->

    Configuration ThinPro

    through the HP Device Manager? These parameters allows to use a very strict kiosk mode, which we want to deploy. So far I found just to solve this problem through a complete picture, but this isn't a solution for me.

    I hope that I have forget something or you have another clue.

    Concerning

    Looks like there is no direct way via the HP Device Manager. Now, I manually configure a thin Client and save the registry.xml that I can ride with other devices.

    Concerning

  • ADF: How to print the query and the query passed into the class executeQueryForCollection methof impl VO parameters.

    Hello

    Kindly let me know how to print the query, and the parameters passed to it? I tried with the params parameter in super.executeQueryForCollection (qc, params, noUserParams); but could not succeed.

    I need save the query and the parameters passed to it. Kindly help.

    Thanks in advance,

    Kalpana.

    Here you go

    Coding with Passion: Oracle ADF - Debug Mode object query with parameters

Maybe you are looking for

  • HP EliteBook 840 G3 Base model: HP EliteBook 840 G3 model Notebook PC SIM Foundation crack

    Hello I did have success using a SIM card in the SIM slot. The model in question does not recognize the SIM card and does nothing. Have already installed all known for human pilots, but still it does not work... I was wondering if anyone else had the

  • Graphic AMD HD 7450 now supported on many systems

    Lenovo AMD 7450 DisplayPort DVI Graphics Card (T 03, 8170) with 1 GB of memory on board brings impressive treatment and power DX11 Graphics Media Accelerator systems office at an incredible value. Boost productivity through multi-surveillance or use

  • Split 13 x 2 touchpad no longer works

    I have a new split of HP 13 x 2. The touchpad no longer works. This is the latest driver Synaptics Touchpad (17.0.10.9). I'm under WIN 8.1. I have to close the session and then again for the touchpad to start working again. Any suggestions?

  • Error-41110 in excel report

    Hi all I am doing a test for myDAQ report. I want to do a report for a number of test in an excel sheets calculation but separate file. The first worksheet should contain the title, the time and date. While the second worksheet must contain test resu

  • Extract a variable number of bits of byte array

    Hello I was working on the decoding of a binary file and one of the tasks is to extract data from a fixed-length U8 array variable bits. The image below is a simple illustration of this particular task. Now, before you post you solution, I have alrea