QUESTION: SubVI's, and incorporating camera files

Okay, the deal is that we are attempting to incorporate our camera VI’s that we have created into our main robot project.

I think that there are two approaches. Apparently one is to reference the camera VI within the RobotMain VI using a sub VI and connector pane. The other, which I personally think would be more efficient would to be simply copying and pasting the camera files directly into the RobotMain folder. The problem we are trying to overcome is creating a single robot project that contains both the drive VI’s and the Camera VI’s. We tried to update the cRIO with each project separately, but each time we do this, one project overwrites the other.

Any ideas? How can we incorporate the two projects, or at least the VI’s within each?

Yes, you will need to combine the VIs in order for both to run. The overhead for a subVI call is tiny. If you start looking at the layers of code going down to read the FPGA, you’ll realize just how small it is/must be.

Anyway, the easiest thing to do is to make your inputs and outputs on your vision code be programmatically accessible. You do this by adding them to the connector pane. Then you can drop your subVI wherever you like, wire stuff up, and you have code reuse.

The other thing to do is to move the file to be near your other files and make sure you’ve opened/dropped that one.

Greg McKaskle

Awesome!

Thanks for your help, our camera is up and feeding!