Adding Devices

Use the Add Network Chassis VI to add devices on the same or different subnets to the configuration file.

The SLSC LabVIEW API automatically discovers devices on the same subnet but does not add the devices to the configuration file of the host machine. You can find the local configuration file at the following locations:

  • (Windows) C:\ProgramData\National Instruments\nislsc\nislsc.json.
  • (NI Linux Real-Time) /var/local/natinst/nislsc/nislsc.json.
  • (Phar Lap ETS) C:\ni-rt\nislsc\nislsc.json.

The SLSC LabVIEW API automatically discovers chassis that are added to the configuration file. When a chassis is added, the cached information overrides any chassis with the same name that is discoverable on the network. If a chassis has already been added and the Add Network Chassis VI is called again, the SLSC LabVIEW API updates cached chassis and module information to reflect the current hardware configuration.

The Add Network Chassis VI opens a temporary network connection to the chassis to download information about the chassis and its modules, then closes the connection afterward. The Add Network Chassis VI does not reuse or affect cached network connections, nor does it cache the new network connection. The username and password are only used for this temporary network connection. To save a username and password for subsequent network connections, use the Log In VI.

The Configuration VI, in the labview\examples\SLSC directory, demonstrates how to add devices.

  1. Run the Configuration VI.
  2. Click Add.
  3. Enter the Hostname or IP Address, Username (case sensitive), Password (case sensitive).
  4. Click OK.