.Net5.0 C# and PiControl access DIO-module

Topics about the Software of Revolution Pi
Post Reply
I.Hjelle
Posts: 5
Joined: 12 Jul 2021, 09:46
Answers: 0

.Net5.0 C# and PiControl access DIO-module

Post by I.Hjelle »

Hi,

I am new to RevPi and are looking to find the best way to access the DIO-module from a .Net5 / C# program running on the RevPi core 3+. I have found some Github projects but are not sure where to start. I would like a robust solution since its an industry application. I saw something about PiControl and using that with C#. is that the way to go?

Thank you for any inputs!
->Johannes<-

Re: .Net5.0 C# and PiControl access DIO-module

Post by ->Johannes<- »

Hi I.Hjelle,

I can only offer you an example for C from our side.
Tutorial 13 – PiTest source code

We are currently out of the topic of applications, so it is up to you to find the best way for yourself or with the help of the community.

Regards

Johannes
I.Hjelle
Posts: 5
Joined: 12 Jul 2021, 09:46
Answers: 0

Re: .Net5.0 C# and PiControl access DIO-module

Post by I.Hjelle »

Hi, Thank you for the reply. I will take a look into this!
User avatar
LozCool
Posts: 2
Joined: 21 Sep 2021, 18:41
Answers: 0

Re: .Net5.0 C# and PiControl access DIO-module

Post by LozCool »

Hi there,

I use this NuGet package which you can find on GutHub:

https://github.com/FrankPfattheicher/RevolutionPi

It is a C# interface to the PiControl driver using InterOp IOCtl calls. It lets you get the Pictory configuration from the driver, read and write values, set LEDs etc., etc.

It is the best solution I have found and appears to be very stable.

Loz.
Post Reply