Quote:
|
I forgot to mention that I don't have the cRIO since we shipped the robot with it.
|
Bummer. My post assumed you still had a cRIO. This is doable, but a bit more involved.
In that case, the first thing I'd do is zip and backup everything so that you don't have accidental edits showing up on the robot.
Next determine which portions of your app you want to test out. It will be very difficult to get the whole app up and running -- the PC can't do the FPGA I/O after all, and there are many calls to the FPGA.
Anyway, pick the leaf level code you most want to run on the PC. Drag it from the cRIO target to the My Computer target. Open the VI under the PC portion of the tree. You'll find plenty of broken subVIs when finished loading. You can possibly delete them, or open the subVI, save As to new name, and then delete the diagram to make a stub. In some cases, you may want to have the VI return model data -- a sine wave or random number or constant may be fine.
Once you get the things below your VI ready and you can single run, you will sometimes want to build a quick harness to call your VI with model inputs. This is also a good way to discover what your code does with flaky inputs, things like 0, big numbers, even infinity and NaN.
You can interact directly with the subVI panel and build as many of these harness caller VIs as you feel you need in order to drive your subVI through its paces. Obviously, you need to be very organized here and any changes you make to your code needs to be integrated back carefully without all of the stubbed code changes. So hopefully you don't have too many of these to do.
Greg McKaskle