|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||
|
|||
|
Re: Run Virtual cRIO
Not easily, since I don't think VMWare supports real-time OS's.
|
|
#3
|
|||
|
|||
|
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) |
|
#4
|
||||
|
||||
|
Re: Run Virtual cRIO
Well i guess then we are stuck with the cRIO...
Anyway THANKS for the responses! -Masoug |
|
#5
|
|||||
|
|||||
|
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) |
|
#6
|
|||
|
|||
|
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
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |