Problem with the execution of the procedure

Hello
Kindly help me. It is a matter of urgency

When I execute the block anonymous as @Tmp.sql, it has successfully passed.
The anonymous block
DECLARE
 TYPE curVar IS REF CURSOR;
  curIndex            curVar;
  IDX_Name            varchar2(38);
  parseString         varchar2(5000);
  parseString2        varchar2(5000);
  int_cur             int;
  bck                 number;
BEGIN

  parseString :=                'select index_name from USER_INDEXES ';
  parseString := parseString || ' where index_name not like '||chr(39)||'%MXTEMPOID%'||chr(39);

--  DBMS_OUTPUT.PUT_LINE(parseString);

  open curIndex for parseString;
      loop
        fetch curIndex into IDX_Name;
        exit when (curIndex%NOTFOUND);

        parseString2 :=                 'alter index '||IDX_Name||' rebuild  online compute statistics parallel';

--    DBMS_OUTPUT.PUT_LINE(parseString2);
      int_cur := dbms_sql.open_cursor;
      dbms_sql.parse(int_cur,parseString2,dbms_sql.native);
      bck := dbms_sql.execute(int_cur);
      dbms_sql.close_cursor(int_cur);
--        DBMS_OUTPUT.PUT_LINE('Index '||IDX_Name||' rebuilt.');

      end loop;
    close curIndex;

    -- DBMS_OUTPUT.PUT_LINE('All Indexes are rebuilt.');

END ;
But when I'm putting in a procedure and trying to run it, I get the error:
create or replace
PROCEDURE REBUILD_INDEX AS
  TYPE curVar IS REF CURSOR;
  curIndex            curVar;
  IDX_Name            varchar2(38);
  parseString         varchar2(5000);
  parseString2        varchar2(5000);
  int_cur             int;
  bck                 number;
BEGIN

  parseString :=                'select index_name from USER_INDEXES ';
  parseString := parseString || ' where index_name not like '||chr(39)||'%MXTEMPOID%'||chr(39);

--  DBMS_OUTPUT.PUT_LINE(parseString);

  open curIndex for parseString;
      loop
        fetch curIndex into IDX_Name;
        exit when (curIndex%NOTFOUND);

        parseString2 :=                 'alter index '||IDX_Name||' rebuild  online compute statistics parallel';

--    DBMS_OUTPUT.PUT_LINE(parseString2);
      int_cur := dbms_sql.open_cursor;
      dbms_sql.parse(int_cur,parseString2,dbms_sql.native);
      bck := dbms_sql.execute(int_cur);
      dbms_sql.close_cursor(int_cur);
--        DBMS_OUTPUT.PUT_LINE('Index '||IDX_Name||' rebuilt.');

      end loop;
    close curIndex;

    -- DBMS_OUTPUT.PUT_LINE('All Indexes are rebuilt.');

END REBUILD_INDEX;
Run
   BEGIN
   REBUILD_INDEX();
   END;
Error
Connecting to the database qqraida.
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SQL", line 1199
ORA-06512: at "QQRAIDA.REBUILD_INDEX", line 25
ORA-06512: at line 2
Process exited.
Disconnecting from the database qqraida.
Published by: Dhabas on August 9, 2011 12:55

Dhabas wrote:
Thanks for your quick response. I saw the error.
But, how then I don't get the same with anonymous block?

Code that runs through procedures/functions/packages is based on explicit grants to the user who runs it.
Anonymous blocks use subsidies based on the roles that are ignored by the functions/procedures/packages.

Do not depend on subsidies based on the roles for your access, get explicitly grants to the user.

Tags: Database

