Shop OBEX P1 Docs P2 Docs Learn Events
Changed variable object in Spin2 — Parallax Forums

Changed variable object in Spin2

bob_g4bbybob_g4bby Posts: 578
edited 2026-03-16 19:47 in PASM2/Spin2 (P2)

I've often written code in LabView like:-

If myvariable has changed do the following code

So here's an experiment to provide variables that remember if they've changed since they were last read and by how much. The object is based on longs, but could be rewritten for words or bytes quite easily. Developed in Spin Tools.
Cheers, Bob

Sign In or Register to comment.