transmit CAN table

Hello

my ECU needs a special framework, which contains a lot of information about the vehicles. It is a cyclic structure, but each transmitting the frame contains another load. It is a kind of table, which is a table 2D with 5 x 8 bytes.

The first show, the first line is sent. On the second, transmit the second row, etc. 6 transmission the first row is sent again, and so the table will be transmitted cyclical.

How to do this with XNET?

Find out about the type of Frame Out of session for XNET queued.  It allows you to define frameworks for out, allows that out of the database at a given speed.  When the queue is empty the transmission stops.  Make entries will be enqueue executives to go out one after the other.

Tags: NI Products

Similar Questions

  • Add an attribute of the element configuration table type programmatically.  How can I specify the type of table?

    I am trying to add a configuration item that is an array of strings.  I don't know how to do this programmatically and have it show as an array of strings.  I would like people to be able to use the client of vCO and only change these if needed is.  I managed to add items, but they appear as "modified".  I can retrieve all ok by programming, but I guess since one can table actually waiting variant values is done deal as the generic object rather than an array of strings.  Is it possible to force this type when I put the value via the api?  It's my test code:

    var testArray = new Array();
    testArray.push ("string1");
    testArray.push ("string2");
    element.setAttributeWithKey ("TestKey", testArray);
    This translates into an attribute of type table, but I like it to be of type Array/string;

    Paul, as far as I know, you must manually set your attribute types using the vCO client. You cannot specify the types using script.

  • NI-CAN Bus Monitor still works, but no examples of LabVIEW

    I have a USB-8473 on a PC running Windows XP I'm trying to monitor transmissions CAN go to an external device. No matter what settings I select in the Measurent Explorer & Automation, the bus monitor never miss a message and is completely error-free. Using the example "CAN receive error Frames.vi" included with NI-CAN 2.6.2 I get almost 100% error for all settings. I use 125000 baud in MAX and in the VI.

    Configuration:

    USB-8473

    NI-CAN 2.6.2

    MAX 4.5.1

    LabVIEW 8.6

    Any Suggestions?

    Thank you

    Jim

    Do you know what your baud rate? You can use the BTR values to program the SJA1000 with the settings real bit rate baud. The current formula should be the online help.

  • Properties of the NOR-XNET CAN frame timing type

    Hi all

    I have a problem of timing of the CAN. I start to read / write CAN bus every 10ms. I am using loops timed for this and I usually see 9ms / 10ms loop intervals of itteration, that's fine. However, sometimes my comms CAN down completely and that the loop can take 5 seconds to turns off once. The work rate of the cpu (from the Task Manager) does not seem too badly loaded)<>

    I noticed in the editor of database of NOR-XNET, I have the choice of the type of calendar. I am currently using the event data, but I was wondering if there was something I could do to use some kind of hardware timing for my transmissions CAN? Curiously, neither aid seems fairly limited for the calendar type (where my post here). Any help on what means the type of calendar options, and if a is likely to strengthen my time 10ms loop and (hopefully) stop my bus CAN lock up risks would be apprciated.

    Thank you very much.

    georgeofthejungle wrote:

    I use 'Framework in single point' for my readings and 'Unique exit point' for my writing.

    I chose the type of cyclic calendar with a time limit for the transmission of 10ms in my NOR-XNET database. It seems to be better now, - I haven't seen 1 instance of my may lock up repeatedly. I still have my loop timed to 10ms containing my NOR-XNET write VI.

    I'm not using a queued session, - if I understand correctly, the queue will hold managers and they will be released sequentially at intervals of 10 ms? The only point & cyclic timing so I understand that if a new image is written so the same frame will be published every 10ms. - it fits my needs for now.

    After reading the help, point one looks like it will work enough for you.  Keep in mind that if you finish writing twice before the next transmission 10 ms, you can miss an update signal.  This can happen if your software update of 10ms is not quite of the transmission of material 10 ms.

    With the type of cyclic calendar and Frame in single point, are my transmissions CAN timed material now? -They seem more regularly now and I have not had a case of the loop CAN lock up.

    The cyclical schedule will force the transmissions timed HW of the controller CAN then Yes, you're now HW timed for transmission.

    Thanks again for your help.

    I'm glad that your CAN bus seems to be much happier now.  Feel free to post if you have something else.

  • Create temporary table in the procedure

    I have a procedure which can be called at any time by multiple users. So I cann't use table in there, because on each call, the table is truncated and inserted. How can I create a temporary table in the procedure?

    Temporary tables in Oracle are different from other RDBMS like SQL Server.

    In Oracle, you create a global temporary table ONCE as part of the design of your database.

    create a global temporary table MyTableName (... columns...) on commit preserve rows;

    You can then use this table in your code as you would any other table.

    The difference is that any data that you insert in this table are only available/visible so that the code runs in the session, and if delete you / truncate the table it only removes the data for this session.  In this way, several sessions we can table without interfering with each other.

    (Note: instead of "preserve" you can change this to "delete" If you want that deleted data automatically when a commit is issued in your session, otherwise the data will be automatically deleted at the end of the session)

  • Como puedo crear una tabla Adobe Muse en?

    He buscado por todos sides y no he found formation of insertar o hacer una tabla in Muse. May fits as debo hacer?

    Muse is not to create tables in the traditional html tag

    . Nor has he a widget to do.

    There are third party widgets that can: tables

    Or you can use ' Object/InsertHTML' to import

    data to create your tables if you code html here.

  • Insert table with stored procedure

    Hello

    is it possible to use bind insert table in odp.net that calls a stored procedure, or who loses the point of contact of the table?

    I need to do at once two insertions in a parent table and the child table (get the primary key generated by a sequence in the first table.). Don't know if this can be done without storing seq.next_val somehow?

    Edit: I will extend the question and ask if the table bind sql text can be a block anonymous plsql

    Edited by: KarlTrumstedt 16-jun-2010 02:49

    You can do both. You can table insert a stored procedure and an anonymous block.

    Here's how (these are based on the ArrayBind example provided with the installation of ODP.net/ODT.

    Installation program:

    create table zdept (deptno number, deptname varchar2(50), loc varchar2(50));
    
    CREATE OR REPLACE PROCEDURE ZZZ (p_deptno in number, p_deptname in varchar2, p_loc in varchar2) AS
    begin
        insert into zdept values(p_deptno , p_deptname || ' ' || p_deptname, p_loc );
    end zzz;
    
     /**
     drop table zdept ;
     drop procedure ZZZ ;
     **/
    

    table and link it to the stored procedure call:

       static void Main(string[] args)
        {
          // Connect
          string connectStr = "User Id=;Password=;Data Source=";
    
          // Setup the Tables for sample
          Setup(connectStr);
    
          // Initialize array of data
          int[]    myArrayDeptNo   = new int[3]{1, 2, 3};
          String[] myArrayDeptName = {"Dev", "QA", "Facility"};
          String[] myArrayDeptLoc  = {"New York", "Maryland", "Texas"};
    
          OracleConnection connection = new OracleConnection(connectStr);
          OracleCommand    command    = new OracleCommand (
            "zzz", connection);
          command.CommandType = CommandType.StoredProcedure;
    
          // Set the Array Size to 3. This applied to all the parameter in
          // associated with this command
          command.ArrayBindCount = 3;
          command.BindByName = true;
          // deptno parameter
          OracleParameter deptNoParam = new OracleParameter("p_deptno",OracleDbType.Int32);
          deptNoParam.Direction       = ParameterDirection.Input;
          deptNoParam.Value           = myArrayDeptNo;
          command.Parameters.Add(deptNoParam);
    
          // deptname parameter
          OracleParameter deptNameParam = new OracleParameter("p_deptname", OracleDbType.Varchar2);
          deptNameParam.Direction       = ParameterDirection.Input;
          deptNameParam.Value           = myArrayDeptName;
          command.Parameters.Add(deptNameParam);
    
          // loc parameter
          OracleParameter deptLocParam = new OracleParameter("p_loc", OracleDbType.Varchar2);
          deptLocParam.Direction       = ParameterDirection.Input;
          deptLocParam.Value           = myArrayDeptLoc;
          command.Parameters.Add(deptLocParam);
    
          try
          {
            connection.Open();
            command.ExecuteNonQuery ();
            Console.WriteLine("{0} Rows Inserted", command.ArrayBindCount);
          }
          catch (Exception e)
          {
            Console.WriteLine("Execution Failed:" + e.Message);
          }
          finally
          {
            // connection, command used server side resource, dispose them
            // asap to conserve resource
            connection.Close();
            command.Dispose();
            connection.Dispose();
          }
        }
    

    "anonymous plsql block.
    Well Yes

        static void Main(string[] args)
        {
          // Connect
          string connectStr = "User Id=;Password=;Data Source=";
    
          // Setup the Tables for sample
          Setup(connectStr);
    
          // Initialize array of data
          int[]    myArrayDeptNo   = new int[3]{1, 2, 3};
          String[] myArrayDeptName = {"Dev", "QA", "Facility"};
          String[] myArrayDeptLoc  = {"New York", "Maryland", "Texas"};
    
          OracleConnection connection = new OracleConnection(connectStr);
          OracleCommand    command    = new OracleCommand (
            "declare dnumber number; dname varchar2(50) ; begin dnumber := :deptno;dname := :deptname;insert into zdept values (:deptno, :deptname, :loc); update zdept set deptname=dname || :loc where deptno = :deptno; end;", connection);
    
          // Set the Array Size to 3. This applied to all the parameter in
          // associated with this command
          command.ArrayBindCount = 3;
          command.BindByName = true;
          // deptno parameter
          OracleParameter deptNoParam = new OracleParameter("deptno",OracleDbType.Int32);
          deptNoParam.Direction       = ParameterDirection.Input;
          deptNoParam.Value           = myArrayDeptNo;
          command.Parameters.Add(deptNoParam);
    
          // deptname parameter
          OracleParameter deptNameParam = new OracleParameter("deptname", OracleDbType.Varchar2);
          deptNameParam.Direction       = ParameterDirection.Input;
          deptNameParam.Value           = myArrayDeptName;
          command.Parameters.Add(deptNameParam);
    
          // loc parameter
          OracleParameter deptLocParam = new OracleParameter("loc", OracleDbType.Varchar2);
          deptLocParam.Direction       = ParameterDirection.Input;
          deptLocParam.Value           = myArrayDeptLoc;
          command.Parameters.Add(deptLocParam);
    
          try
          {
            connection.Open();
            command.ExecuteNonQuery();
            Console.WriteLine("{0} Rows Inserted", command.ArrayBindCount);
          }
          catch (Exception e)
          {
            Console.WriteLine("Execution Failed:" + e.Message);
          }
          finally
          {
            // connection, command used server side resource, dispose them
            // asap to conserve resource
            connection.Close();
            command.Dispose();
            connection.Dispose();
          }
        }
    
  • Search for States in a country.

    Hello...

    What is the name of table to display values for search of States/provinces in all countries?

    Thank you

    Aravind rowing

    Hi Christophe,

    My understanding is that geography is not available by default. You must first check if the geography data is loaded for the country you are looking for. Then you can query HZ_GEO_STRUCTURE_LEVELS table to know what is the value of column of geography of GEOGRAPHY_ELEMENT_COLUMN for the State of your country. Then you can table for this value of country hz_geographies and get GEOGRAPHY_ELEMENT... query column.

  • Stands/Bugs/bad Performance on Mac

    Hi guys,.

    Im running Dreamweaver CS3 on a Mac Pro 8 x 2.8 Ghz XEON (a fast machine!).

    I am experiencing constant catch ups with DW. For example, about 50% of the time, when I drag a file local files to FTP server using FTP of Dreamweaver, my mouse stalls and gets stuck for about a second. Sometimes I get the spinning beachball. But it is generally a few stalls. Also when I use the menu sites and go to select another site, sometimes the menu remains stuck open, and I can't select the site on which I want.

    It is mainly mouse bug that is the most frustrating stall file transfer.

    Am I the only one having this problem? Is there something I can do to help solve this problem?

    I noticed there was some software updates for most of the CS3 applications, with the exception of dreamweaver.

    Sorry if this isn't the right place for this. But she has been driving me crazy. And given that I spend a LOT of my day to update web sites in this way, I hope it is something fixable?

    Mac OS X 10.5.2.

    See you soon,.

    Scott

    scottrichardson_sydney wrote:
    > Hi guys,.
    >
    > Im running Dreamweaver CS3 on a Mac Pro 8 x 2.8 Ghz XEON (a fast machine!).
    >
    > I am experiencing constant catch ups with DW. For example, approximately 50% of the time.
    > when I pull a file from local files on the server using Dreamweaver FTP
    > FTP, my mouse stops and gets stuck for about a second. Sometimes I get the
    > spinning beachball. But it is generally a few stalls. Also, when I use sites
    > menu and go pick another site, the menu has sometimes stuck open and I
    > can not choose the site that I want to.
    >
    > It's mainly the transfer file bug that is the most frustrating stall mouse.
    >
    > I'm the only one having this problem? Is there something I can do to help solve
    > This?
    >
    > I noticed there was some software updates for most of the CS3 applications, with the exception of
    > dreamweaver.
    >
    > Sorry if this isn't the right place for this. But she has been driving me crazy. And
    > because I spend a LOT of my day updating web sites in this way, hopefully
    > It is something fixable?
    >
    > Mac OS X 10.5.2.
    >
    > Cheers,
    >
    > Scott
    >

    If the most annoying problems that you get with FTP, I suggest using Transmit FTP instead of
    Dreamweaver.
    DW FTP has always been slow and clumsy, I think on any platform (although I also use a Mac).
    Transmit can FTP of Dreamweaver (by dragging the icon of the file open on the top of the window of DW in your)
    transmit icon in your doc) and you can just drag files to the Transmit icon in the doc, Mac
    View Finder and Transmit will automatically download to the right place in the right place. (sites
    must be defined in the show and that you should enable the option "docSend"). Very convenient.

    And Transmit somehow post and download files MUCH faster than DW.

    --
    SEB (@webtrans1.com)

    high-end web design: http://webtrans1.com
    a generator of clever Web site: http://sitelander.com
    Music: http://myspace.com/popmodelberlin

  • Need help working Oracle/PHP to ASP/Oracle conversion

    I don't know if it's the right place, but I was pulling my hair out trying to convert a PHP page in VBScript (ASP) without a bit of luck to all. Hours of research on Google and trial and error and grrrr... I hope someone can help.

    I am new to Oracle and PHP, but old in ASP/VBScript

    Windows Server 2003 R2
    IIS
    PHP

    I have an Oracle procedure on a remote computer on which I can NOT change. Out of my control. There is a PHP page on a web server that calls it and works very well. My boss wants me to convert the PHP ASP script (I know, but I have to work within those parameters. Sorry). On the one hand, I can't find many examples of the use of ASP with Oracle procedures. And those that I find are not complete examples or are displayed as questions. Everything I've tried so far either causes an error message I don't understand or not errors, but no data either. So, here is what I got:

    CREATE OR REPLACE PROCEDURE X_Doc_Num_Query)
    p_doc_num in VARCHAR2
    )
    AS

    -variables

    v_curr_sos_ric Pkg.curr_sos_ric%TYPE: = NULL;
    v_data VARCHAR2 (1000): = NULL;
    v_depot_ric Pkg.depot_ric%TYPE: = NULL;
    v_doc_num Rqn.Doc_Num%TYPE: = NULL;
    v_dodaac Rqn.cnsgne_dodaac%TYPE: = NULL; v_found_pkg BOOLEAN: = FALSE;
    v_found_rqn BOOLEAN: = FALSE;
    v_ic_cl_of_supply_cd Item_Control.cl_of_supply_cd%TYPE: = NULL;
    v_index directory: = 0;
    v_itcn Pkg.itcn%TYPE: = NULL;
    v_lca_inst Cddb_Force.lca_inst%TYPE: = NULL;
    v_pkg_niin Pkg.niin%TYPE: = NULL;
    v_proj_cd Rqn.proj_cd%TYPE: = NULL;
    v_rqn_niin Rqn.niin%TYPE: = NULL;

    -variables defined by the procedures define_status and package pkg_procsusl v_errcd VARCHAR2 (10): = NULL;
    v_errmsg VARCHAR2 (600): = NULL;
    v_errproc VARCHAR2 (30): = NULL;
    v_syserr BOOLEAN: = FALSE;

    -the variables defined by the procedure define_status

    v_status_cd VARCHAR2 (2): = NULL;
    v_status_dt DATE: = NULL;

    -package pkg_procsusl-defined variables

    v_citcn Ship_Unit.citcn%TYPE: = NULL;
    v_dep_ship_su Ship_Unit.dt_dep_ship%TYPE: = NULL;
    v_dt_ccps Ship_Unit.dt_ccps%TYPE: = NULL;
    v_dt_crpr Ship_Unit.dt_crpr%TYPE: = NULL;
    v_dt_hubr Ship_Unit.dt_hubr%TYPE: = NULL;
    v_dt_hubs Ship_Unit.dt_hubs%TYPE: = NULL;
    v_dt_lift SL.dt_lift%TYPE: = NULL;
    v_dt_ssar Ship_Unit.dt_ssar%TYPE: = NULL;
    v_dt_umfps Ship_Unit.dt_umfps%TYPE: = NULL;
    v_hub_tcn Ship_Unit.hub_tcn%TYPE: = NULL;
    v_mfst_ref SL.mfst_ref%TYPE: = NULL;
    v_mfst_sta SL.mfst_sta%TYPE: = NULL;
    v_mod_shp Ship_Unit.mod_shp%TYPE: = NULL;
    v_mode VARCHAR2 (10): = NULL;
    v_msn_num Flt.msn_num%TYPE: = NULL;
    v_save_erl_poel SL.dt_poel%TYPE: = NULL;
    v_save_erl_poel_pair SL.dt_poel%TYPE: = NULL;
    v_save_erl_poer SL.dt_poer%TYPE: = NULL;
    v_save_erl_poer_pair SL.dt_poer%TYPE: = NULL;
    v_save_lat_podf Ship_Unit.dt_podf%TYPE: = NULL;
    v_save_lat_podf_pair Ship_Unit.dt_podf%TYPE: = NULL;
    v_save_lat_podr Ship_Unit.dt_podr%TYPE: = NULL;
    v_save_lat_podr_pair Ship_Unit.dt_podr%TYPE: = NULL; v_pod Ship_Unit.pod%TYPE: = NULL;
    v_poe SL.poe%TYPE: = NULL;
    v_voyage_no SL.voyage_no%TYPE: = NULL;
    v_tdi Ship_Unit.tdi%TYPE: = NULL;

    -cursors

    CURSOR c_rqn (doc_num_in VARCHAR2) IS
    SELECT *.
    OF tangible
    WHERE doc_num = doc_num_in;

    CURSOR c_pkg (doc_num_in VARCHAR2) IS
    SELECT *.
    PKG
    WHERE doc_num = doc_num_in
    AND sup_pipe_cat <>'OB '.
    AND sup_pipe_cat <>"IA";

    -documents

    r_pkg Pkg % ROWTYPE;
    r_rqn tangible % ROWTYPE;

    -- functions ---------------------------------------------------------

    FUNCTION Find_Lca_Inst (dodaac_in VARCHAR2)
    RETURN VARCHAR2
    IS

    v_lca_cd Cddb_Force.lca_inst%TYPE;

    BEGIN

    SELECT lca_inst from v_lca_cd
    OF Cddb_Force
    WHERE dodaac = dodaac_in;
    RETURN v_lca_cd;

    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RETURNS A NULL VALUE.
    WHILE OTHERS THEN
    LIFT;

    END Find_Lca_Inst;

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

    FUNCTION Find_Supply_Cd (niin_in VARCHAR2)
    RETURN VARCHAR2
    IS

    v_supply_cd Item_Control.cl_of_supply_cd%TYPE;

    BEGIN

    SELECT cl_of_supply_cd from v_supply_cd
    OF Item_Control
    WHERE only = niin_in;
    RETURN v_supply_cd;

    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RETURNS A NULL VALUE.
    WHILE OTHERS THEN
    LIFT;

    END Find_Supply_Cd;

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

    BEGIN

    DBMS_OUTPUT. ENABLE (2000000);
    v_doc_num: = upper (p_doc_num);

    OPEN c_rqn (v_doc_num);
    LOOP

    SEEK c_rqn INTO r_rqn;
    EXIT WHEN c_rqn % NOTFOUND;
    v_found_rqn: = TRUE;
    v_dodaac: = NVL (r_rqn.cnsgne_dodaac, r_rqn.s_cnsgne_dodaac);
    v_rqn_niin: = NVL (r_rqn.niin, r_rqn.s_niin);
    v_proj_cd: = NVL (r_rqn.proj_cd, r_rqn.s_proj_cd);
    IF v_dodaac IS NOT NULL THEN
    v_lca_inst: = FIND_LCA_INST (v_dodaac);
    ON THE OTHER
    v_lca_inst: = NULL;
    END IF;

    -output of tangible column values

    DBMS_OUTPUT. Put_LINE ('Tangible database');

    v_data: = r_rqn.doc_num | '|' || r_rqn.req_geo_flag | '|' ||
    r_rqn.estb_dic | '|' || r_rqn.niin | '|' ||
    r_rqn.asg_cd | '|' || r_rqn. Qty | '|' ||
    r_rqn.unit_price | '|' || r_rqn.dmd_cd | '|' ||
    v_proj_cd | '|' || r_rqn. Priority | '|' ||
    r_rqn. RDD | '|' || r_rqn.cl_of_supply_cd | '|' ||
    To_char(r_rqn.dt_rqn_estb,'MM/dd/yyyy'). '|' ||
    To_char (r_rqn.dt_first_bo, "MM/DD/YYYY '") | ' |' |
    To_char (r_rqn.dt_first_can_req, "MM/DD/YYYY '") | ' |' |
    r_rqn.supadd | '|' || r_rqn. UI | '|' ||
    v_lca_inst | '|' || r_rqn.sig_cd | '|' ||
    r_rqn.fd_cd | '|' || r_rqn.med_stat_cd | '|' ||
    r_rqn.ssf_flag | '|' || To_char (r_rqn.lst_updt, "MM/DD/YYYY");
    DBMS_OUTPUT. Put_line (v_data);
    DBMS_OUTPUT. Put_line ('PKG database');
    OPEN c_pkg (v_doc_num);
    LOOP

    SEEK c_pkg INTO r_pkg;
    EXIT WHEN c_pkg % NOTFOUND;
    v_found_pkg: = TRUE;
    v_curr_sos_ric: = NVL (r_pkg.curr_sos_ric, r_pkg.s_curr_sos_ric);
    v_depot_ric: = NVL (r_pkg.depot_ric, r_pkg.s_depot_ric);
    v_pkg_niin: = NVL (r_pkg.niin, r_pkg.s_niin);

    IF v_pkg_niin IS NOT NULL THEN
    v_ic_cl_of_supply_cd: = Find_Supply_Cd (v_pkg_niin);
    ON THE OTHER
    v_ic_cl_of_supply_cd: = NULL;
    END IF;

    Define_Status (r_pkg,
    v_status_cd,
    v_status_dt,
    v_syserr,
    v_errcd,
    v_errmsg,
    v_errproc
    );
    IF v_syserr THEN
    DBMS_OUTPUT. Put_line (' ERROR in Define_Status: ' | v_errmsg);
    EXIT;
    END IF;
    v_itcn: = NULL;
    Pkg_Procsusl.Process_Susl ('XT',
    r_rqn.req_geo_flag,
    r_pkg. STCN,
    v_itcn,
    v_dodaac,
    v_dt_crpr,
    v_dt_ccps,
    v_dt_hubr,
    v_dt_hubs,
    v_dt_ssar,
    v_dt_lift,
    v_dt_umfps,
    v_save_erl_poel,
    v_save_erl_poel_pair,
    v_save_erl_poer,
    v_save_erl_poer_pair,
    v_save_lat_podf,
    v_save_lat_podf_pair,
    v_save_lat_podr,
    v_save_lat_podr_pair,
    v_dep_ship_su,
    v_mode,
    v_mod_shp,
    v_mfst_ref,
    v_mfst_sta,
    v_msn_num,
    v_pod,
    v_poe,
    v_voyage_no,
    v_tdi,
    v_citcn,
    v_hub_tcn,
    v_errcd,
    v_errmsg,
    v_errproc,
    v_syserr
    );
    IF v_syserr THEN
    DBMS_OUTPUT. Put_line (' ERROR in Pkg_Procsusl: ' | v_errmsg);
    EXIT;
    END IF;

    v_data: = r_pkg.doc_num | '|' || r_pkg.pkg_id | '|' ||
    Trim (r_pkg.input_stk_num) | '|' || v_status_cd | '|' ||
    To_char (v_status_dt, "MM/DD/YYYY '") | ' |' |
    To_char (r_pkg.dt_est_ship, "MM/DD/YYYY '") | ' |' |
    To_char (r_pkg.dt_rel, "MM/DD/YYYY '") | ' |' |
    To_char (r_pkg.dt_dep_ship, "MM/DD/YYYY '") | ' |' |
    To_char (r_pkg.dt_rcpt, "MM/DD/YYYY '") | ' |' |
    To_char (r_pkg.dt_maint_ret_rcpt, "MM/DD/YYYY '") | ' |' |
    To_char (r_pkg.dt_idt_rcpt, "MM/DD/YYYY '") | ' |' |
    To_char (r_pkg.dt_mrd, "MM/DD/YYYY '") | ' |' |
    v_curr_sos_ric | '|' || v_pkg_niin | '|' ||
    r_pkg. Qty | '|' || v_depot_ric | '|' ||
    r_pkg.ssf_flag | '|' || r_pkg. UI | '|' ||
    r_pkg.sfx_cd | '|' || r_pkg.direct_fill | '|' ||
    r_pkg. STCN | '|' || v_ic_cl_of_supply_cd | '|' ||
    To_char (v_dt_ssar, "MM/DD/YYYY '") | ' |' |
    To_char (v_dt_crpr, "MM/DD/YYYY '") | ' |' |
    To_char (v_save_lat_podr, "MM/DD/YYYY");
    DBMS_OUTPUT. Put_line (v_data); END LOOP;
    CLOSE C_pkg;
    EXIT;

    END LOOP;
    CLOSE C_rqn;
    IF this is v_found_rqn THEN
    DBMS_OUTPUT. Put_line (' NO data available for doc_num = ' | v_doc_num);
    END IF;

    EXCEPTION

    WHILE OTHERS THEN
    IF c_rqn % ISOPEN THEN
    CLOSE C_rqn;
    END IF;
    IF c_pkg % ISOPEN THEN
    CLOSE C_pkg;
    END IF;
    DBMS_OUTPUT. PUT_LINE (' ERROR: ' |) SQLERRM);

    END X_Doc_Num_Query;
    /

    ===================================
    ===================================

    Here is the PHP page:

    <? PHP
    error_reporting (0);

    PutEnv("TNS_ADMIN=e:/oracle/ora92/network/ADMIN");
    PutEnv("LD_LIBRARY_PATH=E:/Oracle/ora92");
    PutEnv ("NLS_LANG = English_America.WE8ISO8859P1");

    $don = isset($_REQUEST["don"])? $_REQUEST ['gift']: "asdf1234"; If no value passed, use the value of test
    Enable or DISABLE dbms_output.
    function SetServerOutput ($con, $p)
    {
    If ($p)
    $s = "BEGIN DBMS_OUTPUT. ENABLE (1000000); END; « ;
    on the other
    $s = "BEGIN DBMS_OUTPUT. DISABLE(); END; « ;

    $r = false;
    $stid = doParse ($con, $s);
    If {($stid)
    $r = doExecute ($stid);
    @OCIFreeStatement ($stid);
    }
    Return $r;
    }

    Retrieve and display any dbms_output
    function DisplayDbmsOutput ($con)
    {
    $r = GetDbmsOutput ($con);
    $cnt = sizeof ($r);
    If (! $r)
    print ' < p > no dbms_output < /p > \n ";
    on the other
    $orders = $r;
    $number_of_orders = count ($orders);
    If ($number_of_orders == 0)
    {echo "< p > < strong > no orders pending."}
    Please try again later. < facilities > < / p > ';
    }
    echo "< body leftmargin = 0 topmargin = 0 > ';
    for ($i = 0; $i < 1; $i ++)
    {
    $line2 = explode ("|", $orders [$i]);
    echo "< BR > < b > $line2 [0] < /b >."

    }
    for ($i = 1; $i < 2; $i ++)
    {
    $line2 = explode ("|", $orders [$i]);

    echo "< table border = 1 bordercolor = #000000 cellpadding = 2 cellspacing = 0 > \n < TR > < th bgcolor = Color #FFFFFF = #000000 > DON < table >.
    < th bgcolor = Color #FFFFFF = #000000 > GEO FLAG < table >
    < th bgcolor = Color #FFFFFF = #000000 > < table > DIC
    < th bgcolor = Color #FFFFFF = #000000 > < table > ONLY
    < th bgcolor = Color #FFFFFF = #000000 > ASG CD < table >
    < th bgcolor = Color #FFFFFF = #000000 > < table > QTY
    < th bgcolor = Color #FFFFFF = #000000 > PRICE UNIT < table >
    < th bgcolor = Color #FFFFFF = #000000 > DMD CD < table >
    < th bgcolor = Color #FFFFFF = #000000 > PROJ CD < table >
    < th bgcolor = Color #FFFFFF = #000000 > < table > PRIORITY
    < th bgcolor = Color #FFFFFF = #000000 > < table > RDD
    < th bgcolor = Color #FFFFFF = #000000 > CLS OF < table > SUPPLY
    < th bgcolor = Color #FFFFFF = #000000 > ESTAB DTE < table >
    < th bgcolor = Color #FFFFFF = #000000 > FIRST BO DTE < table >
    < th bgcolor = Color #FFFFFF = #000000 > FIRST DTE CAN < table >
    < th bgcolor = Color #FFFFFF = #000000 > SUPADD < table >
    < th bgcolor = Color #FFFFFF = #000000 > < table > UI
    < th bgcolor = Color #FFFFFF = #000000 > LCA INST < table >
    < th bgcolor = Color #FFFFFF = #000000 > GIS CD < table >
    < th bgcolor = Color #FFFFFF = #000000 > FD CD < table >
    < th bgcolor = Color #FFFFFF = #000000 > MED STAT CD < table >
    < th bgcolor = Color #FFFFFF = #000000 > SSF FLAG < table >
    < th bgcolor = Color #FFFFFF = #000000 > DTE UPDT < table >

    < b >
    < td align = "center" > $line2 [0] < table >
    < td align = "center" > $line2 [1] < table >
    < td align = "center" > $line2 [2] < table >
    < td align = "center" > $line2 [3] < table >
    < td align = "center" > $line2 [4] < table >
    < td align = "center" > $line2 [5] < table >
    < td align = "center" > $line2 [6] < table >
    < td align = "center" > $line2 [7] < table >
    < td align = "center" > $line2 [8] < table >
    < td align = "center" > $line2 [9] < table >
    < td align = "center" > $line2 [10] < table >
    < td align = "center" > $line2 [11] < table >
    < td align = "center" > $line2 [12] < table >
    < td align = "center" > $line2 [13] < table >
    < td align = "center" > $line2 [14] < table >
    < td align = "center" > $line2 [15] < table >
    < td align = "center" > $line2 [16] < table >
    < td align = "center" > $line2 [17] < table >
    < td align = "center" > $line2 [18] < table >
    < td align = "center" > $line2 [19] < table >
    < td align = "center" > $line2 [20] < table >
    < td align = "center" > $line2 [21] < table >
    < td align = "center" > $line2 [22] < table >


    < /tr >
    < /table > ';
    }
    for ($i = 2; $i < 3; $i ++)
    {
    $line2 = explode ("|", $orders [$i]);
    echo "< BR > < BR > < b > $line2 [0] < /b >."

    }

    echo "< table border = 1 bordercolor = #000000 cellpadding = 2 cellspacing = 0 >
    < TR > < th bgcolor = Color #FFFFFF = #000000 > < table > DON
    < th bgcolor = Color #FFFFFF = #000000 > PKG ID < table >
    < th bgcolor = Color #FFFFFF = #000000 > < table > ONLY
    < th bgcolor = Color #FFFFFF = #000000 > STATUS CD < table >
    < th bgcolor = Color #FFFFFF = #000000 > STATUS DT < table >
    < th bgcolor = Color #FFFFFF = #000000 > SHIP DTE IS < table >
    < th bgcolor = Color #FFFFFF = #000000 > REL DT < table >
    < th bgcolor = Color #FFFFFF = #000000 > DT DEP SHIP < table >
    < th bgcolor = Color #FFFFFF = #000000 > RCPT DT < table >
    < th bgcolor = Color #FFFFFF = #000000 > DT MAINT RET RCPT < table >
    < th bgcolor = Color #FFFFFF = #000000 > DT IDT RCPT < table >
    < th bgcolor = Color #FFFFFF = #000000 > DT MRD < table >
    < th bgcolor = Color #FFFFFF = #000000 > SOS RIC < table >
    < th bgcolor = Color #FFFFFF = #000000 > PKG ONLY < table >
    < th bgcolor = Color #FFFFFF = #000000 > < table > QTY
    < th bgcolor = Color #FFFFFF = #000000 > DEPOSIT CIR < table >
    < th bgcolor = Color #FFFFFF = #000000 > SSF FLAG < table >
    < th bgcolor = Color #FFFFFF = #000000 > < table > UI
    < th bgcolor = Color #FFFFFF = #000000 > SFX CD < table >
    < th bgcolor = Color #FFFFFF = #000000 > DIRECT FILL < table >
    < th bgcolor = Color #FFFFFF = #000000 > < table > STCN
    < th bgcolor = Color #FFFFFF = #000000 > POWER CL < table >

    < th bgcolor = Color #FFFFFF = #000000 > DT SSAR < table >
    < th bgcolor = Color #FFFFFF = #000000 > DT MCEA < table >
    < th bgcolor = Color #FFFFFF = #000000 > DT LAT ME < table >
    ";
    for ($i = 3; $i < $number_of_orders; $i ++)
    {
    $line2 = explode ("|", $orders [$i]);

    ECHO '.
    < b >
    < td align = "center" > $line2 [0] < table >
    < td align = "center" > $line2 [1] < table >
    < td align = "center" > $line2 [2] < table >
    < td align = "center" > $line2 [3] < table >
    < td align = "center" > $line2 [4] < table >
    < td align = "center" > $line2 [5] < table >
    < td align = "center" > $line2 [6] < table >
    < td align = "center" > $line2 [7] < table >
    < td align = "center" > $line2 [8] < table >
    < td align = "center" > $line2 [9] < table >
    < td align = "center" > $line2 [10] < table >
    < td align = "center" > $line2 [11] < table >
    < td align = "center" > $line2 [12] < table >
    < td align = "center" > $line2 [13] < table >
    < td align = "center" > $line2 [14] < table >
    < td align = "center" > $line2 [15] < table >
    < td align = "center" > $line2 [16] < table >
    < td align = "center" > $line2 [17] < table >
    < td align = "center" > $line2 [18] < table >
    < td align = "center" > $line2 [19] < table >
    < td align = "center" > $line2 [20] < table >
    < td align = "center" > $line2 [21] < table >
    < td align = "center" > $line2 [22] < table >
    < td align = "center" > $line2 [23] < table >
    < td align = "center" > $line2 [24] < table >
    < /tr > ";
    }
    echo "< / table >";


    }

    Returns an array of rows dbms_output or false.
    function GetDbmsOutput ($con)
    {
    $res = false;
    $stid = doParse ($con, "BEGIN DBMS_OUTPUT. GET_LINE (: LN,: ST); END; ») ;
    If {($stid)
    If (doBind ($stid, ': LN ', $ln, 255 "") & &)
    doBind ($stid, ": ST", $st, "")) {}
    $res = array();
    While ($succ = {doExecute ($stid))}
    If ($st)
    break;
    [] $res = $ln;
    }
    If (! $succ)
    $res = false;
    }
    @OCIFreeStatement ($stid);
    }
    return ($res);
    }

    Parse
    function doParse ($con, $stmt)
    {
    $stid = @OCIParse ($con, $stmt);
    If (! $stid)
    PrintOCIError (@OCIError ($con));
    return ($stid);
    }

    Link
    function doBind ($stid, $bn, & $bv, $ln)
    {
    $s = @OCIBindByName ($stid, $bn, $bv, $ln);
    If (! $s)
    PrintOCIError (@OCIError ($stid));
    return ($s);
    }

    Run
    function doExecute ($stid)
    {
    $s = @OCIExecute ($stid);
    If (! $s)
    PrintOCIError (@OCIError ($stid));
    return ($s);
    }

    OIC display error
    function PrintOCIError ($err)
    {
    echo "< p > < b > error < /b >: < /p > < pre > \n"..htmlentities($err['message'])"< / pre > \n";
    }

    $con = @OCILogon ("username", "password", "Server");
    If (! $con) {}
    PrintOCIError (@OCIError ());
    Die();
    }
    Turn on serveroutput
    SetServerOutput ($con, true);

    Create the dbms_output
    $s = doParse ($con, "begin data_pull_views.x_doc_num_query('$don'); end; ») ;
    If ($s)
    doExecute ($s);
    OCILogoff ($con);

    The output display
    OCILogoff ($con);
    DisplayDbmsOutput ($con);

    PEOPLE WITH DISABILITIES END * /.

    ? >

    < / body >
    < / html >

    ===========================
    ===========================

    What I've learned so far PHP code somehow seizes the dbmd_output buffer and load it in a table before you display it on the screen. Fine. I can even take a stab at some ODBC in VBScript with ASP commands, but it almost seems like it is not yet possible. Just a stab here's to it in ASP which is not error, but also returns no data.

    < %
    Van Goethem = request ("don")
    If van Goethem = "" then
    Van Goethem = "asdf1234".
    End If

    Set gv_con = Server.CreateObject ("ADODB. Connection")
    gv_con. ConnectionString = "Data Source = dsource; User = username ID; Password = password; »
    gv_con. Open

    the value of cmd = Server.CreateObject ("ADODB.Command")
    cmd ActiveConnection in the Group gv_con

    cmd.CommandText = "begin data_pull_views.x_doc_num_query ('" & van goethem & "');" end; »
    cmd.CommandType = 1

    Set the param = cmd.createparameter ("OutPut" 200,4, 50)
    cmd. Parameters.Append param

    cmd. run

    Response.Write "strText =" & cmd ("OutPut") & "< BR BR > > <" "»
    % >

    So I obviously have no idea what I'm doing. Any help getting this race would be appreciated greately.

    Hello

    I don't know anything about PHP either, but a quick look at the code, it seems that the procedure is pretty much just "all wrong", and unfortunately now it is your task to continue the tradition rather than fix the stored procedure.

    The thing that makes me say that it is "all wrong", it's that he uses dbms_output to communicate data. DBMS_OUTPUT is not intended to be used to return the results of a procedure, or be used as a reporting tool; It's supposed to be used to add debugging for troubleshooting instructions. The right thing to do is to return the results of a procedure stored via a parameter, refcursors, etc.

    Anyway, as you can not change the procedure, the problem boils down to the buffer that was completed by telephone dbms_output.put_line obtaining using calls to dbms_outout.get_line and here is a simple example that shows how you can go about this using ADO and ODBC.

    It will be useful,
    Greg

    procedure
    =======

    create or replace procedure populate_dbms_buffer as
    begin
    dbms_output.put_line('foo');
    dbms_output.put_line('bar');
    dbms_output.put_line('baz');
    end;
    /
    

    VBScript
    ========

    Const adLongVarChar = 201
    Const adInteger = 3
    Const adParamOutput = &H0002
    
    set con = createobject("adodb.connection")
    con.open "dsn=orcl;uid=scott;pwd=tiger"
    set cmd = CreateObject("adodb.command")
    set cmd.ActiveConnection = con
    
    cmd.commandtext = "begin dbms_output.enable(32000);end;"
    cmd.execute
    
    cmd.CommandText = "begin populate_dbms_buffer(); end;"
    cmd.execute
    
    cmd.CommandText = "begin dbms_output.get_line(?,?);end;"
    Set prmv2 = cmd.CreateParameter("",adLongVarChar, adParamOutput, 32767,"")
    Set prmnum = cmd.CreateParameter("", adInteger,adParamOutput,,1)
    cmd.Parameters.Append prmv2
    cmd.Parameters.Append prmnum
    
    stillmore=0
    while (stillmore<>1)
    cmd.execute
    stillmore = prmnum.value
    if (stillmore<>1) then
      wscript.echo prmv2.value
    end if
    wend
    'cleanup ommitted
    
    wscript.echo "done"
    

    output
    =======

    C:\>odbcparams_dbmsgetline.vbs
    Microsoft (R) Windows Script Host Version 5.7
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    foo
    bar
    baz
    done
    
  • When you use the NI-CAN Transmit sample receive the same Harbor; can a virtual CAN channel (RCA or 257) be used?

    I work for a company that produces and transforms electric parts. We strive to get in remission at nine of the ECU, experiences, Instrument clusters etc. I'm trying to learn how to use LabVIEW to write commands and read the data on the CAN bus. I have downloaded the NI-CAN driver. I am currently 'play' with the same reception Port.VI show in the basic frame of the finder example API folder OR. I am not able to send the number in the data to write the table that it be read by the ncReadNet Mult .vi. When I put the parameter to 'Pending entries reading' the ncGetAttr.vi returns a 0 to indicate that there are no frames to read. As a result, the Mult.vi ncReadNet does not run.

    I don't have any connected equipment, I use the virtual CAN channel CAN256. Is this the reason why I can't get data frames in my queue for the Mult.vi ncReadNet to read?

    When you use the NI-CAN Transmit sample receive the same Harbor; can a virtual CAN channel (RCA or 257) be used?

    CAN carry 256 and 257 are connected to eachother through software.  When you write about 256, you can read the data on 257 and vice versa.  I think the example you mention is a writing and reading on the same port, but what you want is to probably to make a copy of this VI, in order to run two at once, where it opens 256 and the other opens 257.  Then, when you write one that you will see on the other.  I think you might be able to use the test panel CAN too read an and use the example of the other.

  • Can I print each table on a new page?

    When you use numbers, I often have several tables in a given sheet. Like this:

    When I print the worksheet, this often causes tables to be spread over several pages. Like this:

    It is very painful position each table in the exact spot so it will show on the next page, like this:

    Is there a setting somewhere in the sense of ' print each table on a new page.

    If not, is there another book autour which does not imply boredom of lowering it the exact amount of each table so it will show on the next page?

    Thank you!

    A work-around may be copy and paste each table into Pages where you CAN insert page breaks. (You may need to force the paintings to stay up-to-date).

  • How can I display the table of contents for the iPod Touch to 6

    When I opened first of all iPod Touch Users' Guide, I used the table of contents (TOC) to locate and access sections in the manual. But, after looking through the manual for awhile, I tried to return to the table of contents, but it wasn't there! I have tried various things to see if the table of contents are being hidden, or if in some way, it has been deleted. Anyone can shed light on this mysterious event?

    What is the version of iBooks that you speak? There is an online version here: https://help.apple.com/ipod-touch/9/ Aha, I see the table of contents on the left disappears if you zoom before or make the narrow window and reappears if zoom you out or make it larger.

    TT2

  • Please I want to know can I use rich text editing like table, font... color in Thunderbird

    Please I want to know can I use rich text editing like table, font... color in Thunderbird

    Yes, you simply dial your email in HTML mode, which supports Thunderbird. If you search online you will find many, many guides on this topic.

    See you soon,.
    Dave

  • How can I create a custom button to format the table borders?

    I often paste to Excel in a message e and would like a button or a context menu for the PROPERTIES of TABLE FORMAT it takes 2-3 clicks each time to access. Is there such a thing? I searched the Add-ons nothing helps. There may be a change in config I can do which would have the table to stick with borders already in place (I have to change the thickness of the border on '1' each and every time that she missed to '0' - maybe there is a place to have it by default on '1'?)

    I have attached a picture of the menu on that I wonder.

    I don't know of a setting for this...

    It would be easier to click on, but based on underscores bit indicating the keys Accelerator, the keyboard sequence would be:

    • ALT + o b o
    • ALT o b o

Maybe you are looking for

  • The toolbar which includes tools disappeared

    Trying to access things like the new calendar require opening Tools, but he's not here. I have two email accounts coming into TB, and I can have a tab open for one or other of them, but that's all. No toolbar with the usual stuff (files, tools, etc.)

  • Satellite A100-033 - I need a new power adapter

    Hello Looking for an another Satellite A100 laptop power adapter. Part No. PA3469E-1AC3Any help much appreciated. EM

  • My iPhone 4 has a virus, how can I get rid of him?

    Hi all I have a three year, iPhone 4, which now has a virus. I tried to restore my iPhone 3 times, but it will not fix it. It started when I opened an application from Smule called Smule Sing. The virus came immediately, I tried to remove the app and

  • White screen on startup.

    I just bought the HP Pavilion Elite e9120f desktop PC. When I had hope I wanted to update its video to an EVGA Geoforce card 9800 GTX + that I had. I'm went into BIOS and made in kind the main display has been set to the PCI-Express x 16 card and emb

  • mSATA ssd as cache drive in w530

    Hi, I bought an msata ssd 32 G used as a disk cache. I installed and windows can recognize it. But I do not know how to partition (at least the windows won't let me partition compmgmt.msc) and how to activate it as the hard drive cache. Thank you!