Grasshopper

algorithmic modeling for Rhino

Hello,

I've got sensor data from three temperature sensors coming in from arduino as a six digital string.  I'm using Andy Payne's Firefly to read the data.  I need to separate the values.  I am struggling with syntax.  How do you separate the left two values from the six digits?  How do you separate the right two values?  How do you separate the middle two values?

Any advice is much appreciated.

Views: 239

Attachments:

Replies to This Discussion

making progress....

I've got the left two values with this

left(x,Length(x)-IndexOf(x,",")-5)
right side similar - just change word "left" to "right"
seems like this is going to work

but i'd like to ask, is there a better way?
for middle two numbers, I took the right four numbers and then from that took the left two

again, is there a better way to do this?

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