You can create a Modbus or ModbusSlave I/O server interactively or programmatically.
Creating Modbus I/O Servers Interactively
Complete the following steps to configure a DSC Module Modbus or ModbusSlave I/O server interactively.
- 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 Modbus or ModbusSlave and click the Continue button.
 |
Note If you have not specified a default project library, LabVIEW creates a project library and places the new I/O server inside it. Right-click a library and select Make Default to specify a library as the default library. |
- In the Configure Modbus Instance or Configure Modbus Slave Instance dialog box, select the communication protocol, or Model, and the Communication Setting you want to use.
- (Optional) Click the Advanced button of the Configure Modbus Instance dialog box to configure the Maximum Data Points Per Read Command.
- Click the OK button.
Creating Modbus I/O Servers Programmatically
Complete the following steps to configure a DSC Module Modbus or ModbusSlave I/O server programmatically.
- Place the Create and Configure IO Server Express VI on the block diagram.
- In the configuration dialog box that appears, select Modbus or ModbusSlave from the I/O Server Type drop-down list.
- Click the Set Attributes button to display the Configure Modbus Instance or Configure Modbus Slave Instance dialog box.
 |
Note If you click the OK button before you set the attributes for this I/O server instance, LabVIEW automatically displays the Configure Modbus Instance or Configure Modbus Slave Instance dialog box. |
- In the Configure Modbus Instance or Configure Modbus Slave Instance dialog box, configure the settings for the new I/O server.
- Click the OK button to close the Configure Modbus Instance or Configure Modbus Slave Instance dialog box.
- Click the OK button to close the configuration dialog box for the Express VI.