Go to Post And then since this is GTR-W there's also maple syrup somewhere and the drive team says "Sooory." - PayneTrain [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 16-11-2014, 01:23
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,094
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
RoboRIO .NET interop

Does anybody know if .NET interop works in labview on the RoboRIO if you install mono? It seems like it would, and I think it would be really cool for using text based code in labview.
__________________
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.
  #2   Spotlight this post!  
Unread 16-11-2014, 09:23
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: RoboRIO .NET interop

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
  #3   Spotlight this post!  
Unread 16-11-2014, 11:41
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,094
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: RoboRIO .NET interop

Quote:
Originally Posted by Greg McKaskle View Post
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.
  #4   Spotlight this post!  
Unread 16-11-2014, 13:34
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: RoboRIO .NET interop

The property nodes work for a number of different interfaces, LV UI, LV Classes, LV I/O, and ActiveX and .NET. Each of these has to not only be on the target, but plugged into the compiler. I can't be positive, but I don't think the ActiveX or .NET integration is there except for on Windows.

What .NET components were you specifically interested in? The linux platform has shells and libraries as its native extension mechanisms, and plenty of other things like interprocess comms are relatively easy.

Greg McKaskle
  #5   Spotlight this post!  
Unread 16-11-2014, 13:40
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,094
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: RoboRIO .NET interop

I've been working on a Trajectory Generator based on 254's path generator, and it's written in C#. Right now I am able to invoke it from LabVIEW on my desktop, and I want to be able to do that on the RoboRIO as well. Since .NET can run on the RoboRIO if we compile it, it seems like .NET interop could work as well.
__________________
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.
  #6   Spotlight this post!  
Unread 16-11-2014, 18:21
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: RoboRIO .NET interop

I don't know that much about mono on linux. Can you compile it into a linux library? Can you give it C entry points? If so, it will be easy to call from LV. Another approach is to use shared memory or pipes/TCP. And of course another is to write it in LV or using formula nodes.

I also don't know that much about the trajectory code. The guys who built NItro, years ago, use the NI Motion libraries for their trajectory generation. Libraries like this can be added to WPILib or made available if teams will use them, but I haven't heard many requests.

Greg McKaskle
  #7   Spotlight this post!  
Unread 16-11-2014, 20:23
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,573
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: RoboRIO .NET interop

I'm mildly curious about the future of .net capabilities since Microsoft is now open sourcing it.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:45.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi