# Saleae Logic 2 Automation API

**URL:** <https://discuss.saleae.com/t/saleae-logic-2-automation-api/1685>\
**Category:** Logic 2 Software\
**Created:** [July 6, 2022, 11:10pm UTC](https://discuss.saleae.com/t/saleae-logic-2-automation-api/1685 "2022-07-06T23:10:00Z")\
**Posts on this page:** 1\
**Showing post:** 141

<div class="post-metadata">

**Author:** ![markgarrison](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/markgarrison/32/23_2.png) [@markgarrison](https://discuss.saleae.com/u/markgarrison)\
**Post date:** [December 5, 2024, 10:16pm UTC](https://discuss.saleae.com/t/saleae-logic-2-automation-api/1685/141 "2024-12-05T22:16:16Z")

</div>

Hi Andrew,

Glad to hear it’s working now, sorry for the trouble!

Yes, and I managed to get this working last year. I didn’t write up documentation, but I did push the example to github here:

> **[GitHub - Marcus10110/logic2-automation-dotnet-core: Basic example of using the logic2-automation gRPC...](https://github.com/Marcus10110/logic2-automation-dotnet-core)**
>
> Basic example of using the logic2-automation gRPC interface from C#, dotnet core

The process is fairly simple. You can follow the Microsoft instructions for creating a gRPC client here:

> **[Create a .NET Core gRPC client and server in ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/tutorials/grpc/grpc-start?view=aspnetcore-9.0&tabs=visual-studio#create-the-grpc-client-in-a-net-console-app)**
>
> This tutorial shows how to create a gRPC Service and gRPC client on ASP.NET Core. Learn how to create a gRPC Service project, edit a proto file, and add a duplex streaming call.

Although when I did this, I used a different tutorial: [Getting started with grpc-dotnet in VS Code – Swaminathan Vetri](https://swaminathanvetri.in/2020/01/29/getting-started-with-grpc-dotnet-in-vs-code/)

You will also need our \*.proto file, which you can get here:

> <https://github.com/saleae/logic2-automation/blob/develop/proto/saleae/grpc/saleae.proto>

We did have some trouble with .NET Framework last year. (thread [here](https://discuss.saleae.com/t/logic-2-automation-via-c-and-net-framework-4-8/2171)) I would recommend using .NET Core over .NET Framework, although it sounds like it should work, it just requires using deprecated packages.

---

_[View the full topic](https://discuss.saleae.com/t/saleae-logic-2-automation-api/1685)._
