Data Storage Tool Display Human Input Protocol Math Motor Control Sensor Signal Generation & Processing Speech & Sound Fun View all Objects


Quick Links
Contact Us
Forums
Support

Register
Login

This object is provided under license. By downloading this object, you are agreeing to the terms of the MIT License.

Add-on to ViewPort - expanded "watch"

Use with ViewPort 4.2.5 (or higher)...

This program is an extension to the basic "watch shared variable" capabilities of ViewPort. It executes script statements that can deal with arrays and Spin floats and show variables in the following formats:

int uint float binary hex bit

There is a full expression evaluator that accepts the following operators:

* / div mod & | ^ >> << ~

======================================================================================

Script statements available for "watching" shared variables. These are normally placed in the "Main script" text panel.

showInt ( "<label>" , <expr> ) ; Show expr as signed 32 bit integer
showUint ( "<label>" , <expr> ) ; Show expr as unsigned 32 bit integer
showHex ( "<label>" , <expr> ) ; Show expr as $00fd_0acb
showBinary( "<label>" , <expr> ) ; Show expr as %1010_1000_0000_0000_1100_0011_0000_0001
showFloat ( "<label>" , <expr> ) ; Show expr as 3.81

showBit ( "<label>" , <expr> , <bit> ) ; Show value of bit <bit> in <expr>

showStr ( "<label>" ) ; Show <label>

:<name> = <expr> ; Set a local variable (this is "quiet" - no output)

Version:
  1.0

Type:
  Object

Attributes:


Author:
  Bob Anderson
  bob.anderson@centurytel.net

Categories:
  Tool

Downloads:
  506

Last Updated:
  2009-12-21



User Reviews:

  • Hanno Sander commented:
    A very cool add-on to ViewPort- thanks Bob! I've started playing with it and love how easy it is to "script" output which uses expressions to combine multiple Propeller variables and formats them nicely. Hanno
    December 22, 2009 12:09 p.m.




  • Comments on this Object:


    Post a comment:




    Please contact obex.support@parallax.com with comments or questions.

    Copyright 2011 by Parallax, Inc.