Hello,
rps Returns the present value of current and voltage. optional i can readout "error variable"
example: rps 1,V1, C1, Error
is there a code list for Error numbers?
thanks
Josef
Hello,
rps Returns the present value of current and voltage. optional i can readout "error variable"
example: rps 1,V1, C1, Error
is there a code list for Error numbers?
thanks
Josef
Hi Josef,
BT-Basic has a couple of built in functions you can use to return the error message for a given error number. To return the short version of a system error message, use errm$; to return the long version of a system error message, use errmlong$.
So in your rps example, you could do something like:
rps 1, V1, C1, Error
if Error then print errmlong$
If no argument is passed to errm$ or errmlong$, they will return the error message for the most recent runtime error. Both commands can also take an Integer argument to return the string for that particular error number.
See the BT-Basic Syntax Reference in the i3070 Help for "errm$" and "errmlong$" for more details.
Hi Josef,
BT-Basic has a couple of built in functions you can use to return the error message for a given error number. To return the short version of a system error message, use errm$; to return the long version of a system error message, use errmlong$.
So in your rps example, you could do something like:
rps 1, V1, C1, Error
if Error then print errmlong$
If no argument is passed to errm$ or errmlong$, they will return the error message for the most recent runtime error. Both commands can also take an Integer argument to return the string for that particular error number.
See the BT-Basic Syntax Reference in the i3070 Help for "errm$" and "errmlong$" for more details.