-
Notifications
You must be signed in to change notification settings - Fork 5
Using Project Alpha as a TSL Adapter Development Platform Test Harness
J. Ritchie Carroll edited this page Feb 6, 2023
·
1 revision
The following are instructions for getting ProjectAlpha running on a system with Visual Studio for use as a test harness for new adapter development:
- Download project alpha source code: https://github.com/GridProtectionAlliance/projectalpha/archive/refs/heads/master.zip
- Once downloaded, right-click on “projectalpha-master.zip” and select “Properties”
- If there is a checkbox on the bottom right under the “Advanced” button that reads “Unblock”, click this checkbox and then click "OK"
- Extract zip file contents onto local computer
- Rename root folder “projectalpha-master” to a new project name, e.g., “MyAnalytic”
- Open
...\MyAnalytic\Source\ProjectAlpha.slnsolution in Visual Studio (version 2022 recommended, free Community version is OK) - If there is a message that the
ProjectAlphaSetupproject cannot load, this is OK – this requires the WiX extension – but this setup project is not needed for adapter development - Once solution is open in Visual Studio, right-click on
ProjectAlpharoot and select "Rebuild Solution" - Verify that project builds successfully, see "Build Output" window and look for message such as "Rebuild All: 6 succeeded, 0 failed, 1 skipped"
- In Windows explorer, navigate to the
...\MyAnalytic\Build\Output\Debug\Applications\ProjectAlphafolder - Sort the files by "Type", this should group executables together right below the folder list
- Run the application
ConfigurationSetupUtility.exe, then clickNexton the first screen - Make sure "I want to set up a new configuration" is selected, then click
Next - Make sure "Database (suggested)" is selected, then click
Next - Make sure "SQLite" is selected and both "Run initial data script" and "Run sample data script" are checked, then click
Next - Validate that file path for SQLite database is
...\MyAnalytic\Build\Output\Debug\Applications\ProjectAlpha\ConfigurationCache\ProjectAlpha.db, then clickNext - Leave the defined default values on the "Define User Account Credentials" screen as-is (no changes) and click
Next - Make sure "ProjectAlpha Windows service" and "ProjectAlpha Manager (local application)" are selected, then click
Next - On the "Setup is ready" screen, click
Next - If last message on "Setup in progress" screen starts with "Operation succeeded", click
Next - Make sure "Start the ProjectAlpha" and "Start the ProjectAlpha Manager" are selected, then click
Finish - This will launch ProjectAlpha debug host service, console application and manager application – if Windows Defender Firewall prompts about blocking, be sure to enable ProjectAlpha for at least "Domain networks" and "Private networks" and click
Allow Access - Verify that the ProjectAlpha Manager application is connected to host service with a green bubble on the top right – and that sample data from TESTDEVICE is flowing (graph on front screen will be trending data)
- On the Windows toolbar links (i.e., the
^arrow near clock on Windows taskbar), find the icon that looks like a gear and right-click the icon, then select "Exit ProjectAlpha Iaon Host" and selectYesfrom the dialog that reads "Are you sure you want to stop ProjectAlpha Iaon Host Service" – this will stop debug host service and close console application - Close the ProjectAlpha Manager Window
- Back in Visual Studio, navigate to the
Libraries/MyAnalyticsproject and reviewExampleAdapterandRollingWindowclasses - Visual Studio should now be able to run
ProjectAlphain debug mode and manage adapter development - Note that the
ProjectAlpha Managerapplication can be configured to load real sample PMU data captured using the PMU Connection Tester