I'm trying to retrieve data from a tag heuer timing system through rs 232. Firefly ports available says com ports 1 and 3 are available. Is one of those two the rs 232 9 pin? Thanks for your help.
思った感じになりません。
balls の代わりにplanarカーブを直接入れてみましたがエラーが出ます。
ファンクションにしてみたところ、forループので作った数値が反映されていません。
ファンクションのインスタンス?を出力していないと思い上記のようにしましたがエラーが出てしまいます。
以上の事から自分の認識が正しいのかよくわからなくなりました・・・
python自体の深いところをわかっているわけではないので余計こんがらがりました。
そこで、for b in ballsはどのような条件または使い方であれば使えるのでしょうか?
そして、上記のように別のオブジェクトに対しての使い方はどのようにすればできるのでしょうか?
2:同じファンクション内のdist = rs.Distance(self.pos,b.pos)についてですが
この文章も for b in balls によってbはBallのインスタンスであると定義?されたためb.posがbの位置であると分かるのでしょうか?
pythonは定義しなくても動いてしまうのでどのような時に使えるのか文章見ただけではよくわかりません・・・
大変細かいことかもしれませんが、よりpythonをしっかりと理解するためにも、どなたかわかる方ご教授いただけると幸いです。…
picture:
... and on a PC without anything attached to the serial port. When you open the port, start the read component and its timer, do you then get a stream of <empty> values in the log output? (hmmm... I suppose that's only reasonable - but still, you are also seeing this?)
I suppose that, because of the mutually exclusive behavior of both the spider and grasshopper (i.e. only one at a time can access the COM port), we can deduce that we are listening on the correct port.
Am I listening on the correct pin (if such a notion makes sense at all)? If I look back to the spider software, I see that 9 channels are listed and that it's only the measured value on channel 0 that changes when I press the load cell. Channels 1, 2, and 3 report OVERFLOW; 4, 5, 6, and 7 are pretty much constant at 0.000 to 0.005 V; and channel 8 says FFFF. I do not know how things like that work so I do not know if they reflect reading from the 9 pins on the D-sub 9 connector.
As for your BTW question: no, I don't need to record all of the sensor values. I suppose that the Out value on the Read component will always reflect the most current value and that's all that I need to get on with life. In the end, the idea is that we have 4 load cells in the 4 corners of a plate onto which a vertical pipe is fixed. Loads are then put on the top end of the pipe and we'll have to visualize both direction and magnitude of the bending moment that is calculated from the compression - tension readings from the load cells... We've done this on a scaled model and streamed load cell information into MatLab. Now we'll have to use a different datalogger and I was hoping to be able to do the post processing in Rhino.
wim…
the "port" input. I would really appreciate any help!
For example, my Arduino board is connected to COM 3. The "ports available" component correctly identifies this port, and I know there is nothing wrong with the port itself since the Arduino communicates through COM 3 without problem when using an Arduino sketch.
The runtime error produced by the Firefly open/close port component:
1. Solution exception:Could not load type 'Grasshopper.Instances' from assembly 'Grasshopper, Version=1.0.0.20, Culture=neutral, PulicKeyToken=null'.
System specs:
Windows 7 64-bit
Rhinoceros 4.0 SR 9
Grasshopper Build 0.8.006
Firefly Build 1.0067
Arduino Uno R3
These error messages appear when Grasshopper is loaded from Rhino. They first appeared when Firefly was installed:
Object: Mega_Write (level 1){ Exception has been thrown by the target of an invocation. TargetInvocationException}
Object: Mega_Write (level 2){ Method not found: 'Void Grasshopper.Kernel.GH_PersistentParam`1.SetPersistentData(System.Object[])'. MissingMethodException}
Object: Uno_Write (level 1){ Exception has been thrown by the target of an invocation. TargetInvocationException}
Object: Uno_Write (level 2){ Method not found: 'Void Grasshopper.Kernel.GH_PersistentParam`1.SetPersistentData(System.Object[])'. MissingMethodException}
Object: ArduinoBake (level 1){ Exception has been thrown by the target of an invocation. TargetInvocationException}
Object: ArduinoBake (level 2){ Method not found: 'Void Grasshopper.Kernel.GH_PersistentParam`1.SetPersistentData(System.Object[])'. MissingMethodException}
Thank you for your help!
Colin…