# Operator GUI self build

**URL:** <https://forum.opentap.io/t/operator-gui-self-build/731>\
**Category:** Technical\
**Tags:** plugin\
**Created:** [June 16, 2022, 5:16pm UTC](https://forum.opentap.io/t/operator-gui-self-build/731 "2022-06-16T17:16:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy1](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@andy1](https://forum.opentap.io/u/andy1)\
**Post date:** [June 16, 2022, 5:16pm UTC](https://forum.opentap.io/t/operator-gui-self-build/731/1 "2022-06-16T17:16:27Z")

</div>

Hi Everybody  
I’ve created a ‘version’ of @kaushik.santhanam Operator GUI.

I’m running the DemonstrationAllSteps.TapPlan

The 2 issues that I see right now from the session log

2022-06-16 17:10:07.152685 ; Serializer ; Error ; XML Line 2: Package ‘Demonstration’ is required to load the test plan, but it is not installed.

How can I add the “Demonstration” package to my project ?

Do I need to add ( and how ) the contents of the Test Bench Profile folder (Connections.xml, DUTs.xml and Instruments.xml )- OR will this be resolved once I add Demonstration ?

I can’t seem to get the resultListener to work see files attached.

[MainViewModel.cs](https://forum.opentap.io/uploads/short-url/bt5dBDamnSKNf8X290YBZ2SXgY5.cs) (8.6 KB)  
[MainWindow.xaml.cs](https://forum.opentap.io/uploads/short-url/g99UEzzLuS4Mv1FRzvIp3WGLw76.cs) (2.4 KB)  
[StatusBoxResultListener.cs](https://forum.opentap.io/uploads/short-url/elcZ9HcY9Z72uDv9c3qZWEamnuQ.cs) (2.3 KB)

I can’t see any results come out - I can run DataGenForResultsViewer.TapPlan with no errors in the Session - but no logging and no Verdict set.

[MainWindow - Copy - Copy (2).xml](https://forum.opentap.io/uploads/short-url/vgR67RUOyQ5ru1C0siznb2FOqtr.xml) (7.6 KB)

Any tricks, tips and C# direction will greatly be apricated.

Many Thanks and Regards Andy

---

<div class="post-metadata">

**Author:** ![alexander.larsen](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@alexander.larsen](https://forum.opentap.io/u/alexander.larsen)\
**Post date:** [June 17, 2022, 8:11am UTC](https://forum.opentap.io/t/operator-gui-self-build/731/2 "2022-06-17T08:11:05Z")

</div>

Hi andy1,

Like the serializer says, you need to install demonstration. This can be done by running the command `./tap package install Demonstration` in a terminal in your output folder.

The Demonstration test plans require some bench settings to be configured. These bench settings are included in the `Demonstration` plugin when you install it at `Packages/Demonstration/Tests/Test Bench Profile`, so you will need to copy those settings.

We have a lot of examples for various OpenTAP concepts in the SDK examples project: [opentap/sdk/Examples at main · opentap/opentap · GitHub](https://github.com/opentap/opentap/tree/main/sdk/Examples)

Since you’re making a GUI, you may also find the open source terminal editor (TUI) helpful: [GitHub - StefanHolst/opentap-tui: Text Based User Interface for OpenTAP](https://github.com/StefanHolst/opentap-tui)

Although it runs in a terminal, it integrates with OpenTAP in the same way as e.g. the Operator GUI.

I hope this helps. Good luck!

---

<div class="post-metadata">

**Author:** ![andy1](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@andy1](https://forum.opentap.io/u/andy1)\
**Post date:** [June 17, 2022, 10:12am UTC](https://forum.opentap.io/t/operator-gui-self-build/731/3 "2022-06-17T10:12:45Z")

</div>

Thanks @alexander.larsen  
I have installed the Demonstration package and now have fewer errors 😄  
I now have the Test Bench Profile but where to copy these ? I have tried the output folder and the project folder - where to make them visible to the application ?

Many thanks Andy

---

<div class="post-metadata">

**Author:** ![alexander.larsen](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@alexander.larsen](https://forum.opentap.io/u/alexander.larsen)\
**Post date:** [June 17, 2022, 2:06pm UTC](https://forum.opentap.io/t/operator-gui-self-build/731/4 "2022-06-17T14:06:00Z")

</div>

The default settings are located at `Settings/Bench/Default`. I would expect the test plans to work if you copy the content of `Packages/Demonstration/Tests/Test Bench Profile` in there.

You can have other profiles saved in other directories next to the `Default` directory, but then your program would need to activate the correct profiles using `ComponentSettings.SetSettingsProfile("Bench", "MySettingsDir")` . This may not be necessary for your use case, but it is practical if you need to manage different instrument setups.

If you are planning to take advantage of more advanced OpenTAP features, I highly recommend looking to the TUI for inspiration 🙂

Best,  
Alexander

---

<div class="post-metadata">

**Author:** ![andy1](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@andy1](https://forum.opentap.io/u/andy1)\
**Post date:** [June 21, 2022, 11:01am UTC](https://forum.opentap.io/t/operator-gui-self-build/731/5 "2022-06-21T11:01:58Z")

</div>

Thanks Alexander, that just what I needed. 😄  
Many regards Andy
