Skip to main content

Load The Relay Setting File In Omicron Import Filter

Welcome to the fourth part of the Omicron Import Filter tutorial series. In this tutorial, I will show you how to open the relay setting file that generated from the relay software and manipulate the relay setting data inside the Import Filter. Every relay setting that generated by the different relay software are unique that's why data manipulation is also different. In this tutorial, we will focus on MiCOM P12x series, we will going to use the Schneider Electric software called Easergy Studio. In Easergy Studio, we're going to export the relay setting into TXT format because it's easy to manipulate the data. Make sure you have downloaded the Easergy Studio software.


Download the sample relay setting file in this link (Sample Setting File). Extract the file then open it in the Easergy Studio.


Once the setting file is loaded, export the setting file and select the Export to Text file format and make sure the include hidden settings is checked. Click OK button and save it to a known directory. 


Sample.P123 V10-V14.000.txt file will be generated in the selected directory. This file is contains relay setting information and we're going to load this in the Import Filter that we created.


Open the Visual Studio project MyImportFilter that we've created in the previous tutorial (Creating A User Interface In Omicron Test Universe Import Filter). Once the project is loaded, open the FormSample.vb then double click the Browse button to open the button's code. Copy the line of code below then paste it to the main declaration of the form.

Private TextFileContent As String

Copy the codes below then replace the ButtonBrowse_Click method.

Private Sub ButtonBrowse_Click(sender As Object, e As EventArgs) Handles ButtonBrowse.Click
Using dlgOpen As New Windows.Forms.OpenFileDialog
With dlgOpen
.Title = "Open Relay Setting File"
.Filter = "Text files (*.txt)|*.txt"
.Multiselect = False
If .ShowDialog = Windows.Forms.DialogResult.OK Then
If System.IO.File.Exists(.FileName) Then
Using TextStreamReader As System.IO.StreamReader = New System.IO.StreamReader(.FileName)
TextFileContent = TextStreamReader.ReadToEnd()
TextStreamReader.Close()
End Using
LoadTheTextFileContent()
End If
End If
End With
End Using
End Sub

That will give us an error because the LoadTheTextFileContent() was not declared. Copy the code below and paste it next to ButtonBrowse_Click method to get rid the error.

Private Sub LoadTheTextFileContent()
Dim TextFileLines() As String = TextFileContent.Trim.Split(vbNewLine)
Dim Table As New DataTable
Table.Columns.Add("Parameter", GetType(String))
For Each Line As String In TextFileLines.ToList
Table.Rows.Add(Line)
Next
DataGridViewParameters.DataSource = Table
DataGridViewParameters.Columns("Parameter").AutoSizeMode = Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells
End Sub

Now, compile or build the project then install the output file in the Import Filter installation directory. Check this link on how to install the Import Filter (Install And Use Newly Created Import Filter In Omicron Test Universe) then execute the Import Filter using the OCC document that can be found in this link (Omicron Control Center - Using Import Filter). Open the file that we've exported before (Sample.P123 V10-V14.000.txt) and content will be populated in the datagridview.


We have successfully open the exported setting file in our Import Filter but we're not finished yet. We need to process those text lines, because each line contains seven parameters. So, we need to parse them before importing them in the Xrio converter. I will show you that in the next tutorial. See you next time


Comments

Popular posts from this blog

Micom SE Studio1 Import Filter - Creating User Interface (UI)

Welcome to my page and welcome to the continuation of Omicron Import Filter tutorial series. In this tutorial, I will show you how to create the actual import filter fom Micom relays. In this tutorial, we will focus on the Visual Studio program. We're going to modify the codes in our project called MyImportFilter that we've created in the previous tutorial.  Download the project in this link  MyImportFilter - Process Relay Setting Parameters . Extract and open the project. Once the project is loaded, add New Folder inside the project and set the name to SEStudio1. We need this to make organize our project class filter.  SE Studio 1 stands for Schneider Electric Studio 1 which is the software that used in communicating MiCOM relays particularly P12x series. And yes we're going to create a new import filter and user interface form MiCOM P12x series relay. I think this will applied to other MiCOM P series relay. Add a new Form inside the  SEStudio1 folder  and set the name to

Processing The Relay Setting Parameters In Omicron Import Filter

Welcome to my page and welcome to the fifth part of Omicron Import Filter tutorial series. In this tutorial, I will show you how to process the relay setting parameters that to be import in the Xrio converter. In this tutorial, we will focus on the Visual Studio program. We're going to modify the codes in our project called MyImportFilter that we've created in the previous tutorial.  Download the project in this link  MyImportFilter - Process Relay Setting Parameters . Extract and open the project. Once the project is loaded, add New Folder inside the project and set the name to SEStudio1. We need this to make organize our project class filter.  SE Studio 1 stands for Schneider Electric Studio 1 which is the software that used in communicating MiCOM relays particularly P12x series. And yes we're going to create a new import filter and user interface form MiCOM P12x series relay. I think this will applied to other MiCOM P series relay. Add a new Form inside the  SEStudio1 fo

Write An Encrypted Text File In Visual Basic

There are many ways to encrypt text or data. In this tutorial, DESCryptoServiceProvider class to encrypt and decrypt strings using the cryptographic service provider version of the Triple Data Encryption Standard algorithm. The use encryption to protect secret data and to make data unreadable by unauthorized users. Creating encryption wrapper Open the previous project from this tutorial  Write Text To File In Visual Basic  then rename it to WriteTextToFileWithEncryptionVB or create a new project. I recommend to open the existing project to easily follow this tutorial. Create the Encryption3DesWrapper class to implement the encryption and decryption methods. 1 2 3 Public NotInheritable Class Encryption3DesWrapper End Class Add an import of the cryptography namespace to the start of the file that contains the Encryption3DesWrapper class. 1 2 3 4 5 Imports System.Security.Cryptography Public Class Encryption3DesWrapper End Class In the Encryption3DesWr