algorithmic modeling for Rhino
I know this is a total newbie question, but...
I am collecting sensor data from photosensors hooked up to Arduino, about every 10 seconds (using Firefly). I would like to store, let's say, the last 20 values as a list. so each new value would shift all other values down the list and knock the 20th one off.
There are so many great list functions in Grasshopper, but I can't figure out how to create a list from incoming values! couldn't find anything about it in the gh primer either...
Right now, each incoming value replaces the previous one and no list is created :(
Also, I would like to collect values from 6 sensors and be able to identify the sensor number and generation of value. Not sure how the paths work yet, but something like {0,4,17} would signify the 17th value from sensor #4.
any help would be greatly appreciated :)
Tags:
i figured it out... i found the function to log incoming data in firefly. d'oh! I was looking for it in grasshopper...
I am trying to do something very similar and I'm hoping you can help!
I am bringing it data one value at a time, and I need to create a list that updates with the newest value replacing the previous.
I think it has something to do with 'Log' in firefly, but I have tried every possible toggle combination and each incoming value replaces the previous one. It gives me a list of 10 of the same numbers.
Any suggestions would be greatly appreciated!
Thanks.
some screenshots of your definition would be nice to see. Of course, you have verified you are receiving varying sensor data?
Yep, I have confirmed that there is varying data.
THis is going to sound silly, but I can't figure out how to take a screen shot. I'm on a Mac, but using bootcamp for rhino + grasshopper, so the usual shift+command+4 doesn't work.
That's a whole other issue!
But I can try to explain it - I think it's pretty simple.
I have a set of numbers from an excel spreadsheet. They are going through a 'playback' and the panel from that reads a new number every 3 seconds. Then I was trying to feed those numbers into 'Log' to create a list of 10 that updates every 3 seconds (every time a new number is read from the excel sheet).
Right now 'Log' returns the one number, and changes every 3 seconds, and doesn't create a list.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by