This project has moved. For the latest updates, please go here.

OpenPDC to MATLAB

Dec 15, 2015 at 4:25 PM
I would like to know if we can get the PMU data from OpenPDC to MATLAB in real time operation.
Coordinator
Feb 5, 2016 at 5:30 PM
Suggest you look at writing an "ActionAdapter" - see documentation for help. Using this you should be able to call your MatLab algorithm using .NET/C# integration features.
Feb 25, 2016 at 6:49 PM
Hi,

I looked up the documentation on ActionAdapter : http://openpdc.codeplex.com/wikipage?title=Custom%20Adapter%20(Developers)&referringTitle=Documentation#add_references
It looks like that "TVA.Core.dll" and "TimeSeriesFramework.dll" do not exist anymore in the installation path!

Am I missing something or it's because of changes in new versions ?

Thanks,

Reza
Coordinator
Feb 25, 2016 at 6:53 PM
Hi Reza,

It is, indeed, because of changes in new versions. In the latest versions of the software, we have renamed those files to "GSF.Core.dll" and "GSF.TimeSeries.dll" respectively.

Thanks,
Stephen
Feb 25, 2016 at 8:04 PM
Thanks a lot!

I just figured it out reading the Time-series Framework project web page.
Is there any available Action Adapter example compatible with new version so I could use it as a practice? It will help me a lot to find the best idea to realize my own adapter.
If yes, I would appreciate it if you help me find it.

Thanks,

Reza
Coordinator
Feb 25, 2016 at 8:20 PM
There are a few examples. Most of the openPDC's codebase is maintained in the Grid Solutions Framework project, so you will be able to find them there.

DynamicCalculator extends from ActionAdapterBase.
https://github.com/GridProtectionAlliance/gsf/blob/master/Source/Libraries/Adapters/DynamicCalculator/DynamicCalculator.cs

There are several adapter examples in PowerCalculations, most of which extend from CalculatedMeasurementBase.
https://github.com/GridProtectionAlliance/gsf/tree/master/Source/Libraries/Adapters/PowerCalculations

The AlarmAdapter extends from FacileActionAdapterBase.
https://github.com/GridProtectionAlliance/gsf/blob/master/Source/Libraries/Adapters/DataQualityMonitoring/AlarmAdapter.cs

The StatisticsEngine also extends from FacileActionAdapterBase.
https://github.com/GridProtectionAlliance/gsf/blob/master/Source/Libraries/GSF.TimeSeries/Statistics/StatisticsEngine.cs

There are a few more, but these are probably the best examples.

Thanks,
Stephen
Feb 25, 2016 at 8:26 PM
Thank you so much! It's very helpful.
Mar 1, 2016 at 8:50 PM
Dear Stephen,

Trying to use OpenPDC libraries like GSF and PhasorProtocolAdapters, I got errors in Visual Studio indicating that the targeted .Net Framework V. 4 is lower than my current version (V.4.6).
What do you suggest to resolve this problem? Do I need to uninstall the newer versions of .Net Framework from Windows?

Thanks in advance,

Reza
Coordinator
Mar 9, 2016 at 2:39 PM
Hi Reza,

The latest versions of GSF and openPDC make use of .NET 4.6. Applications using later versions of the framework can include assemblies that target older versions of the framework, but not vice-versa. Therefore, your application must target .NET 4.6 in order to reference the libraries in GSF. This can be done from the Properties page for your project within Visual Studio.

https://msdn.microsoft.com/en-us/library/bb398202.aspx

Note that you will need to be using Visual Studio 2015 or a .NET Framework Targeting Pack in order to select .NET 4.6.

Thanks,
Stephen