Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When you define a device interface, part of the device interface includes a definition of the datapoint type. You can modify this datapoint type to another datapoint type that matches its function in your installation. The new datapoint type must be the same as the original. That is, if the datapoint is a scalar, then the new datapoint must also be a scalar. Or, if the datapoint is a float, then the new datapoint must also be a float.

...

To modify datapoint types, perform the following steps:

  1. Open the SmartServer IoT CMS

  2. Open the Datapoints widget. Click the Expand button ( Image Modified ). 


    Go to the Datapoints widget.



  3. Click the Action button () and select the Export Datapoint action.

    Or, to export multiple datapoints, select the datapoints to be exported by clicking the checkmark for the desired datapoints (the checkmark changes from blue to yellow), and then click the Action button () and select the Export Selected Datapoints action.

    Or, to export all datapoints, click the Action button () and select the Export All Datapoints action.

    A datapoints CSV file is created.

  4. Save the datapoints file to your desktop.

  5. Open the datapoints file and modify the Datapoint Type column as needed. You can modify the datapoint type to another datapoint type that matches its function in your installation. 

    Info

    For more information about LonMark datapoint type definitions, go to www.lonmark.org/technology/technical-resources/functional-profile/. See SNVT – Standard Network Variable Types and ENUM – Standard Enumeration Types for datapoint details.

    An example of the datapoints file is shown below with the Datapoint Types column that can be modified highlighted in red.



  6. Save the datapoints file changes.

    Note
    titleDatapoints file naming convention

    When importing a datapoints file, the extension should be .data.csv (e.g., allDatapoints.data.csv). When the datapoints file is exported, a number may automatically be appended to the filename to differentiate files, such as allDatapoints.data(1).csv. In this case, you will need to remove the (1) from the .data.csv extension before importing the file.


  7. Click the Action button () and select the Import Datapoint Types action.



    The Import Datapoint Types view appears.



  8. Select the modified datapoints file to be imported and place it in the DROP FILE HERE area.



  9. Click IMPORT FILE.

    The modified datapoint types are imported into the SmartServer.

  10. Click BACK to return to the Datapoints widget.

...