Read the column of XMLTYPE with Parent and several child nodes

Hello

I have an xmltype column which stores the data in the format below. There is possible that some of the parent node will have several child nodes. I'm not able to extract children nodes. Get the error as a value of type multiset... required singleton...
I tried the sub query, but it returns only the records from parent with children nodes.

< CrntRgstns >
< CrntRgstn empStDt = '2000-08-21' Auth = 'ABCD' regCat = 'BM' u4FlngDt = '2011-05-12' stDt = '2011-11-08' st 'EMPTY' = actvReg = "N" updateTS = "2011-11 - 08T 00: 37:42" >
< CrntDfcnys / >
< / CrntRgstn >
< CrntRgstn empStDt = '2000-08-21' Auth = 'ABCD' regCat = 'BM' u4FlngDt = '2012-01-13' stDt = '2012-01-13' st = 'DÉFICIENT' actvReg = 'Y' updateTS = "2012-01 - 13 T 18: 02:19" >
< CrntDfcnys >
< CrntDfcny dfcnyCd = "TEST" exmCd = "M10" createDt = "2012-01-13" / >
< CrntDfcny dfcnyCd = "TEST" exmCd = "X 40" createDt = "2012-01-13" / >
< / CrntDfcnys >
< / CrntRgstn >
< CrntRgstn empStDt = "2000-08-21" Auth = "XYZ" regCat = "SU" u4FlngDt = '2012-01-13' stDt = '2012-01-13' st = 'DÉFICIENT' actvReg = 'Y' updateTS = "2012-01 - 13 T 18: 02:19" >
< CrntDfcnys >
< CrntDfcny dfcnyCd = "TEST" exmCd = "M10" createDt = "2012-01-13" / >
< CrntDfcny dfcnyCd = "TEST" exmCd = "X 40" createDt = "2012-01-13" / >
< / CrntDfcnys >
< / CrntRgstn >
< / CrntRgstns >

I tried to use 2 xmltable querys and using the child node of the xmltable 1 as input to xmltable 2. But it returns only the records that has child nodes. But I wanted all the records of CrntRgstn and if no child node CrntDfcnys so that also displays.

Thank you
Vinod K

I tried to use 2 xmltable querys and using the child node of the xmltable 1 as input to xmltable 2. But it returns only the records that has child nodes.

You're almost there, you just have to do an outer join:

SQL> select x1.empStDt
  2       , x1.Auth
  3       , x1.regCat
  4       , x2.*
  5  from documents t
  6     , xmltable(
  7         '/CrntRgstns/CrntRgstn'
  8         passing t.xmldoc
  9         columns empStDt date         path '@empStDt'
 10               , Auth    varchar2(30) path '@Auth'
 11               , regCat  varchar2(2)  path '@regCat'
 12               , CrntDfcnys xmltype   path 'CrntDfcnys'
 13       ) (+) x1
 14     , xmltable(
 15         '/CrntDfcnys/CrntDfcny'
 16         passing x1.CrntDfcnys
 17         columns dfcnyCd  varchar2(30) path '@dfcnyCd'
 18               , exmCd    varchar2(3)  path '@exmCd'
 19               , createDt date         path '@createDt'
 20       ) (+) x2
 21  ;

EMPSTDT     AUTH                           REGCAT DFCNYCD                        EXMCD CREATEDT
----------- ------------------------------ ------ ------------------------------ ----- -----------
21/08/2000  ABCD                           BM
21/08/2000  ABCD                           BM     EXAM                           M10   13/01/2012
21/08/2000  ABCD                           BM     EXAM                           X40   13/01/2012
21/08/2000  XYZ                            SU     EXAM                           M10   13/01/2012
21/08/2000  XYZ                            SU     EXAM                           X40   13/01/2012
 

Note: I have tested the above on 11.2.0.2 and it seems that there is a bug, if we add an outer join on the first XMLTable operator too.
Normally, the first outer join is not necessary, in order to also test on your version without it.

Tags: Oracle Development

