Go to Post Let me tell you, the scariest day ever was the day that I realized since I am a mentor, people actually take my advice and I should be careful of what kind of advice I give. :ahh: - Elgin Clock [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-09-2013, 16:45
KOGPaladin KOGPaladin is offline
Registered User
FRC #3370
 
Join Date: Sep 2013
Location: Texas
Posts: 2
KOGPaladin is an unknown quantity at this point
Post .NET C# Based Add-On Help

So I am using an add-on that allows me to interface with special hardware in labview, and it works fine on brand new test projects unrelated to robot code (Blank VI's in a New Project.) The problem comes when trying to add it to our robot code, as (I believe) the cRIO does not have native support for the C#/.NET code. I am limited as to how much I can share on the nature of the add-on api, as I don't have permission from the author.

What I want to know, is if it's possible to make a generic addon that uses .NET 3.5 C# code to operate, compatible with the cRIO.

Oh, and the compiling error I get says
"Wire: Type not supported in current target."
  #2   Spotlight this post!  
Unread 25-09-2013, 17:01
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,107
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: .NET C# Based Add-On Help

It is not going to be possible to run .NET code on the current CRIO because the libraries do not exist on the current VXWorks system. You can write native C++ code and interface with that through LabVIEW, but not .NET.

Now this could all change when the new RoboRIO comes out because there is .NET compiled for ARM Linux, and the base libraries should be compatible with a little work.
__________________
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.
  #3   Spotlight this post!  
Unread 25-09-2013, 17:10
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,756
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: .NET C# Based Add-On Help

To confirm. I do not know of a .NET runtime for vxworks. LV supports ActiveX and .NET interfaces, but only on Windows for OSes where they libraries are there to interface with.

If the author can give C code such as a DLL, then it can be compiled as a .out for vxworks. That can be called by LV on all platforms.

Alternatively, you can read from the sensor or bus and pull the data straight into LV.

Greg McKaskle
  #4   Spotlight this post!  
Unread 25-09-2013, 20:39
KOGPaladin KOGPaladin is offline
Registered User
FRC #3370
 
Join Date: Sep 2013
Location: Texas
Posts: 2
KOGPaladin is an unknown quantity at this point
Re: .NET C# Based Add-On Help

Thanks for the info, I guess i'll have to create a custom driver for windows to emulate a controller and program it in using normal methods. Alas, no custom interface for me >_<
  #5   Spotlight this post!  
Unread 25-09-2013, 22:21
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: .NET C# Based Add-On Help

If you're trying to write code to interface with a custom game controller/user interface, that would have to execute on the driver station side of things anyway. You could write a program in LabVIEW targeted to the driver station (where .NET is available) that interfaces with the controller, then sends data to the robot using Network Tables, UDP, or some other protocol.

This is assuming that the driver station will play nice with other programs running on the driver station that try to claim game controllers. As long as the driver station doesn't crash, the worst case scenario might be you have to start your software before you start the driver station.
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
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 03:26.

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