Similar Questions

  • Problems with the procedure at the level of the stcok update

    Hi, I am new to Oracle and I have problems with this procedure.
    I had two tables, orders and inventories, and I want to update inventory quantities, when I received the order. For some reason, NULL keeps popping out. Someone help me pls with this!
    The tables are

    create table orders
    (order_no number (4) orders_nn_11 the NOT NULL constraint,)
    item_no number 4 orders_nn_3 of the NOT NULL constraint,
    order_qta number constraint orders_nn_4 NOT NULL,
    ORDER_DATE date NOT NULL constraint orders_nn_2,
    (date of receipt);
    and
    create the table stock
    item_no (4).
    Number of CQI,
    constraint stock_pk foreign key (item_no) references products (item_no);

    the procedure is here, but as I said I am new to this, so I really don't know.


    create or replace
    procedure recues1 (aorder_no in number, aitem_no in numbers, date received)
    is
    quantity number;
    number of quantity2;
    cursor a1 is select qta in stock where item_no = aitem_no;
    cursor a2 is order_qta selection of orders where order_no = aorder_no and item_no = aitem_no;
    Start
    Open a1;
    extract the a1 in quantity2;
    Open a2;
    Fetch a2 in quantity;
    stock update
    Define qta = quantity2 + quantity
    where item_no = aitem_no;
    Update orders
    received game = sysdate
    where order_no = aorder_no;
    near a1;
    Close a2;
    end;
    /

    Thanks in advance

    Hello
    Perhaps because ther eis no COMMIT.
    Or have I missed?

    Something like that

    .....
    
    close a1;
    close a2;
    commit;
    end;
    /
    

    Kind regards
    Bobin

  • CIAC 4.0 manual installation, problems with the procedure

    Hi all

    I m trying to install the latest version of the CIAC and I m facing some problems on the configuration phase.

    I m using the following document:

    Cisco_Intelligent_Automation_for_Cloud_4.0_Installation_Guide.PDF

    Downloaded from the portal of Cisco.

    On page 34, we can found the procedure for installing the adapter of REX.

    The procedure is very confused and not able to find where to put the REXAdapter.xml I m, that it points to C:\Rex\Deploy, but the CIAC device is based on linux and not able to find this file on the server of the portal I m.

    Also the adk.zip is absent from packs of automation CPO.

    Thanks in advance,

    Alex.

    The 4.0 unit has already installed RexAdapter. You can view the list of Service link adapters.

  • Problem with the procedure. Help, please

    Schema: HR

    Here is the procedure I created, when I compile the procedure it works very well and without errors or warnings are displayed. However, when I run, I get "01031. 00000 - "insufficient privileges" "error. "I tried 'GRANT ALL HR', 'ANY GRANT to HR'.," to HR WITH ADMIN OPTION GRANT ' nothing works. Not sure is code that has questions or privileges.

    create or replace procedure new_create_PROC IS
    BEGIN
    EXECUTE IMMEDIATE 'CREATE TABLE NEW_CREATE1(EMP_ID NUMBER,EMP_NAME VARCHAR2(20))';
    END;
    /
    
    
    EXECUTE new_create_PROC;
    
    TE new_create_PROC;
    /
    

    Help, please.

    You are connected to the DB under what user? You must grant this user the CREATE TABLE privilege.

  • Problems with the resource of labview execution 2 visa

    I use two loops in a labview code all-in - connects to a motor controller and other is used to connect to a multimeter agilent. As soon as I run this VI, the loop to connect to the controller stop working and only used to configure agilent machine works. If I remove the second loop (connecting to the computer of agilent), the code works fine. I guess it's a problem with the execution priority. Could you please review the attached code and let me know any problems with it.

    COM1 and Com3 share an interruption.

    Go to the BIOS of the computer and set the port to Com3 to the Com2 port, then they will be on their own interrupt and see if that helps.

    FYI

    COM1 and Com3 share IRQ3

    COM2 and Com4 share IRQ4

  • Problem with the enforcement procedure

    Hi guys, I'm having some problem during the procedure call, but it will not display the errors while running.

    I post my code please guide me...

    Create Or Replace procedure Report_Main (A in Varchar2: = 1).

    As

    EmpNo Namelist;

    EmpName Namelist;

    DT Datelist;

    Begin

    Run immediately Q'[Select Distinct B.Empno, B.Empname, A.Dt From(With Qry1 As)

    (Select Rdate Report1 where Empno = "M-336" and To_Char (Rdate, 'Mm') = To_Char (Sysdate, 'Mm') And To_Char (Sysdate, 'Yyyy') = To_Char(Rdate,'Yyyy'))

    Union All

    Select the Pdt in Meeting1 where Empno = "M-336" and To_Char (Pdt, 'Mm') = To_Char (Sysdate, 'Mm') And To_Char (Sysdate, 'Yyyy') = To_Char(Pdt,'Yyyy')

    Union All

    Select D.Hdate in the Trusmart.Loginfo, says C, Holidaymastb D

    Where A.Empno ='M - 336.

    And To_Char (D.Hdate, 'Mm') = To_Char(Sysdate,'Mm')

    And A.State = C.States

    And D.Statesid = C.Statesid

    And To_Char (Sysdate, 'Yyyy') = To_Char(Hdate,'Yyyy')

    )

    Select Dt

    Of

    (Select Min_Date + (Level-1) Dt of)

    (Select Min (Rdate) Min_Date,

    Max (rdate) Max_Date

    Of Qry1)

    Connect by level < = (Max_Date - Min_Date) + 1) Qry2

    If not Exists (Select 1

    Of Qry1 Q1

    Where Q1. RDATE = Qry2.Dt)

    And Trim (To_Char (Dt, 'Day'))! = "Sunday".

    Order By Dt) A, B Empma

    Where B.Empno ='M - 336.

    Order By A.Dt].

    Bulk collect into Empno, Empname, Dt;

    If Sql % found then

    Report_Mail_Proc (Fromad = > ' <[email protected]> ', )

    Toad = > ' < [email protected] >' ,

    EmpNo = > Empno,.

    EmpName = > Empname;

    DT = > Dt);

    End If;

    Exception when No_Data_Found then

    Null;

    End;

    /

    Create Or Replace procedure Report_Mail_Proc (Fromad in Varchar2,

    Toad in Varchar2,

    Topic in Varchar2: = 'Notification of the relevant Date. "

    Message in Varchar2: = 'Dear team',.

    EmpNo in Namelist

    EmpName in Namelist

    DT in Datelist)

    As

    SMTPHost varchar (255): = "monentreprise.com";

    A Utl_Smtp.Connection;

    Begin

    A: = Utl_Smtp.Open_Connection(Smtphost,25);

    Utl_Smtp.HELO (A, SMTPHost);

    Utl_Smtp.mail (A, Fromad);

    Utl_Smtp.RCPT (A, Toad);

    Utl_Smtp.Open_Data (A);

    Utl_Smtp.write_data (, ' Date: ' |) To_Char (Sysdate, ' DD/MM/YYYY HH24:MI:SS'). Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Fromad | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Toad | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' subject: ' |) Topic | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' Date: ' |) To_Char (Sysdate, ' DD/MM/YYYY HH24:MI:SS'). Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Substr (substr(Fromad,2), 1, length (substr (Fromad, 2))-1) | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Substr (substr(Toad,2), 1, length (substr (Toad, 2))-1) | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.CRLF);

    Utl_Smtp.write_data (one Message |) Utl_Tcp.CRLF | Utl_Tcp.CRLF |  Q'[here are the dates not reported my employee:]' | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' EMPLOYEE_NAME ' |') -' ||'    EMPLOYEE_NAME ' |' -' ||'      DATE_NOT_REPORTED ' | Utl_Tcp.CRLF);

    For I In 1.Dt.Count

    Loop

    Utl_Smtp.write_data (, ' ' |) EmpNo (I) | »                '||' - '||'    '|| EmpName (I) | »                 '||' - '||'      '|| To_Char (DT (I), ' DD/mm/YYYY') | Utl_Tcp.CRLF);

    End loop;

    Utl_Smtp.write_data (A, Utl_Tcp.Crlf);

    Utl_Smtp.write_data (, ' text ' |) Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.Crlf);

    Utl_Smtp.write_data (, ' greetings,)

    Sagar K N

    '|| Utl_Tcp.CRLF);

    Utl_Smtp.Close_Data (A);

    Utl_Smtp.quit (A);

    Exception

    While others then

    Utl_Smtp.quit (A);

    Lift;

    End;

    /

    I get the following error:

    ORA-06550: line 1, column 7:

    PLS-00201: identifier 'REPORT_MAIL' must be declared.

    ORA-06550: line 1, column 7:

    PL/SQL: Statement ignored

    When I run 'user_errors' I get no error in the respective procdedure.

    I'm not allowed to use the "Execute Immediate" statement as I've used?

    Please guide me.

    Thanks in advance.

    I'm confused.

    Depending on your error message, you have an identifier REPORT_MAIL which is not declared.  According to the code you have posted, you have such no identifier anywhere in the code.  Then, you post the error message incorrect or bad code.

    You also say that you use EXECUTE IMMEDIATE.  But the code you posted is not using EXECUTE IMMEDIATE.

    Justin

  • Problem with the compilation by using the new compiler (Compilation failed during execution: compilation-abc)

    Hello

    Since the release of the fast compiler, I experienced problems with the compilation of the version release with it.

    As it was still in beta, and since it was still possible to use the legacy compiler, I chose to use the legacy compiler each time (especially since it was more stable).

    With this 64-bit iOS requirement came into play on February 1, the legacy compiler is no longer available because it has been completely removed from AIR 16 (and all future versions).

    Now, I can no longer compile release versions (debug versions are works well) because I have the following error every time:

    Error occurred during the application of packaging:

    Stack dump:

    0 program arguments: C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\lib\aot/bin/compile-abc / compile - abc.exe - mtriple = armv7-apple-ios - filetype = obj - sdk C:\Program Files\Adobe\Adobe Flash Builder 4.7 (Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\lib\aot/lib/avmglue.abc 64-fields C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\lib\aot/lib/air-fields.)) arm-air.txt-O3-ane-symbol = MmgCmApiExtInitializer - ane-symbol = MmgCmApiExtFinalizer - ane-symbol = MmgRbApiExtInitializer - ane-symbol = MmgRbApiExtFinalizer - ane-symbol = MmgStoreKitApiExtInitializer-ane symbol = MmgStoreKitApiExtFinalizer-ane symbol = MmgGoViralApiExtInitializer-ane symbol = MmgGoViralApiExtFinalizer-ane symbol = MmgGaApiExtInitializer - ane-symbol = MmgGaApiExtFinalizer - ane-symbol = MmgGAIDFAAccessApiExtInitializer - ane-symbol = MmgGAIDFAAccessApiExtFinalizer - ane-symbol = AFExtensionInitializer - ane-symbol = PushwooshExtInitializer - ane-symbol = PushwooshExtFinalizer elease-temp\AOT\AOTBuildOutput4982262150932522887.tmp\ABCFilesList.txt-abc-file-list=C:\BingoIslandWeb\Client-branch-1.06.05\BingoIslanMobile\BingoIsland\bin-r

    Compilation failed during execution: compilation-abc


    I tried to pin-point the source of the problem leaving specific things in the code, while removing all the rest,

    But so far, all I could find is that he has a problem with the classes that extend EventDispatcher.

    Anyone encounter this problem and knows how to work around it?

    Thank you!



    I had this problem also with other things. It was difficult to solve. Remove all const and var conversion in the Document class solve my problems

  • Problems with the date in the procedure on Oracle 11 g

    Hi gurus,

    I have some problems with the date under Oracle 11 g format.

    Let me explain the situation:

    When I start such a request
    Select to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'))
    of sys.dual

    I had as a result 2009 under the number.

    When I do the same thing in a procedure of a package like this

    my_year: = to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'));

    the my_year variable contains the value 9 instead of 2009.

    Can someone explain to me what goes wrong?

    I just tested with the evolution of the variable nls_date_format of environment for the session and the database is complete without success.

    Kind regards
    Björn

    Yes, it has everything to do with your environment settings.

    SQL> set serveroutput on;
    SQL>
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01-MAR-98
    
    PL/SQL procedure successfully completed.
    
    SQL> alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss'
      2  /
    
    Session altered.
    
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01.03.1998 07:00:00
    
    PL/SQL procedure successfully completed.
    
  • Problems with the speed of execution on my T420

    I'm not very tech savvy, so bear with me please if I have forgotten something or doing something wrong.

    Just to clarify, my laptop is a Lenovo ThinkPad T420i, Type 4178. It is about 2 years old.

    I have Windows 7 64 bit.

    My laptop takes about 2-5 minutes to turn on, sometimes it turn on at all. The screen freezes every 15 seconds, but I'm still able to move my cursor. He accused some too. For example, type 'how to download google chrome' will take me sometimes a whole minute, because the only parts of the sentence will be displayed on the screen at once. My keyboard responds very well. The problem is not with wireless internet, because even if the wireless is off the laptop computer is still incredibly slow. It is impossible to watch videos because the screen freezes so.

    I had this problem with the speed of my laptop for about 2 months now. I had finished it wiping back to factory settings, downloaded every scanner malware and virus known to man (none of them found no problems with it) and updated all my drivers.

    I don't really know how to do much on my laptop other than the use of the internet. I would really appriciate instructions step by step.

    Thank you.

    Hello. I did it all at once (up to 8 GB, SSD of RAM HARD disk and reinstall Windows), that's why I can't answer you, how did each of them, but after all, my absolutely BRILLIANT T420 representation!
    Chip graphic is now the weak link, and, unfortunately, it cannot be replaced.

  • Satellite A300-1MZ - Smart tool recognize problems with the drive

    Hi all...
    I have a * a300-1mz * I * a problem with the hard drive *.

    [This | http://img96.imageshack.us/i/diskinfoe.jpg/] is the _screen to a s.m.a.r.t. pens (* Disc 3.3.0 * Info) who acknowledge some problems with the disk.

    Can I send the laptop as collateral for a free replacement of the same disc?

    Among other things, sometimes * the computer freezes * no option to manually turn off the laptop (I think it always comes from the same disk):
    the screen stays fixed and 'Win Vista' does nothing comands.
    same "ctrl + alt + delete" Task Manager does not. The disc indicator light remains lit, but itself no longer believes it works

    Hello

    > Can I send the laptop as collateral for a free replacement of the same disc?
    If the authorized service provider can notice this problem too, you can get a new HARD drive for free. The ASP will order it and swap it out. It is a free procedure if your laptop is under warranty.

    > sometimes the computer crashes
    The HARD drive is perhaps the reason for this?
    Contact a service provider authorized giving them all the details and information. They can fix that also. :)

  • Problems with the installation of recovery - Satellite A300D - BSOD

    Hello

    The laptop in question (TOSHIBA Satellite A300D) recently stopped starting (BSoD).

    So, I tried using the recovery disk, but there is no help. What happens is:
    -After about 10 minutes of waiting, the first language menu load, so I click on "next".
    - Then I again click Next and accept the message that my HARD drive will be erased
    - Then I see a cmd prompt that says "try to remove all the letters of partitions possible...". »
    -There is also a minimized command prompt that says something like "RAID failed to initialize."
    -And then nothing happens.

    Is this a hardware problem? I also tried a full installation (instead of recovery), which, even once, is simply not. None of the errors is - it just freezes.

    Any help appreciated.
    Thank you.

    It is not easy to tell what can be the problem, but if you were not able to install the OS by using two different facilities CDs/DVDs, so there must be a problem with the HARD drive.

    The warranty is still valid?
    I mean you can contact the nearest Toshiba authorized service provider and explain the situation. They can swap the HDD and again test the recovery procedure.
    Can you get somewhere 2,5 SATA HDD for testing?

  • OfficeJet Pro 8600: message "problem with the printer or ink system.

    I replaced the magenta cartridge with a new cartridge genuine HP (end of warranty 2017/01), but now get a message "problem with the printer or the ink system.

    If I restore the old cartridge I get the message that it is empty, but all the other options of the printer are available.

    Online support does not give me any result of solution but suspect there may be a manufacturing error in the new cartridge.

    Does anyone else have this problem or advice?

    Hello

    Please click HEREto access the procedure which should solve the problem.

  • Problem with the Lenovo Z510 battery indicator

    I have an old Ideapad of one year z510. Last week, the battery indicator began to stuck on 100%. So not connected, he stops suddenly without notifying me with 10% and 7% remaining notification. I tried to uninstall the Microsoft ACPI control method battery compatible from the Device Manager but no change... Anyone has an idea what should I do otherwise.

    Thank you
    Ahmed

    In response to customer relationships of unexpected problems with the performance of the batteries portable Z500 and Z510, Lenovo made an update of the firmware of battery available via download on the Lenovo Forums.

    This battery firmware is intended to solve unexpected load following symptoms when a Z500 and Z510 mobile phone is turned on:

    • Battery is dead

    • Battery is not detected

    • Battery is detected and charged 100%, but when the power is removed, the laptop turns off immediately

    • When the battery is fully charged and the AC power is removed, the battery level falls considerably less than 10 minutes

    Please note a procedure step by step for the upgrade of the firmware is included in the .zip file, found in the file "ReadMe".

    The battery firmware update can be downloaded here: https://download.lenovo.com/lenovo/content/sm/z500_z510_battery_firmware_update.zip

    Thank you

  • [Z510] Problems with the battery not charging

    I have ideapad z510 for almost a year. and now my unit still shows that it is at 0% battery. and she indicates that she battery level does not increase. and for this reason I could not use my unit when it is not plugged. What should I do about it?

    Comment to Moderator: New thread is created. The topic is edited to include the model.

    In response to customer relationships of unexpected problems with the performance of the batteries portable Z500 and Z510, Lenovo made an update of the firmware of battery available via download on the Lenovo Forums.

    This battery firmware is intended to solve unexpected load following symptoms when a Z500 and Z510 mobile phone is turned on:

    • Battery is dead

    • Battery is not detected

    • Battery is detected and charged 100%, but when the power is removed, the laptop turns off immediately

    • When the battery is fully charged and the AC power is removed, the battery level falls considerably less than 10 minutes

    Please note a procedure step by step for the upgrade of the firmware is included in the .zip file, found in the file "ReadMe".

    The battery firmware update can be downloaded here: https://download.lenovo.com/lenovo/content/sm/z500_z510_battery_firmware_update.zip

    Thank you

  • Problem with the report and the system of axis 2d

    Hi, I'm trying to write a script with tiara, who wrote a 2d axis system in the report but I'm having a lot of problems with it.

    What I'm trying to do, is make 3 or more system axis 2d in the report, each displaying a part of the data of 2 channels (x = ch0, ch1 = y).

    With only 1 graphic I get what I want, but when I try to add the 2nd or the 3rd, they show without my defined x-scale and with the offset x different from the first chart.

    I tried everything, but I could not remedy

    I added as attachments the .csv file that I use to ch0 and ch1 and 2 screen shoots "what I get" (about the problem with the script) and "what I hope to get" (done manually, is what I'm trying to get the report)

    Any help will be appreciated, thanks in advance

    Ierman

    I'll post my code here:

    Dim Xscale, Yscale
    XScale = Array (0,25,0,5,49)
    Yscale = Array(-0.2,0.2,-0.2,10,4)
     
    Call PicDelete()
    Call GraphObjNew ("2D-Axis", "2DAxis1")
    Call GRAPHObjOpen ("2DAxis1")
    D2AxisTop = 1

    D2AxisBottom = 70
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_1")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale (0)
    D2AXISYEND = Yscale (1)
    D2AXISYORIGIN = Yscale (2)
    D2AXISYTICK = Yscale (3)
    D2AXISYMINITICK = Yscale (4)
    Call GRAPHObjClose ("2DYAxis1_1")
    Call GRAPHObjOpen ("2DXAxis1_1")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale (0)
    D2AXISXEND = Xscale (1)
    D2AXISXORIGIN = Xscale (2)
    D2AXISXTICK = Xscale (3)
    D2AXISXMINITICK = Xscale (4)
    D2AxisXTxt = ""

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_1")
    Call GraphObjNew("2D-Curve","New_Curve")

    Call GraphObjOpen ("New_Curve")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve")
    Call GRAPHObjClose ("2DAxis1")

    Dim Xscale1, Yscale1
    Xscale1 = Array (25,50,0,5,49)
    Yscale1 = Array(-0.2,0.2,-0.2,10,4)
    Call GraphObjNew ("2D-Axis", "grafic")
    Call GRAPHObjOpen ("grafic")
    D2AxisTop = 40

    D2AxisBottom = 37
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_2")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale1 (0)
    D2AXISYEND = Yscale1 (1)
    D2AXISYORIGIN = Yscale1 (2)
    D2AXISYTICK = Yscale1 (3)
    D2AXISYMINITICK = Yscale1 (4)
    D2AxisYTxt = "" ' testo asse label y
    Call GRAPHObjClose ("2DYAxis1_2")
    Call GRAPHObjOpen ("2DXAxis1_2")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale1 (0)
    D2AXISXEND = Xscale1 (1)
    D2AXISXORIGIN = Xscale1 (2)
    D2AXISXTICK = Xscale1 (3)
    D2AXISXMINITICK = Xscale1 (4)
    D2AxisXTxt = «»

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_2")
    Call GraphObjNew("2D-Curve","New_Curve1")

    Call GraphObjOpen ("New_Curve1")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve1")
    Call GRAPHObjClose ("grafic")

    Hi lerman,.

    Here is an edited version of your code that works on my computer.  A problem that I know that I fixed it was that your presentation of the STATE was in the name-oriented mode but you use the variables based on the number to assign it X and Y channels.  The execution of these commands in a loop FOR makes it much easier to debug the code and to avoid any annoyance at first.

    Brad Turpin
    Tiara Product Support Engineer

    National Instruments

  • Problem with the change in value of listbox event

    Hello

    I have a problem with the help of Listbox value change event. The code that I have attached is a simplified version of the largest program, but the problem is the same. One of the loops of Nonna is responsible for handlig occurring events ant the other is responsible for the execution of the program. In the project of oryginal I use a listbox control to determine which plots graphic display of a waveform is visible (first position of the listbox-> only plot first visible etc.). In the attached vi, I just show the current value of the listbox control. The problem is the event runs only once and then the program crashes. I want to be able to change the value of the listbox work both at idle and in State of a program, but when I put the structure of the event in both States, he does not. I'd be very grateful if someone smarter than me could tell me where I made my mistake. I want my program to be able to manage the keys and listbox events in States (slow down and knit) program.

    You have two structures of event in two cases different from the structure of the case, and both are tuned to listbox events has changed. Because only once can be triggered at any time, the VI crashes (lock events the front panel (default) until the event can complement).

    You must use a unique event structure managing all events.

    The overall program architecture looks like inside-out for me.

    For the buttosn, you must use action lock (switch not release!) and use the value changed events.

Maybe you are looking for

  • Server settings fail but work elsewhere

    I tried to get Thunderbird to work on Windows 7 for a few weeks now (not continuous, but I've tried several times during this period.) He said: it could not find the server settings. All parameters to be entered are correct (and checked dozens of tim

  • M6-N113DX: HP ENVY M6-N113DX DOWNGRADE: PLEASE HELP

    Hello So initially having read the fourms and owing to the difficulty of the downgrade, I decided against it. But Win8 was terrible that this machine off extremely slow and most of the software I use for my business would not work properly. So after

  • I think I accidentally deleted everything.

    OK, for starters, I have a model 13 "MacBook pro mid-2012 with 4 GB of RAM, and it was running OS X 10.10.3 Yosemite and using boot camp with windows 10 (in some kind I messed up this installation and windows barely worked at all in any case) Now, I

  • EtherCAT - OR Scan Engine could not be changed in Active mode, because one or several slave devices does not have operational status

    Hello, I use a Compact Rio 9074 with an EtherCAT NI 9144 chassis extension I am able to see both devices 9074 and 9144 Labview project, but when I try to deploy configuration 9074 controller tracking error is displayed: I tried deployment while defin

  • How meter and analog value FIFO synchorize

    I use a card NI 6123. Anyone knows how to put 6 analog values and the value of the counter in FIFO with the same rate: 4 k. Thus, every second, there should be 6 * 4 k analog values and 4 k in FIFO counter value. The problem is: 1. the counter is a n