Grasshopper

algorithmic modeling for Rhino

Hi guys,
I'm working on a new project where I'm receiving streaming data from an Arduino microprocessor directly into Grasshopper through a VB.NET script component. However, I'm a bit stuck and don't quite know where I'm going wrong. I can say that I have successfully put together a separate file which will send data directly to the Arduino (switch on a boolean toggle and watch an LED light up... how fun:) but receiving the data is a bit more complicated. For a long time, I was getting a continuous loop error, which would freeze my app. I've changed around the code (see attached file), but I'm still not receiving any data from my COM port (which I know is definitely working because I can turn on the Serial Monitor from the Arduino IDE and see the data coming in). I did have one question: Can you call different routines inside the script class (from Grasshopper), or do you have to always call the run script subroutine? If you guys have any suggestions I would greatly appreciate it. I understand it's a bit tricky to trouble shoot this issue since you may or may not have an Arduino handy to stream the data to your computer... but let me know if you see any glaring issues with the code.
Cheers,
Andy

Views: 264

Attachments:

Replies to This Discussion

Andy, not sure if this helps but Nick Puckett assistant prof. at the University of Kentucky, has a project that seems to be using a VB component to read the com port output from Arduino. He might be the guy to contact about this. His page is @ http://altnresearch.com/?p=77
I've posted a solution in the "Harware Sliders" discussion.

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