In this setup we'll use the NI CompactRIO as the shared variable client. We'll be running a LabVIEW project containing the shared variables hosted on the NI Smart Camera, and using Vision Builder AI running on the NI Smart Camera as a host for those shared variables (called System Variables in Vision Builder AI).
A) Setting up the Smart Camera
In Vision Builder AI, you still want to create an inspection first (or open one of the included example inspections). For help with this, please view the NI Vision Builder for Automated Inspection Tutorial, just like above. The inspection steps shouldn't differ, except for the Set Variable step.
In the Additional Tools palette, there is a Set Variable step. This step is used for setting up variables for local use (called Inspection Variables), or the two types of shared variables discussed above. In this case, we'll be adding a new System Variable. You can share anything from a diameter of an object you measured to a code read off of a part moving down a production line.
The two bits of information you'll want to keep in mind are the IP address of the NI Smart camera, and the variable name you're going to target.
B) Setting up the CompactRIO
The first step in receiving the shared variables on the CompactRIO is to create a new LabVIEW project. Add the CompactRIO to your project.
Once this is done, you can set up your LabVIEW project on the CompactRIO so that it's a client for the shared variables hosted on the NI Smart Camera. The following document will walk you through this.
Using the LabVIEW Shared Variable
You should be able to target the shared variables hosted on the NI Smart Camera just by browsing through the directory that has the IP address assigned to the camera.
Once these are set up, they can be read from and written to from anywhere in your LabVIEW application.