![]() |
|
|
The attached files contain a LabVIEW 8.6 project and a CVI 8.5 project that uses Networked Published Shared Variables to communicate with each other. Please review the following documents for background on Shared Variables:
NI Developer Zone Network Variable Technical Overview
NI Developer Zone Comparison of LabWindows/CVI Network Variable Connection Types
NI Developer Zone Using the LabVIEW Shared Variable
To run this example please conduct the following steps in order:
1. Open the lv_cvi_test.lvproj with LabVIEW 8.6 or above.
2. Open and run the lv_cvi_test.vi, this will deploy the in_out_lib.lvlib.
3. Once the lv_cvi_test.vi is running, open the NVSubscriberWriter.prj using LabWindows/CVI 8.5 or above.
4. You can click on the green arrow (Debug Project) and the project will start running.
Once the CVI program is running, click on the Browse button and navigate to the computer that is hosting the in_out_lib.lvlib. After you expand the in_out_lib.lvlib tree, select LabVIEW_Input for the network shared variable that will write to the chart and select CVI_Output for the shared variable that will write to the CVI_Output indicator on the lv_cvi_test.vi's front panel. Increment and decrement the controls on both the CVI user interface and the LabVIEW front panel and notice how each affect the other. Click on the X button to close the CVI program and click on the Stop button to stop the LabVIEW program.
LabVIEW Front Panel:
CVI User Interface:
There are no comments on this document