How to evaluate 64 bit return code from realtime sequence

Hello,
I'm using the ExecuteAsync method of the StimulusProfile Class to execute a stimulus profile. The stimulus profile only contains one entry: A call to a realtime sequence.
After the profile has finished executing I retrieve the return code of the realtime sequence by opening the result XML-File. 
The xml-node of intrest might light look this:
<TestResult ID="ReturnValue">
   <TestData>
          <Datum xsi:type="unsignedInteger" value="2147516544" xmlns="http://www.ieee.org/ATML/2006/Common" />
    </TestData>
My problem is that the "value" attribute seems to be limited to 32 Bit. The upper 32 Bit of my 64 Bit return code are simply cutoff. How do I get the complete return code?
After I ran into this problem when using the .NET API, I tried to do a "NumericBoundsCheck" evaluation using the Stimulus Profile Editor. As expected, it doesn't work correctly when working with values > 2^32 - 1.
I'm using VeriStand 2012.
Thanks

Hello Gregor,
I don't think it's necessary to post example code. Just return a value >= 2^32 from a realtime sequence and you will see that the evaluation in the realtime stimulus editor does not work correctly. Also, in the resulting XML-File, the return value will be truncated to 32 Bit.
Meanwhile I have found that this this issue has already been discussed on this board (http://forums.ni.com/t5/NI-VeriStand/ATML-return-value-does-not-return-Uint64/m-p/2848796#M3649), but no solution was proposed so far.  
I now run my realtime sequence using the ClientAPI. This allows me to evaluate the full 64Bit.
Regards
Krid

Similar Messages

  • Getting return code from remote script after Unix rsh call

    I hope one of you guys can help me with this issue. I think I've gotten the 'rsh' command to work from the CES application so that the sqr report generation can execute on a remote machine (instead of the app server machine). I'm actually doing this by having the app still execute the ces_sqr script, however, now the ces_sqr script will just have an 'rsh' command in it which will cause the actual real sqr processing to occur remotely.
    I am executing a Unix script which does a remote shell call to another script on a remote machine. The remote script sends a return code when run locally, however, how can I get the calling rsh script to get that return code?
    If I do the following in the rsh script:
    rsh -l resdev morph "/dev/bin/remote_script"
    rc=$?
    echo "$rc\n"
    then the return code that I get is not actually the return code from the remote_scrpit, but it is the return code from the rsh command that is 0 (success) because the rsh command actually executed successfully even though the remote_script could've returned something other than success. How can I get the return code from the remote_script passed back to the rsh calling script?
    Jan Miller
    [email protected]
    202-237-9584

    Please ignore the first paragraph of my previous post.

  • How can we know the return code of BDC Program ?

    Hi All,
    Please tell me : How can we know the return code of BDC Program when being exceuted in Session or in Transaction mode.
    In my program, we are uploading data from Excel sheet to SAP via BDC
    The records that are not updated we want to create a log file.
    Now to know whether a record is updated ot not, wat syst field shloud be used?
    Its urgent....
    <b>Reward Point will be there ....</b>
    Thanks,
    Harish

    Hi harish,
    try the logic in this code ...
    i had attached input file in the end.
    TYPES: begin of errmess,
            msgnr type t100-msgnr,
            text type t100-text,
           end of errmess.
    TABLES : t100.
    DATA: BEGIN OF DD_VA01,
           AUART TYPE VBAK-AUART,
           KUNNR TYPE RV45A-KUNNR,
           BSTKD TYPE VBKD-BSTKD,
           MABNR TYPE RV45A-MABNR,
           KWMENG(2) type C,
           KBETR(2) type C,
          END OF DD_VA01.
    DATA:IT_VA01     Like TABLE OF DD_VA01,
         WA_VA01     Like LINE  OF IT_VA01,
         WA_VA01_F   Like LINE  OF IT_VA01,
         IT_BDCDATA  TYPE TABLE OF BDCDATA,
         WA_BDCDATA  Like Line  OF IT_BDCDATA,
         W_FNAME     TYPE STRING,
         messtab like bdcmsgcoll occurs 0 with header line,
         it_errmess type table of errmess,
         wa_errmess like line of it_errmess,
         err_message type string.
    data: zf1 type i,
          zc1 type c value '2',
          fn(20) type c.
    Main Code ************************************************************
    PERFORM get_input using 'C:\Documents and Settings\ic881592\Desktop\Daran_bdc_VA01-e.txt'.
    SORT IT_VA01 BY AUART KUNNR BSTKD.
    LOOP AT IT_VA01 INTO WA_VA01.
      if WA_VA01_F-AUART <> WA_VA01-AUART OR
         WA_VA01_F-KUNNR <> WA_VA01-KUNNR OR
         WA_VA01_F-BSTKD <> WA_VA01-BSTKD.
           PERFORM set_header_flag.
           PERFORM create_bdc_header_data.
      endif.
      PERFORM create_bdc_item_data.
    ENDLOOP.
    PERFORM call_transaction.
    PERFORM errorlog.
    Procedures ***********************************************************
    form get_input using w_fname.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME            = W_FNAME
          HAS_FIELD_SEPARATOR = '#'
        TABLES
          DATA_TAB            = IT_VA01.
    endform.
    form call_transaction.
        PERFORM bdc_field       using 'BDC_OKCODE' '/11'.
        CALL TRANSACTION 'VA01' USING IT_BDCDATA MODE 'A' messages into messtab.
        refresh it_bdcdata.
    endform.
    FORM set_header_flag.
           WA_VA01_F-AUART = WA_VA01-AUART.
           WA_VA01_F-KUNNR = WA_VA01-KUNNR.
           WA_VA01_F-BSTKD = WA_VA01-BSTKD.
           if zf1 = 1.
               PERFORM call_transaction.
           endif.
           zf1 = 1.
    endform.   "set_header_flag.
    form create_bdc_header_data.
         perform bdc_dynpro      using 'SAPMV45A' '0101'.
         perform bdc_field       using 'VBAK-AUART' WA_VA01-AUART.
         perform bdc_field       using 'BDC_OKCODE' '/00'.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         perform bdc_field       using 'KUAGV-KUNNR' WA_VA01-KUNNR.
         perform bdc_field       using 'VBKD-BSTKD' WA_VA01-BSTKD.
         perform bdc_field       using 'BDC_OKCODE' '/00'.
         perform bdc_dynpro      using 'SAPMSSY0' '0120'.
         perform bdc_field       using 'BDC_CURSOR' '04/06'.
         perform bdc_field       using 'BDC_OKCODE' '=CHOO'.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         PERFORM bdc_field       USING 'BDC_OKCODE' '=POAN'.
    endform. "create_bdcdata
    FORM create_bdc_item_data.
         CONCATENATE 'RV45A-KWMENG(' zc1 ')' INTO FN.
         perform bdc_field       using 'BDC_CURSOR' FN.
         perform bdc_field       using FN WA_VA01-KWMENG.
         CONCATENATE 'KOMV-KBETR(' zc1 ')' INTO FN.
         perform bdc_field       using FN WA_VA01-KBETR.
         CONCATENATE 'RV45A-MABNR(' zc1 ')' INTO FN.
         perform bdc_field       using FN WA_VA01-MABNR.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         PERFORM bdc_field       USING 'BDC_OKCODE' '=POAN'.
    ENDFORM.
    form errorlog.
      LOOP AT MESSTAB .
        if MESSTAB-MSGNR = '311' or MESSTAB-MSGTYP = 'E'.
            SELECT SINGLE msgnr text FROM T100
                            into wa_errmess
                            WHERE SPRSL = MESSTAB-MSGSPRA
                              AND ARBGB = MESSTAB-MSGID
                              AND MSGNR = MESSTAB-MSGNR.
            IF SY-SUBRC = 0.
              err_message = wa_errmess-TEXT.
              IF err_message CS '&1'.
                REPLACE '&1' WITH MESSTAB-MSGV1 INTO err_message.
                REPLACE '&2' WITH MESSTAB-MSGV2 INTO err_message.
                REPLACE '&3' WITH MESSTAB-MSGV3 INTO err_message.
                REPLACE '&4' WITH MESSTAB-MSGV4 INTO err_message.
              ELSE.
                REPLACE '&' WITH MESSTAB-MSGV1 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV2 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV3 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV4 INTO err_message.
              ENDIF.
              CONDENSE err_message.
              WRITE: / MESSTAB-MSGTYP, err_message .
            ELSE.
              WRITE: / MESSTAB.
            ENDIF.
        endif.
      ENDLOOP.
    endform. "errorlog
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      WA_BDCDATA-PROGRAM  = PROGRAM.
      WA_BDCDATA-DYNPRO   = DYNPRO.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO IT_BDCDATA.
      CLEAR  WA_BDCDATA.
    ENDFORM.
    FORM BDC_FIELD USING FNAM FVAL.
      WA_BDCDATA-FNAM = FNAM.
      WA_BDCDATA-FVAL = FVAL.
      APPEND WA_BDCDATA TO IT_BDCDATA.
      CLEAR  WA_BDCDATA.
    ENDFORM.
    input file :
    OR     2148     0001235     R-1162     8     17
    OR     2148     0001235     R-1161     2     30
    OR     2148     0001235     100-400     6     25
    OR     2148     0001235     R-1162     4     12
    OR     2148     0001236     R-1162     3     12
    OR     2148     0001236     R-1161     2     30
    OR     2148     0001236     100-400     1     25
    OR     2148     0001236     R-1162     7     12
    OR     2148     0001236     R-1161     8     30
    OR     2148     0001236     100-400     10     25
    OR     2148     0001235     R-1161     5     30
    OR     2148     0001235     100-400     2     25
    OR     2148     0001235     R-11621     3     12
    OR     2148     0001235     R-1161     2     30
    OR     2148     0001235     100-400     1     25
    OR     2148     0001235     R-1162     7     12
    OR     2148     0001235     R-1161     8     30
    OR     2148     0001235     100-400     10     25
    OR     2148     0001236     R-1162     8     17
    OR     2148     0001236     R-1161     2     30
    OR     2148     0001236     100-400     6     25
    OR     2148     0001236     R-1162     4     12
    OR     2148     0001236     R-1161     5     30
    OR     2148     0001236     100-400     2     25

  • Handling Return Codes from SQL Stored Procedures

    Hi,
    Please can you let me know how to take care of system return codes from Stored Procedure in JDBC program. Is there any way it can be handled using Callabale Statement.
    Regards.

    not sure what you mean by "system" return codes, but to capture return values from stored procedures you can use CallableStatement.registerOutParameter(), just like with output parameters. see http://www.j-netdirect.com/GenStoredProcedures.htm#ReturnStatus.

  • Getting return code from subprocess execution

    Hi,
    I am executing a batch file as a subprocess and need to get the return code from it.
    The batch file executes a java class, which exits (System.exits(rc)) with a return code on error and how this can be captured in the calling program.
    i am calling the batch file as follows: (fragment)
    Runtime r;
    process p = r.exec(execCmd, null, mqsiToolFile);
    istr = p.getInputStream();
    br = new BufferedReader(new InputStreamReader(istr));          
    returnCode = p.waitFor();
    System.out.println("exit value: "+p.exitValue());
    This successfully executes the subprocess and always returns with code '0', even though the sub-process exits with a code >0.
    p.waitFor() or p.exitValue() - doesn't giving the exit value of the subprocess.
    How can i capture the exit value (System.exit(rc)) from the sub-process.
    I am running the app on Windows NT4 sp6
    Any help would be greatful.
    Thanks in Advance.

    Peter,
    can u be more explanative on this, i can see the run time result (0, 1). But couldn't get familiar on the sample you have given.
    My code is as follows:
    Process p = null;
    Runtime r = Runtime.getRuntime();
    for loop {
    execSubProcess(.., .., ..)
    public int execSubProcess(String excmd, String[] env, File fileDir) throws Exception {
    int res = 0;
         try {
              System.out.println(excmd);
              p = r.exec(excmd, null, fileDir);
              istr = p.getInputStream();
              br = new BufferedReader(new InputStreamReader(istr));
              line = null;
              while ((line = br.readLine()) != null) {
                   System.out.println(line);
              res = p.waitFor();
         System.out.println("sub-process return code: "+p.waitFor());
              System.out.println("sub-process exitValue: "+p.exitValue());
         } catch (Exception e) {
         throw e;
         return res;
    Here i get all the time 'res=0' , even though the subprocess execCmd exits with a return code > 0.
    Is tehre any environment setup or ..needed to capture the subprocess exit code val (System.exit(rc)) in the calling program.
    Please provide more details as per ur convinience.
    thanks

  • Pass return code from Java application to a .bat file.

    I have a .bat file which will execute a Java application. I want to pass the return code from the java application to the ".bat" file.
    Could you please let me know, how can I accomplish this.

    I tried that, but it doesn't return the value...
    In my Java app, I had System.exit(returnCode) and in the '.bat' file
    I have
    @echo off
    java <myApp>
    set returnCd=%?%
    echo %returnCd
    and it didn't return any value. What should I specify in set returnCd=%?% instead of ?

  • Return codes from sqlplus_exec_template

    OWB'ers
    Environment:
    OWB 10g (10.1.0.2.0)
    Repository and target schema - Oracle9i (9.2.0.4) on AIX 5.2
    I am executing the 'sqlplus_exec_template.sql' script to execute a Process Flow. It executes the Process Flow just fine.
    When I put the SQL*Plus command line in a UNIX script as so:
    sqlplus -s owb_rtu/owb_rtu @sqlplus_exec_template OWB_RTR GWW_FLOW_LOCATION_1 PROCESS LOAD_BUSINESS_UNITS "," ","
    ... and then test the return code using $?, it returns a '1' for a successful execution.
    I understand that the package that is executed by the SQL script (wb_rt_api_exec) will return 1=success, 2=warning and 3=error. No problem.
    However, when I test the return status of the actual SQL*Plus command I also get a '1' when the PL/SQL script executes successfully!!??!!??
    The log file produced from the SQL script shows the following:
    Session altered.
    Role set.
    Stage 1: Decoding Parameters
    | location_name=GWW_FLOW_LOCATION_1
    | task_type=ProcessFlow
    | task_name=LOAD_BUSINESS_UNITS
    Stage 2: Opening Task
    | l_audit_execution_id=12300
    Stage 3: Overriding Parameters
    Stage 4: Executing Task
    | l_audit_result=1 (SUCCESS)
    Stage 5: Closing Task
    Stage 6: Processing Result
    | exit=1
    PL/SQL procedure successfully completed.
    So, if the PL/SQL procedure completes successfully, why do I get a '1' return code to my UNIX script?
    UNIX thinks that is an error condition.
    When I purposely made an error in my SQL*Plus command line the UNIX script returned a '1', as expected, when encountering a script error.
    How then do I tell the difference between a SQL command error that returns a '1' and a successful completion of the PL/SQL package that also returns a '1'?
    I have tried the Process Flow with the 'Use Return as Status' set to both True and False with the same results.
    I am trying to set up scripts that will run in Autosys and I need to check the return codes of the jobs and notify the appropriate people if there is a problem. Like UNIX, Autosys thinks a '1' return code is an error condition.
    So it appears that the SQL*Plus command invoked in a UNIX script is returning the exit status of the 'wb_rt_api_exec' package invoked in the SQL script and not the actual result of the PL/SQL procedure that calls the package.
    How do I get the SQL*Plus command executed from the UNIX script to return a zero (0) upon a successful completion and a non-zero upon an error?
    Is the package somehow overpowering the return code from SQL*Plus?
    Any help is greatly appreciated.
    Gary

    Jean-Pierre
    Thanks very much for the response. I will find that SQL script you mention and see if I can use it or modify it to meet our needs.
    We have standardized on using Autosys as our job scheduling product and are using it for all the ERP jobs in addition to the ETL jobs.
    In that light I would be very interested in having a closer tie between OWB and Autosys. We aren't in a position to be a very good beta customer at this point due to a very tight implementation schedule for the next few months. After that it might be possible for us to help test that new functionality.
    Thanks again, we really appreciate your efforts in this discussion group.
    Gary

  • How can i get the source code from java concurrent program in R12

    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    Zulqarnain

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to run the open script code from eclipse?

    Hi,
    How to run the open script code from eclipse.
    Please let me any soulutions on this.

    Hi Konda
    I am not quite sure you can do that and it would even be not supported... Again, what is the purpose? Why do you want to run your openscript code in Eclipse?
    What is the code you try to run?
    As an example, even if you include al the jar files and so on. don't think the function "Launch Browser" could work because it isn't only java code orjar files.....
    If you give us more background. maybe we can guide you to a better solution...
    JB

  • How do i remove the restriction code from my iphone 4s? i forgot it

    How do i remove the restriction code from my IPHONE 4S? I have forgotten what it is. PLEASE HELP!!!

    If you lose or forget a restriction passcode, you will need to perform a factory restore to remove it.
    That is what it says here http://support.apple.com/kb/ht4213
    Message was edited by: Ocean20

  • BR0279E Return code from 'LANG=C dd obs=64k bs=64k if=/oracle/PRD/sapdata1/sr3_1/sr3.data1 of=/dev/rmt0.1': 2

    while i do online backup error in db13 :-
    BR0278E Command output of 'LANG=C dd obs=64k bs=64k if=/oracle/PRD/sapdata1/sr3_1/sr3.data1 of=/dev/rmt0.1':
    dd: /oracle/PRD/sapdata1/sr3_1/sr3.data1: Invalid argument
    BR0280I BRBACKUP time stamp: 2014-06-04 01.00.46
    BR0279E Return code from 'LANG=C dd obs=64k bs=64k if=/oracle/PRD/sapdata1/sr3_1/sr3.data1 of=/dev/rmt0.1': 2
    BR0222E Copying /oracle/PRD/sapdata1/sr3_1/sr3.data1 to/from /dev/rmt0.1 failed due to previous errors
    BR0280I BRBACKUP time stamp: 2014-06-04 01.00.48
    BR0317I 'Alter tablespace PSAPSR3 end backup' successful
    BR0056I End of database backup: benzqjev.ant 2014-06-04 01.00.46
    BR0280I BRBACKUP time stamp: 2014-06-04 01.00.48
    BR0054I BRBACKUP terminated with errors
    attached detailed log

    Hi Mohammed,
    Please change the parameter initSID.sap
    tape_copy_cmd = cpio
    And test the results.
    Regards,
    Deepak Kori

  • How can I get the return code of SQL*Plus under Win2000Pro

    How can I get the return code of SQL*Plus under Win2000Pro ?

    In a DOS batch script? Try ECHO %ERRORLEVEL%
    -- CJ

  • How do I get the return value from an executable?

    I'm running an external executable from dbms_scheduler but how do I get the exit code from the program run or any screen output?

    Hi,
    In the additional_info column of schedulerjob_run_details there should be something like
    job of type EXECUTABLE failed with exit code: Operation not permitted
    "Operation not permitted" is the error code (as translated by the errors header file for that platform).
    In releases 10.2 and up there may also be a line in the additional_info
    STANDARD_ERROR="Error text here"
    This gives the standard error messages output by the application. There is no way to get the standard output of the application.
    Hope this helps,
    Ravi.

  • Capture return code from system command?

    Can someone please tell me what is the easiest way to capture the return code when executing a system command?
    In other words I wish to execute a say a perl script and capture the return code from it.
    Any help is appreciated.

    Process p = Runtime.getRuntime().exec("blah.exe");
    p.waitFor();
    System.out.println("Return code from blah.exe"+ p.exitValue());

  • Return code from Client_host command

    Hi,
    Is it possible to get the return code from the os when I issue the webutil Client_Host procedure?
    Thanks,
    Mary

    Mary
    You can use the WEBUTIL_HOST.HOST method instead of CLIENT_HOST. It is overloaded as both a Procedure and a function; the latter returns the client return code.
    Cheers, APC

Maybe you are looking for

  • TS3992 Icloud backup does not completed after install IOS 8

    I recently installed iOS 8 on my iPhone 5s (32 GB). Prior to the install, I had just enough storage to backup on iCloud. However, after the install, it is saying "[a]n additional 3.1 GB of storage is required. This is puzzling because under Manage St

  • Openreach - How I can connect my PC directly into ...

    Can you please let me know how i can connect my computer directly to white coloer modem box "Openreach"? Thank you for your advise. Solved! Go to Solution.

  • "dbstart" error in oracle 10g database in LINUX

    Hi, i have oracle 10g database in LINUXwhen i give "dbstart" command under oracle database bin folder, i get following error "Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr" how can i fix this error. i want to make

  • After Effects CC Freezing, OSX 10.8

    While using AE CC I am getting random freezing, especially with heavy comps (lots of footage based layers, long ram previews, ect..) and this gets logged into the console: 4/14/14 9:18:32.320 PM After Effects[11426]: -[NSMenu menuID]: unrecognized se

  • Simple export question

    I have got two users: "amir" and "export" I got some tables in amir's schema. I get export using the following command: exp amir/password@orcl file=c:\exp.dmp table=test I already granted the "export" user imp_full_database I use the following comman