Grasshopper

algorithmic modeling for Rhino

Hi,

I just posted something on the firefly board too but I feel this is more of a grasshopper problem than a sensor/firefly one. 

I'm receiving position data from the reactivision listener and remapping the values to simple quadrant information (I.E. x>= 0 AND x< 30 AND y>=0 AND y< 30 would be one ..etc). I want to take readings of this data every second (no more, no less) so I can compare it with another sensor to export it to matlab and run a correlation test... Unfortunately I am unable to take readings solely at steady increments and when I use record or data logger it reports values whenever I move. So I am getting lists like 1,1,1,1,1,1,2,2,1,1,1,1,1 where I only want information on each discrete second (and yes I am using a timer).

Any suggestions? 

I've seen posts relating to timers but nothing too similar to this. If it would help I can post a piece of the definition? 

Thank you so much!

Views: 488

Replies to This Discussion

Here is my attempt...probably a better way to go about it.  Uses one component to alternate between true and false, this is fed into another one which checks if the value is changed, if it is, record the incoming value, else, just output the list...

Attachments:

Thank you so much, definitely helps (and thank you for explaining it too).

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service