FOUNDATION Fieldbus

cancel
Showing results for 
Search instead for 
Did you mean: 

Menus

Hello,
I am seeing the same error as DawnK. I have built my DD in the IDE supplied by the Fieldbus Foundation.
I used the -a -4 options. The methods run fine in the simulator within the IDE, but produce this output in Configurator:

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

Method interpreter runtime error.

Error: Line -1:

Method execution did not complete.

Method execution has halted.

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

I stripped the method down to just a call to get_acknowledgement and it still produced the error.

Thanks,

Bruce

0 Kudos
Message 11 of 15
(4,617 Views)

Bruce,

I found that I had to declare id and indices as arrays.  Here's the source that works for me:

METHOD reset_totals
{
    LABEL "Reset Totalizers" ;
    HELP  "This method resets the process totals to 0";
    CLASS OUTPUT & DIAGNOSTIC ;
              
    DEFINITION
    {
        unsigned long   id, code, ignored;
        long            status;

        unsigned long ids[1];
        unsigned long indices[1];

        remove_all_abort_methods ();
        add_abort_method ( ITEM_ID ( abort_totalizer_reset ) ) ;

        /* ask the user if they really want to reset process totals */
        get_acknowledgement("Press NEXT to reset Process Totals "
                            "or CANCEL to quit.", ids, indices, 0) ;

        id = ITEM_ID(PARAM.RESET_TOTALS);
        status = put_unsigned_value(id,0,1);
        Abort_On_Builtin_Status_Error (status);

        status = send_value(id,0);
        Abort_On_Builtin_Status_Error (status);

        remove_all_abort_methods ();

        get_acknowledgement("Process Totals have been reset to 0", ids, indices, 0);
    }
}

Dawn

0 Kudos
Message 12 of 15
(4,598 Views)

I am trying to Implement Methods using NI-FBUS 3.2 and Tokenizer 5.0.7.

While executing Methods, I got the given below error.  Please Could you help me !

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

Method interpreter runtime error.

Error: Line -1:

Method execution did not complete.

Method execution has halted.

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

Regards

Srinivas

 

0 Kudos
Message 13 of 15
(4,544 Views)
Srinivas,
I was informed by a person at the Fieldbus Foundation that you must use the  'Project->Build Release and Load' option to make files suitable for use outside of the IDE. Note that you do not have to load after you have built the DD. I was using version 5.0.8 of the IDE.  When you do not use the release option in the IDE, it will always build your DD with the -z option which will produce debugging information that will not be appreciated by the NI tools. The error you are seeing is likely line number information that was placed in the tokenized output for debugging purposes in the IDE.
Good luck,
Bruce
0 Kudos
Message 14 of 15
(4,540 Views)
Bruce, Thanks for responding immediately. I also tried with release as you mentioned, but still I am getting the same error. One more Problem with DD-IDE (Ver 5.0.7) is Debug interpreter gives error with "get_acknowledgement & display_message " routines. I tried the way as in manual and also as specified in your previous replies, but still it gives errors. So I commented display related routines and tested with debugger, in this case no errors with Method debugger. But with NI configurator, the error as mentioned in the previous message appears. Kindly suggest! Regards Nakka Srinivas.
0 Kudos
Message 15 of 15
(4,536 Views)