Go to Post Great. Just what we need. DHS showing up at all the regional competitions. . - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 21-02-2013, 00:41
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
LabVIEW Runtime for Linux

Why doesn't National Instruments put a copy of the LabVIEW runtime for Linux in the Kit of Parts? If they did, our team would be able to use Linux 100% for coding. Is there any way to request this? Coding in Linux would eliminate all the countless problems that arise while using Windows... like random blue screens while writing code in Wind River...

Alex Brinister
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2013, 07:44
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: LabVIEW Runtime for Linux

Can you explain more about what you'd do with this? How does a LabVIEW runtime help with blue screens in WindRiver? The LabVIEW runtime for linux is a free download, but I'm not sure I see the connection.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2013, 16:46
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: LabVIEW Runtime for Linux

Could we not then use Driver Station in Linux? So that we wouldn't have to use Windows for anything?

Alex Brinister
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2013, 17:04
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LabVIEW Runtime for Linux

The Driver Station application is a Windows executable. It's not compiled to run under anything else.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2013, 17:12
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: LabVIEW Runtime for Linux

Is there some way to request a Linux executable? Or at least ask FIRST to give us source code so we can do it ourselves?

Alex Brinister
Reply With Quote
  #6   Spotlight this post!  
Unread 21-02-2013, 20:31
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: LabVIEW Runtime for Linux

You can certainly request it, but at the end of the day, the testing and support effort is reasonably high.

I'd love to create the DS for a mac, like I'm using now, Windows, like I have in my VM, and Linux, because penguins are cute ; ).

The LV code is the same, but the calls to read joystick, detect a disconnect, locate special keys, communicate to the Cypress, not to mention detecting radio configuration and updating it are not platform independent. Those are the elements that have risk. We will see what the future holds.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 23-02-2013, 13:34
Fifthparallel Fifthparallel is offline
Registered User
AKA: Sam Chen
FRC #1410
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Denver, CO
Posts: 65
Fifthparallel is an unknown quantity at this point
Re: LabVIEW Runtime for Linux

Why not use something like Python + GTK to create something portable/interoperable for the DS? FWIW, the FMS and general robot code are all made of interfaces which should allow anything to interact with it/receive information from it, right? The LV development suite & robot code can't really be helped, of course, but our driver station laptop isn't needed for development and would like a penguin sticker on it.
__________________
sudo chmod u+x helloworld.sh
gotta start somewhere.
Reply With Quote
  #8   Spotlight this post!  
Unread 23-02-2013, 19:06
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: LabVIEW Runtime for Linux

The DS could be written in many languages and run on many OSes. But that doesn't mean it will be quick to develop. A basic DS, sure, but one with all the I/O support and logging will be quite a bit of effort.

LV applications are quite portable, by the way, but not necessarily the DLLs or OS specific libraries they call. I attached it loaded on the Mac, notice the broken arrow? That is where the effort would come in, and in addition, you would then need to make sure that support folks at the events would know how to troubleshoot and setup networking and the like on linux, mac, and windows. This is where the real effort comes from.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Clipboard 1.png
Views:	151
Size:	182.8 KB
ID:	14154  
Reply With Quote
  #9   Spotlight this post!  
Unread 23-02-2013, 21:47
Fifthparallel Fifthparallel is offline
Registered User
AKA: Sam Chen
FRC #1410
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Denver, CO
Posts: 65
Fifthparallel is an unknown quantity at this point
Re: LabVIEW Runtime for Linux

What are some good examples of windows specific libraries the driver station uses? Sorry for the mistake, it seemed like the issue was not being able to port the DS because of the differences in the various Runtime engines.

Besides that, what are the additional use cases of the Driver Station aside from a driver driving the robot or diagnostics? Would I be able to answer my own question by looking at the driver station project?

Thanks
__________________
sudo chmod u+x helloworld.sh
gotta start somewhere.
Reply With Quote
  #10   Spotlight this post!  
Unread 23-02-2013, 22:15
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: LabVIEW Runtime for Linux

OS stuff include the DirectInput stuff to read the joysticks, detect a disconnect, and at one point it needed to locate the estop button.

The calls to read, configure, and deal with the Cypress.

