
16-11-2014, 11:41
|
 |
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
|
|
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,106
|
|
|
Re: RoboRIO .NET interop
Quote:
Originally Posted by Greg McKaskle
The .NET interop is mostly based around property and method nodes. This lets you connect to built assemblies, but not insert C# or other text code into the diagram.
If you are wanting to include some text programming, I have two different suggestions. The formula node is a pretty good subset of C. It lets you write equations, loops and conditional code too. It is nice to use when you already have an equation and don't feel like writing it with nodes.
I don't see the MathScript support in the palettes. The formula node is extensible and some other math languages and tools have plugged in, but they have to do it specifically for a platform, and I don't see it on linux.
A second approach would be to build some source into a library and call into it using a Call Library Function. If you use simple data types, it is not hard to accomplish. On the other hand, if you aren't careful, you can corrupt memory, crash, etc.
Greg McKaskle
|
I know that it is based around the property and method nodes. I was just wondering if those were available on the roboRIO, and if they were usable, since its possible to have working .NET on the roboRIO.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
|