02-29-2008 11:32 AM
-------------------------------------------------
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
03-03-2008 09:20 AM
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
03-28-2008 05:18 AM
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
03-28-2008 09:03 AM
03-28-2008 09:44 AM