Go to Post Enlighten a man who sometimes has difficulty understanding why others stray outside the box, when the box appears to be an optimized and elegant solution. - JVN [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 18-04-2010, 15:41
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Lightbulb Run Virtual cRIO

Hi,
I hope this is not a "stupid" question,but;
what would happen if one tried to run the cRIO image on a virtual machine (e.g. VMWare)? Would it even work?

Just curious.

-Masoug
__________________

JabbaScript
  #2   Spotlight this post!  
Unread 18-04-2010, 16:01
carrizzle451 carrizzle451 is offline
Registered User
AKA: Alejandro Carrillo
FRC #0694 (Stuypulse)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2008
Location: New York
Posts: 1
carrizzle451 is an unknown quantity at this point
Re: Run Virtual cRIO

Not easily, since I don't think VMWare supports real-time OS's.
  #3   Spotlight this post!  
Unread 18-04-2010, 16:07
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Run Virtual cRIO

Also, the cRIO is 2 processors: a 400MHz PowerPC CPU (what your code runs on), and an FPGA processor to interface with the modules. Your average emulator won't do that.

If you're looking for a way to test code without a cRIO, I think a special version of WPILib designed to run on a regular computer would work. The hardest part would probably be implementing the DS to robot comms protocol. A GUI robot control panel that allows you to set all the sensors and read all the outputs would be nice (labview comes to mind)
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
  #4   Spotlight this post!  
Unread 18-04-2010, 16:15
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Re: Run Virtual cRIO

Well i guess then we are stuck with the cRIO...

Anyway THANKS for the responses!

-Masoug
__________________

JabbaScript
  #5   Spotlight this post!  
Unread 18-04-2010, 23:31
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Run Virtual cRIO

Here's what I would do:

Go into each top-level WPIlib VI, move the inputs and outputs far to the outside if possible, and wrap a Conditional Disable Structure around them, case on OS (VxWorks vs WIN) and put simulator code in the WIN case. If WIN, you can have a big global variables file for each type of IO (relay, PWM, DIO, Joystick, etc.) and do stuff. For the Comm loop, you could read a joystick and set the appropriate joystick data, as it is set in the existing comm code (except with USB joysticks on your computer instead). You could also throw in a Wait On Occurrence to the DS Occurrence (what gets passed into Start Comm) so the Robot Mode VI dosen't timeout (and a wait in there too so it runs at the normal speed or so)
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #6   Spotlight this post!  
Unread 18-04-2010, 23:44
JamJam263 JamJam263 is offline
Registered User
FRC #0263
 
Join Date: Feb 2009
Location: Lk Ronkonkoma
Posts: 27
JamJam263 is a glorious beacon of lightJamJam263 is a glorious beacon of lightJamJam263 is a glorious beacon of lightJamJam263 is a glorious beacon of lightJamJam263 is a glorious beacon of light
Re: Run Virtual cRIO

Well if your using C++ you could always use the wpi test harness. http://firstforge.wpi.edu/sf/project...b_test_harness
__________________
Favorite 2009 quotes:

"Do we really need all of the cRIO or can we cut it in half to save weight?"

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
cRIO wont run software ThisAintJeff NI LabVIEW 4 02-02-2010 15:47
How do you run the pneumatics through the CRio w/o using the Jaguars and the Spikes brreadd Pneumatics 3 20-11-2009 15:35
Robot Run 5K Run/Walk - fundraise or come for the fun Carol Fundraising 0 06-03-2009 16:14
DS tty serial and crio run speed Mr-Shutter FRC Control System 5 21-01-2009 12:39
cRio losing connection when "run as startup" mgurgol Programming 2 12-01-2009 12:18


All times are GMT -5. The time now is 23:46.

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