Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 1.18 KB

PI_data_using_R.md

File metadata and controls

29 lines (26 loc) · 1.18 KB
  • This is ONLY for Windows

  • Ingredients

  • Installing ROSIsoft.zip

  • Sample run

    • In R CLI
      • library(ROSIsoft)
      • AFSetup()
      • con <- ConnectToPIWithPrompt('cmssvm166')
        • Will ask username/password
      • con$IsPIConnected
        • TRUE or FALSE
      • data <- GetPointValues('SINUSOID', '2018-Dec-11 01:45:00', '2018-Dec-12 05:55:00', 'interpolated',10)
      • head(data)
      • FindPointsbyName('sinu')
        • Find PI tags which have 'sinu' in the name
      • data <- GetPointValues('SINUSOID', '2018-Oct-13 03:15:00', '2018-Oct-14 03:25:00', 'recorded',1)
        • Pull data as recorded
        • "1" in the end is a dummy