Go to Post After it took us weeks to machine sideplates for our 8WD, seeing their simple yet effective drivetrain was a huge "forehead slap" moment. - Chris is me [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-07-2014, 22:58
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Wrapping Code in Labview

How does one wrap Java code and get it to run in labview? We want to deploy part of 254's code of path following, but we do not know how....We used their trajectorylib code to output a curved path when inputting our piecewise-like output of path planning
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
Reply With Quote
  #2   Spotlight this post!  
Unread 04-07-2014, 10:01
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,752
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: Wrapping Code in Labview

LabVIEW can access external code in a variety of ways. The most direct being to call a DLL/lib/.so directly using C calling conventions. But I don't believe you can get Java to export its functions with C conventions. If the code were in C and compiled into a library using C types for the interface, it is pretty straightforward.

I haven't had time to look into the 254 code, but it is worth pointing out that for several years now we have been shipping most of the NI Robotics Module. This is where the simulator came from. The module also contains a A*, AD*, Occupancy Grid, and a pretty cool Steering class. We haven't talked about them much because most teams don't seem to need them, and they are not integrated with WPILib. In fact, they use Classes and many advanced LV features, and it would be a bit of work to write the WPILib wrappers. Most of the robotics library assumes intelligent motor controllers that can control speed or position.

The attached image shows some of the steering examples -- yes, for those cases where the mechanical guys were sleep deprived or messing with you and your SW is supposed to drive a hexabot with different gearing per wheel.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	From Clipboard.png
Views:	70
Size:	1.47 MB
ID:	17147  
Reply With Quote
Reply


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 20:15.

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