Creating a periodic I/O server is a two-step process. First, you must create a custom I/O server, then you must configure the periodic I/O server using the Custom VI-based Server – Periodic Wizard, and finally you must set the initial values for the inputs of the periodic I/O server.
After you create a new periodic I/O server, you do not need to create it again. You can just set the initial values for the inputs to reconfigure the I/O server.
Creating a New Periodic I/O Server
Complete the following steps to create a new periodic I/O server.
- In the Project Explorer window, right-click a target, such as the My Computer target, and select New»I/O Server from the shortcut menu.
- In the Create New I/O Server dialog box, select Custom VI – Periodic and click the Continue button.
- In the Custom VI – Periodic I/O Server Configuration dialog box, click the New button to display the Custom VI-based Server – Periodic Wizard.
You also can select Tools»DSC Module»VI Based Server Wizard»Periodic to display the Custom VI-based Server – Periodic Wizard.
Configuring the Periodic I/O Server using the Custom VI-based Server – Periodic Wizard
The Custom VI-based Server – Periodic Wizard converts a VI into a custom I/O server that runs in the Shared Variable Engine and publishes NI-PSP data items to the network. The Custom VI-based Server – Periodic Wizard contains five pages that you must configure. Complete the following steps to configure the periodic I/O server.
- On the Select VI page of the Custom VI-based Server – Periodic Wizard, enter the path to the VI that you want to convert into a periodic I/O server in the Path to VI text box. You also can use the Browse button to navigate to the VI.
- (Optional) If you have the LabVIEW VI Analyzer Toolkit installed, place a checkmark in the Run VI Analyzer on VI checkbox. The VI Analyzer Toolkit can help you optimize the VI by running tests on the VI.
- Click the Next button to continue.
- On the Select Controls and Indicators To Publish page, select the front panel objects that you want to publish by placing checkmarks in the checkboxes next to the front panel object name displayed in the Controls or Indicators list. You must select at least one control or indicator to publish.
- Click the Next button.
- On the Select Method To Stop The Server page, select the method you want to use to stop the VI. You can select Abort VI or Stop the following While Loops. Use the Stop the following While Loops option to select a While Loop from the block diagram to use as the shutdown option.
- In the Timeout(ms) text box, enter the amount of time, in milliseconds, you want the VI to wait before timing out.
- Click the Next button.
- On the Configure Server Distribution Component page, enter a name for the server configuration in the Configuration name text box.
- Use the Browse button in the Support files section to navigate to the support files necessary to run the server.
- Click the Add button to add the support files to the list of Support files.
- Click the Next button.
- On the Server Distribution Component page, the Custom VI-based Server – Periodic Wizard shows a summary of what the wizard is going to build. Click the Build button. LabVIEW shows a Build Status dialog box.
Setting the Initial Values of the Periodic I/O Server
After the Custom VI-based Server – Periodic Assistant builds the files, the Custom VI – Periodic I/O Server Configuration dialog box appears again. Complete the following steps to use this dialog box to set the initial values for the inputs for the periodic I/O server.
- Select an input from the Published controls table and enter a value in the control that appears to the right of the table.
- Click the OK button to close Custom VI - Periodic I/O Server Configuration dialog box.