There are a number of calls to locate NICs, identify whether their setup makes sense given the team number, and potentially even reconfiguring them.

There was a call to identify when the laptop was reawakened from sleep.

The Kinect stuff was pushed to a server, but that would be an issue if not using Windows.

The other stuff that the DS does is to fire up 12 separate loops speaking unique protocols to FMS, robot, Kinect, Cypress, Dashboard, keyboard, joystick. Then it logs and charts the stuff and tries not to use much CPU.

A number of folks have written their own DS mimic'ing the basic protocol to and from the robot. As long as you keep safety in mind, it is a good project to take on. Just be sure to test all the things that would cause an out of control robot.

Greg McKaskle
Reply With Quote
  #11   Spotlight this post!  
Unread 23-02-2013, 22:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LabVIEW Runtime for Linux

Quote:
Originally Posted by Fifthparallel View Post
What are some good examples of windows specific libraries the driver station uses?
Greg already gave a reasonably comprehensive answer to that question.

Quote:
Besides that, what are the additional use cases of the Driver Station aside from a driver driving the robot or diagnostics? Would I be able to answer my own question by looking at the driver station project?
I think controlling an FRC robot is the only thing the Driver Station is meant to do.

The Driver Station project is not published for people to look at.
Reply With Quote
  #12   Spotlight this post!  
Unread 23-02-2013, 22:45
Fifthparallel Fifthparallel is offline
Registered User
AKA: Sam Chen
FRC #1410
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Denver, CO
Posts: 65
Fifthparallel is an unknown quantity at this point
Re: LabVIEW Runtime for Linux

Thanks for the explanation! It all makes a lot more sense now.
__________________
sudo chmod u+x helloworld.sh
gotta start somewhere.
Reply With Quote
  #13   Spotlight this post!  
Unread 25-02-2013, 11:16
Japper's Avatar
Japper Japper is offline
Registered User
FRC #3692 (RocknRobots)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Rutland Wisconsin
Posts: 147
Japper has a spectacular aura aboutJapper has a spectacular aura about
Re: LabVIEW Runtime for Linux

Is it even possible to run the FRC version of Labview on a Linux system?

I would like to be able to put together a Labview application for use in the pit to run on a Raspberry Pi running linux and am wondering what it would take to do this if it is even possible...

thanks
Reply With Quote
  #14   Spotlight this post!  
Unread 27-02-2013, 04:46
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: LabVIEW Runtime for Linux

Quote:
Originally Posted by Japper View Post
Is it even possible to run the FRC version of Labview on a Linux system?

I would like to be able to put together a Labview application for use in the pit to run on a Raspberry Pi running linux and am wondering what it would take to do this if it is even possible...

thanks
The Raspberry Pi is an ARM processor. The LabVIEW for Linux is compiled for and runs on x86 Linux.

You could potentially write an application using LabVIEW for ARM, but that is a much more hardware-centric version of LabVIEW and is not terribly easy to use.
Reply With Quote
  #15   Spotlight this post!  
Unread 28-02-2013, 17:01
Fifthparallel Fifthparallel is offline
Registered User
AKA: Sam Chen
FRC #1410
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Denver, CO
Posts: 65
Fifthparallel is an unknown quantity at this point
Re: LabVIEW Runtime for Linux

Out of curiosity, is DirectInput only used instead of XInput to provide support for legacy controllers like the Attack 3 joystick? It's unrelated, but can we have a choice of using either DirectInput or XInput? Being able to use the two triggers for tank drive would be appreciated.

More related, though, if I read the post earlier correctly then DirectInput, getting system calls for laptop going to sleep, and Kinect server stuff were the meat of OS-specific parts of the Driver Station. Xinput, the successor to DirectInput, has already been ported to both OSX and has a man page entry for Linux-kernel distributions. OSX has power assertions instead of sleep mode system calls, and "sleep" is taken care of in userland by things like the X window system on various linux distros. Kinect server stuff doesn't look like it can be helped, although youtube presents people using the kinect images on both OSX and Ubuntu 9.04 and up.

Is there anything that can be done about this?
__________________
sudo chmod u+x helloworld.sh
gotta start somewhere.
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 14:58.

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