algorithmic modeling for Rhino
Hi All,
I'm having trouble opening a port in Firefly to connect to my Arduino board. Specifically, the Firefly's "open/close port" component in Grasshopper crashes when a port number is assigned to 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
Tags:
Hi Colin,
There are a few things that stand out to me as being strange with your error report. The first is that you're getting an error notification from the ArduinoBake component (which was removed from the Firefly Build some revisions ago). The fact that it's throwing an error makes me think that you may have an older version of Firefly installed somewhere on your computer (perhaps in your Libraries folder, or in the root Grasshopper Components folder. Can you double check to make sure you don't have any duplicate builds installed anywhere? Also, I noticed you are using Grasshopper 0.8.0006. It's possible (although doubtful) that there is a conflict with the latest version of Firefly and this older version of GH. Could you try dowloading the latest WIP version of Grasshopper (0.9.0006) and see if this fixes the problem. Lastly, usually when people get Open Port errors, it's because the COM port is already opened by another program (most often it's the case of the Arduino Serial Monitor running in the background). Can you check to make sure you don't have the Arduino Serial Monitor open in the background (I'm doubtful that this might be it, because it usually gives a different error message... but it doesn't hurt to check that this isn't the case).
Let me know if this helps, or if you're still getting the error.
-Andy
I'm getting exactly the same errors. And I've never install a previous version of firefly. I also have a newer version of GH 8.0066. I will try to update to 0.9.006
The only thing that I thing that it can be possible is that I'm running rhino in parallels desktop for mac. I don't know if its possible that the error comes from here.
Any new ideas will be very helpfully Andy.
Nicolas
Ok, very fast with the new version of GH seems to work well.
Hooray! The serial port is open!
Great. Glad it's working!
Cheers,
Andy
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by