Scada-LTS icon indicating copy to clipboard operation
Scada-LTS copied to clipboard

Fixed Import Increment and Attractor change type

Open Patrykb0802 opened this issue 10 months ago • 0 comments

When importing freshly created export file with virtual data source containing multi state data points, data point's type will change to binary after exporting.

To Reproduce

  1. Create Virtual data source with three multi state data points
  2. Change "change type" of two of the points to increment and one to random, make sure to save everything after editing.
  3. Go to "Export/Import" menu and export your project.
  4. Try to import freshly exported file
  5. Look at the type of virtual data points, points that were multi state, increment are now binary ----> ERROR
  6. Multi state random data points should remain unchanged

Expected behavior Importing a project should not change types of data points.

Desktop

  • OS: Linux Mint
  • Browser Chrome
  • Version <=2.7.7

Additional context This bug can be caused by change type of data points, random seems not to cause issues, where increment is causing this exact issue. Numeric data point type with attractor change type is having the same issue. Points that are causing these issue are being changed to binary type after importing.

edit: The problem affects the Virtual Data Point type, the Multistate data type and the Increment change type, and the Numeric data type and the Attractor change type. Such a point is imported as a Binary Point, Alternate change type, and is disabled. There is probably a problem with recognizing the type of change from the json file, which is why it sets default values, even though the correct type of change is exported in the json file. File from export project: attractor_failed.zip

Patrykb0802 avatar Apr 12 '24 11:04 Patrykb0802