Similar Questions

  • How to avoid the stalemate between count with all and several calls from an EP getBackingMapEntry...

    We have a processor input, which initiates a transaction lite by calling getBackingMapEntry on several similar entries.  The same cache distributed these similar entries of accommodation also simultaneously services count with all call and we often a blocking scenario comes from the fact that the count with all call trying to access/key in the same cache block - but in a different sequence - date entry processor accessed (for example, the European Parliament access to similar input 1 then similar input 2 while the count with all attempts to block the same but entries in sequence 2) then the entry 1).  The obvious solution is to change the sequence entry processor accesses these entries to match the sequence used by the count with all operation, but we do not know what sequence consistency applies to operations NamedCache.getAll.  Anyone know?  We believe that we excluded (e.g., consistency does not consider wrt the count with all access sequence) the following:

    • The sequence in an ordered collection of keys such as a list that is passed as an argument to count with all operation
    • The hash code of the key value
    • Any use of Comparable on the keys

    We use 3.7.1 consistency where it varies between 3.7.1 and 12 c.

    Thanks in advance.

    We've thought of it (always happens shortly after the publication on a support site).  If anyone is curious, it seems that the binary class implements Comparable and that consistency sorts instance converted by binary key and access the Scriptures based on this order sorted.  If the entry processor converts the keys to binary instances, sorts and accessed in sorted order, there is no potential blocking (of our observations, at least).  It would be nice if Oracle should document this that people better understand how to write safe concurrent code.

  • I have a table with a city of the column. Values are 'delhi' and 'hyderabad '.

    I have a table with a city of the column. Values are 'delhi' and 'hyderabad '.

    as

    ID |   City

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

    1     |  Delhi

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

    2     |  Hyderabad

    Now, I have to update Delhi and Hyderabad Hyderabad with Delhi.

    How to do this?

    Hi Indi,

    (1) why do you want what it? Requirements of companies?

    (2) how much these values you want to reverse? Is it only "Delhi" and "Hyderabad", or there is a list, or other logic?

    Update your_table

    Set city = decode (lower (city), 'delhi', 'Hyderabad', 'hyderabad', 'Delhi')

    where lower (city) ('Delhi', 'hyderabad');

    Does that help?

  • Error loading XML file in the column of XMLTYPE through SQL loader

    Hi gurus,

    I am trying to load the XML file into the column of XMLTYPE through SQL Loader but the errors themselves. Here are the details

    Databases
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Jul 24 17:17:55 2012
    
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    The table structure
    CREATE TABLE TH_XML
    (
      COL_ID_1   VARCHAR2(100 BYTE),
      IN_FILE_1  XMLTYPE
    )
    XMLTYPE IN_FILE_1 STORE AS CLOB (TABLESPACE SMDAT)
    XML (simple.xml) file
    <?xml version="1.0"?>
     <catalog> 
     <book id="bk101"> 
               <author>Some Author1</author> 
               <title>Some Title1</title> 
               <genre>Computer</genre> 
               <price>44.95</price> 
               <publish_date>2000-10-01</publish_date> 
               <description>creating applications</description> 
       </book> 
       <book id="bk112"> 
               <author>Some Author2</author> 
               <title>Some Title2</title> 
               <genre>Computer</genre> 
               <price>49.95</price> 
               <publish_date>2001-04-16</publish_date> 
               <description>Microsoft Visual Studio 7 is explored in depth</description> 
    </book> 
    </catalog>
    Control file
    LOAD DATA
    INFILE 'c:\simple.xml'
    APPEND
    INTO TABLE TH_XML 
    XMLTYPE(in_file_1)
    (
    col_id_1 filler  CHAR (100),
    in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF
    )
    LOG file
    SQL*Loader: Release 10.2.0.3.0 - Production on Tue Jul 24 16:42:25 2012
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Control File:   c:\my_file.ctl
    Data File:      c:\simple.xml
      Bad File:     c:\simple.bad
      Discard File:  none specified
     
     (Allow all discards)
    
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    
    Table TH_XML, loaded from every logical record.
    Insert option in effect for this table: APPEND
    
       Column Name                  Position   Len  Term Encl Datatype
    ------------------------------ ---------- ----- ---- ---- ---------------------
    COL_ID_1                            FIRST   100           CHARACTER            
      (FILLER FIELD)
    IN_FILE_1                         DERIVED     *  EOF      CHARACTER            
        Static LOBFILE.  Filename is c:\simple.xml
    
    Record 1: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 2: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 3: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 4: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 5: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 6: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 7: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 8: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 9: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 10: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 11: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 12: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 13: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 14: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 15: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 16: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 17: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 18: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 19: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 20: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 21: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 22: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    Record 23: Rejected - Error on table TH_XML.
    ORA-00904: "SYS_NC_ROWINFO$": invalid identifier
    
    
    Table TH_XML:
      0 Rows successfully loaded.
      23 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    
    
    Space allocated for bind array:                    256 bytes(64 rows)
    Read   buffer bytes: 1048576
    
    Total logical records skipped:          0
    Total logical records read:            23
    Total logical records rejected:        23
    Total logical records discarded:        0
    
    Run began on Tue Jul 24 16:42:25 2012
    Run ended on Tue Jul 24 16:42:26 2012
    
    Elapsed time was:     00:00:00.23
    CPU time was:         00:00:00.05
    I get error ORA-00904: "SYS_NC_ROWINFO$": invalid identifier in the logfile (mentioned above). Could someone help me know where I am doing wrong?

    Thanks in advance.

    Published by: 876991 on 24 July 2012 14:18

    Hello

    This remove the control file:

    XMLTYPE(in_file_1)
    

    It is used only if the target table is an array of XMLType object.

    For an XMLType column LOBFILE is sufficient, for example:

    LOAD DATA
    INFILE *
    APPEND INTO TABLE TH_XML
    (
     col_id_1  CHAR (100),
     in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF
    )
    begindata
    MYID1
    

    It tells SQL * Loader data consisting of one record with COL_ID_1 = "MYID1" and content = "c:\simple.xml" IN_FILE_1

    SQL> CREATE TABLE TH_XML
      2  (
      3    COL_ID_1   VARCHAR2(100 BYTE),
      4    IN_FILE_1  XMLTYPE
      5  );
    
    Table created.
    
    SQL> host sqlldr control=test.ctl
    Username:dev
    Password:
    
    SQL*Loader: Release 11.2.0.2.0 - Production on Mer. Juil. 25 01:30:46 2012
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    Commit point reached - logical record count 1
    
    SQL> set long 5000
    SQL> column col_id_1 format a15
    SQL> select * from th_xml;
    
    COL_ID_1        IN_FILE_1
    --------------- --------------------------------------------------------------------------------
    MYID1           
                     
                     
                               Some Author1
                               Some Title1
                               Computer
                               44.95
                               2000-10-01
                               creating applications
                       
                       
                               Some Author2
                               Some Title2
                               Computer
                               49.95
                               2001-04-16
                               Microsoft Visual Studio 7 is explored in depth
                    
     
    
  • I have the laptop Latitude 630 with Vista and want to upgrade to Windows 7. This laptop will be able to upgrade to Windows 7?

    I have the laptop Latitude 630 with Vista and want to upgrade to Windows 7. This laptop will be able to upgrade to Windows 7?

    original title: to upgrade

    Hello

    Read this information before you buy Windows 7:

    "Windows 7 Upgrade Advisor.

    http://www.Microsoft.com/download/en/details.aspx?ID=20

    "Windows 7 system requirements"

    http://Windows.Microsoft.com/en-us/Windows7/products/system-requirements

    And here is the site of Dell to see if Dell has Windows 7 drivers available for your model

    http://www.Dell.com/support/drivers/us/en/19/DriversHome/NeedProductSelection

    See you soon.

  • Can not connect with the Adobe server to upgrade the PS. Tried with fiervall and the router and called my provider. She is also only CC there are problems!

    Can not connect with the Adobe server to upgrade the PS. Tried with fiervall and the router and called my provider. She is also only CC there are problems!

    Check your hosts file.

    help for that and other adobe.com sure common connection problems read, http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

  • Could you please tell me the name of the program that plays the files (mp3) begins with V and resembles a cone orange and white?

    Could you please tell me the name of the program that plays the files (mp3) begins with V and resembles a cone orange & white?

    VLC.

    http://www.videolan.org/VLC/

  • I bought windows 7 in a store, but my windows xp cannot read the dvd. can I download 7 and use the product key, rather than buy it again?

    I bought windows 7 in a store, but my windows xp cannot read the dvd. can I download 7 and use the product key, rather than buy it again? I bought an old compaq desktop computer, and I want to update.

    It's probably too late because you have unsealed the package, but as you have relatively minor glitch of the material do not have a DVD player, did you use the (free) Windows 7 Upgrade Advisor to determine whether your computer hardware is capable of running Windows 7?

  • Can someone copy the solitaiare program shipped with XP and send it to me?

    Can someone copy the solitaiare program shipped with XP and send it to me?

    The original fix told to look for "Windows setup" in Add/Remove programs - I have not this to be listed. I searched my computer whole looking for 'sol.exe' does not exist. It must have been removed for cleaning upwards, I have no other games. Who knows, it is an old computer, I give my people JUST TO PLAY SOLITAIRE. Any other ideas?

    Can someone copy the solitaiare program shipped with XP and send it to me?

    Hello

    ·         Did you try clicking Add/Remove Windows components in Add or remove program?

    Solitaire game is built into Windows XP, you can install it via Add/Remove Windows components in Add / Remove Program:

    (a) Insert Windows XP CD

    (b) open the Control Panel

    (c) open Add or remove programs

    (d) on the left side of the window Add or remove programs , you will see Add/Remove Windows components.

    (e) click on Add/Remove Windows components , it will open Windows Components Wizard.

    (f) double click on Accessories and utilities it will open window utility and accessories.

    (g) games -double-click and select the box checkbox on Solitaire.

    (h) click Ok and Next to reinstall the game of Solitaire.

    If the check box is already selected for the games, you can try if you deselect and rechecked the games area, then check if it helps.

    How do I add or remove games in Windows XP

    http://support.Microsoft.com/kb/307768

  • I have the plan of photography with photoshop and Lightroom 5. I tried to open a catalog I had created it said the photographs were again for the Lightroom I. I have a Mac and downloaded Didier, thinking I would get a new update of lightroom.

    I have the plan of photography with photoshop and Lightroom 5. I tried to open a catalog I had created it said the photographs were again for the Lightroom I. I have a Mac and downloaded Didier, thinking I would get a new update of lightroom. It did not. Should I expect Lightroom cc and extra cost that would be for me?

    Please open the app creative cloud on your computer and the gpo tot app tab. If you are not able to see the Lightroom CC listed, sign out and sign in the creative cloud.

    Here is the screenshot for how you can download the application from the creative cloud

    Thank you

  • How to access the attribute of the Parent of a child node?

    Hello

    I'm trying to accomplish something simple here, by accessing the value of the attribute of the node parent to a value of the child. I have the date given here, but I'll try to find the name of the event to the date, the name of the event or the attribute parent date.

    I have the code here, as in the following, but I kept getting #1009 error term undefined in line with parent() inside. Could someone please guide me on how to solve this problem?

    Thanks in advance.

    Alice

    "alice_data" wrote in message
    News:gr2fkh$CRE$1@forums. Macromedia.com...
    > Hi,.
    >
    > I am trying to accomplish something simple here, by accessing the parent company
    > value of the attribute of the node to a value of the child. I have the date given here,
    > but I
    > trying to find the name of the event of the day, including the name of
    > the
    > event is the attribute of date parent.
    >
    > I have the code here, as in the following, but I kept getting term #1009
    > not
    > set the error on line with parent() inside. Could someone please guide
    > me on
    > How do I fix this?
    >
    > Thanks in advance.
    >
    > Alice
    >
    > Excerpt from Actionscript:
    >
    > var resultC:XMLList;
    > resultC = searchResult... Book.schedule_item.date;
    > var resultD:XMLList;
    >
    > / * The following two lines kept giving me some bad mistakes #1009
    >
    > / / resultD = resultC.parent () .@type;
    > / / trace ("It's D" + resultD + "\n");
    >
    > / * End of error
    >
    > var resultC_collection:XMLListCollection = new
    > XMLListCollection (resultC.*);
    >
    > //Debug goal, print the string the result selected XML
    > trace ("this is the result:" + resultC);
    >
    > XML:
    >
    >
    > 20/03/2009
    > 22/03/2009
    >

    I think your problem is that resultC is an XMLList. Go to the parent company, you
    necessary to arrive at a SINGLE element in the list. Even if it is a list that contains
    a single element, which is not the same as a single element.

    Try

    Note that I do not book in your xml, so I doubt that is correct
    resultC is searchResult.child('book') .child ('schedule_item').child('date');.

    resultD resultC = [0] .attribute () .parent ('type');

    Note that the syntax that you used will break if no element has not one
    child or the attribute corresponding to your request, so I used the more verbose syntax.

    HTH;

    Amy

  • Reading the file in spreadsheet with a variable number of delimiters

    Dear Forum,

    I would like to read a file in spreadsheet (text) generated by a 3rd party program. It turns out that, while the program generates columns separated by spaces, the number of spaces between the columns varies in a way that I still have to sort out. This isn't a problem if I want to

    to read in the file in excel (or equivalent) - but the functions of 'chain of worksheet to the table' LabView does not seem to be able to deal with him - if I get home 'space' as a separator it only accepts one * only * space... is possible to indicate "zero or more" spaces to this function? [I know I can do a lot of loops and read the elements of a number at a time, but it is very slow, so I'd rather avoid it]

    Thank you

    Niels

    Hello Marshall,.

    The string of worksheet to the table can actually accept an array of delimiters, so you can wire a table 1 d that contains the delimiters you want to watch for--one, two, or three spaces, etc.

    To do this, simply create an array of strings 1 d containing delimiters and son in the entry delimiter in the upper part of the primitive.  Like most primitives, function is polymorphic.

    If the program that generates this file does not limit the spaces he inserts somehow or uses spaces elsewhere in the data, you might encounter problems, but for most cases, I think that should suffice.

    Best regards

  • Only read the columns in planning Webform


    Hi all

    I create a form with the period (month jan, Feb and March) and members of the custom called Type dimension in the columns.

    Members of Type dimension I selelcted is Type1, Type2, Adj Type1 and Type2 Adj.

    My requirement is that I want to show Type1 and Type2 columns as READ ONLY where users should not enter data in these two coulmns.

    Is it possible to achieve this requirement.  I use 11.1.2.2 planning version.

    Any suggestion would be appreciated.

    Thanks in advance

    Hello

    Please follow the steps below to make columns read-only in Hyperion special 11.1.2.2.

    (1) to open the form in edit mode

    2) click on the Layout tab, the Layout tab is open. Please click on the underside of the column you want to do in 'read only' (A, B, C, etc.), if you have three columns, then you might see A, B and C.

    Note: The mouse cursors are very sensitive in the latest version, if you click on the right place, you will get the necessary decorum, otherwise it will appear not all properties.

    In this example, let B column read-only. Exactly to move the cursor to 'B' and click on the right side, you can see a lot of action, click on 'Properties of Segment' and under this 'Read only' option, select this check box to make the column read-only.

    Thank you

    Prakash

  • How can I improve the rate of acquisition with daqmx and usb-6008?

    Hello

    I am trying to acquire data of analog voltage with a USB-6008. I'm under Labview 8.5 student on an HP laptop with a 1.33 Ghz cpu and 736MB RAM, apparently. I tried using the Daq assistant and the low-level Daqmx functions. My best results come with a task set in MAX for my analog input, and using the function 'Daqmx read' the 'unique double 1 d sample' value in a while loop. I insert the values returned in a table which built in the while loop, and then when I'm done, I check the number of samples in the table. In the test VI attached, I also use the time to Get before and after all loop. The best sampling rate I made using this method, is around 40samples/second. I have attached a VI below that illustrates this concept. In my actual application, the data acquisition code runs at a time while loop with 1ms, parallel to other code that controls the device I'm collecting data of. The sampling rate is roughly the same for my test below VI and my application program.

    The 6008 datasheet gives the sampling frequency maximum 10 kHz. I'd be happy with 2 to 2.5 kHz, or as soon as possible; I'm sure that I can achieve a little more than 40 Hz. My first idea was tied to the hardware, but the 6008 cannot make acquisitions NI hardware.

    My question is: How can I implement a faster sampling of analog voltages to a USB-6008 in LAbview? If I can't do it, is there another way I can taste the data more quickly?

    Thank you

    -SK-

    To the best of my knowledge, the USB-6008 can do timed equipment acquisition. Don't forget that this is a multiplexed device, so if you add 8 channels so the maximum you can set is 10 k/8

    If you are new to LabVIEW, I suggest that you try this sample program first

    \examples\DAQmx\Analog In\Measure voltage. llb\Acq & Graph tension-Int Clk.vi

    Amit

  • read the values of an array element and by sending a digital output to a designated channel according to the value read from the table

    Hello world

    could someone help me before I get out of my hair. Here's my problem.

    I read 3 values of an array of 3 elements i.e. 1,2,3. These values are then compared to a constant value, example if the first element of the array is 1 and it meets the comparison condition can send a digital camera of output for that channel on data acquisition

    I want to be able to send a value from a table to its corresponding comparison and then on its designated channel on the acquisition of data, the whole point of this is due to the fact the table element will not always read the value 1,2,3 for example could be 2,3,1

    Here's one the vi I have so far

    If someone could help it would be much appreciated

    all the best

    brand

    Take time to explore the many examples included with LabVIEW that cover the basics.

    -Indexing table

    -reading a spreadsheet file

Maybe you are looking for