NCF参数化建筑论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 94232|回复: 88
打印 上一主题 下一主题

[GH插件] grasshopper的插件FireFly 萤火虫

[复制链接]
跳转到指定楼层
m
发表于 2010-4-8 12:11:10 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
本帖最后由 lettle 于 2010-4-8 12:12 编辑

grasshopper的插件FireFly  萤火虫 不知道有人发过没有,如果有 版主删了吧。。。。
    来自于http://www.liftarchitects.com/journal/2010/3/11/firefly-beta-release.html#comments   
      安装到x:\Program Files\Rhinoceros 4.0\Plug-ins\Grasshopper\Components里面
对计算机语言无感   貌似是连接Arduino与grasshopper的  具体翻译如下How to use the Serial Read component:
The Serial Read component allows you to retrieve a value coming over the Serial Port. There are three input nodes for this component.
The P-input (Port Number) has to be the same Serial Port assigned in the Arduino IDE.  The default port is set to 3 (ie. COM 3) although
this port value may vary depending on computer configurations.  The B-input (Baud Rate) value should match the speed set in the Arduino
sketch.  Standard values include: 4800, 9600, 14400, 19200, 28800, 38400, 57600. The N-input requires an integer in order to (0) Open Port,
(1) Get Value, or (2) Close Port.  You can connect a Timer component to the Serial Read component to retreive values at a given interval.
Note: you should only turn the Timer component "On" after you have opened the port(0) and then retrieved the first value (1).  The output
for this component will return a string.  If you have sent a numeric value to the Serial Port, you will need to cast the string output of
the Serial Read component into a numeric value.  To do this, simply feed the output of the Serial Read component into a Number or Integer
parameter (Params/Primitive).
How to use the Serial Write component:
The Serial Write component allows you to write a string value to the Serial Port.  There are four input nodes for this component.  The
N,P, and B inputs are the same as the Serial Read (see above for more information).  The D-input is the data you wish to write to the
Serial Port.  Note: This component does not need to use a Timer component to update at a given interval if you are sending slider information
to the Serial Port.

如何使用串行读组件:

  串行读取组件允许您检索一个值通过串口来。这有三个组件的输入节点。
该P -输入(端口号)必须在同一串口IDE中的阿都伊诺分配。默认的端口设置为3(即COM 3个),尽管
此端口值可能取决于计算机的配置。这架B -输入(波特率)值应匹配的Arduino设定速度
素描。标准值包括:4800,9600,14400,19200,28800,38400,57600。的N -输入需要一个整数,以(0)开放港口,
(1)获取的价值,或(2)关闭端口。您可以连接一个Timer组件的串行读组件retreive在给定区间值。
注意:您应该只打开“后,你已经打开的端口(0定时器组成部分”),然后检索到的第一个值(1)。输出
此组件将返回一个字符串。如果你有一个数字值发送到串行端口,你将需要把字符串输出
串行读取内容纳入一个数字值。要做到这一点,只需馈入一个数或整数的分量输出的串行读
参数(Params /原始)。

  串行写入组件允许你写一个字符串值到串行端口。这有四个组件的输入节点。该
氮,磷和B输入为串行读相同(见上面获取更多信息)。该D -输入的数据,你想写信给
串行端口。注意:此组件并不需要使用一个Timer组件更新在给定的时间间隔,如果你发送信息滑块
到串行端口。

FireFly_version 001.zip

10.22 KB, 下载次数: 276, 下载积分: 照度 -1 lux

评分

参与人数 2强度 +3 照度 +34 收起 理由
musofan + 4
skywoolf + 3 + 30 感谢分享

查看全部评分

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏1 分享分享
88m
发表于 2018-12-29 20:31:07 | 只看该作者
感谢分享!!!!
87m
发表于 2014-2-16 12:20:21 | 只看该作者
感谢分享,赞一个
86m
发表于 2012-3-31 22:23:13 | 只看该作者
看看先 谢了
85m
发表于 2012-3-29 15:21:45 | 只看该作者
不懂这个哎..
84m
发表于 2012-3-29 13:15:13 | 只看该作者
不错的分享!!
83m
发表于 2012-3-29 11:05:53 | 只看该作者
如此深奥,只能敬而远之了、、、
82m
发表于 2012-3-28 17:43:45 | 只看该作者
没看懂,楼主能发一个演示就最好了!
81m
发表于 2012-3-23 06:39:59 | 只看该作者
真的很不错啊
80m
发表于 2012-3-23 06:38:47 | 只看该作者
这个太厉害啦
79m
发表于 2012-2-25 17:11:51 | 只看该作者
越来越云里雾里了   不懂啊
78m
发表于 2011-12-31 13:19:57 | 只看该作者
遇到瓶颈了,安装都不成
77m
发表于 2011-11-19 15:31:45 | 只看该作者
rhino的所有插件都是其他动物哈~什么时候也出个alpaca
76m
发表于 2011-11-14 09:51:39 | 只看该作者
这个很难不!····
75m
发表于 2011-11-5 18:08:30 | 只看该作者
真是各种各种的插件……头大如斗
74m
发表于 2011-11-5 18:07:56 | 只看该作者
真是各种各种的插件……头大如斗
73m
发表于 2011-11-5 14:20:09 | 只看该作者
貌似都很高深
72m
发表于 2011-10-31 12:00:52 | 只看该作者
完全看不懂
71m
发表于 2011-9-22 14:05:18 | 只看该作者
还是希望看见图啊
70m
发表于 2011-8-7 09:59:13 | 只看该作者
看看,学习学习。
69m
发表于 2011-8-7 04:47:42 | 只看该作者
很好奇~谢谢分享~

小黑屋|手机版|NCF参数化建筑论坛 ( 浙ICP备2020044100号-2 )    辽公网安备21021102000973号

GMT+8, 2024-6-20 05:52 , Processed in 0.069220 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表