Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Using events and listeners to monitor change in variable

  1. Jul 18, 2011 #1
    I'm using the object oriented programming features of Matlab to work with the data acquisition toolbox. Basically, I have a property of an object that is a member of the handle class. Normally, its value is 0 (obj.property=0). With a certain external input from my experimental setup it can be made to equal 1 (obj.property=1). I'm trying to figure out a way to monitor for that change in the property value. It seems like you need to setup events and listeners, but I'm not totally sure how to do it. Any ideas?
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?