FireFly编辑器调用C语言,grasshopper的插件FireFly 萤火虫
本帖最后由 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組件更新在給定的時間間隔,如果你發送信息滑塊
到串行端口。
2010-4-8 12:12 上傳
點擊文件名下載附件
下載積分: 照度 -1 lux
10.22 KB, 下載次數: 260, 下載積分: 照度 -1 lux
總結
以上是生活随笔為你收集整理的FireFly编辑器调用C语言,grasshopper的插件FireFly 萤火虫的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python爬虫安装错误与解决方式
- 下一篇: centos7安装其他源以及安装软件