HPlogo System Debug Reference Manual > Chapter 10 System Debug Standard Functions

func pstate

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

Returns the process state for the specified PIN as a string.

Syntax



   pstate (pin)

The following table lists all possible returned process state strings:
  • UNBORN

  • INITIATE

  • ALIVE

  • DYING

  • DEAD

  • UNKNOWN

Note that the process state string is always returned in capital letters.

Formal Declaration



   pstate:str (pin:u16)

Parameters


pin

The process identification number (PIN) of the process whose process state is to be returned.

Examples



   $nmdebug > wl pstate(8)
   INITIATE

   $nmdebug > wl pstate(f)
   DYING

   $nmdebug > if pstate(16) = "ALIVE" then formatprocess(16)

Limitations, Restrictions


none




func prog


func pub