[phpBB Debug] PHP Warning: in file [ROOT]/ext/kinerity/bestanswer/event/main_listener.php on line 514: Undefined array key "poster_answers"
The Industrial Raspberry Pi Forum • .Net5.0 C# and PiControl access DIO-module
Page 1 of 1

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

Posted: 19 Sep 2021, 19:02
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!

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

Posted: 30 Sep 2021, 12:52
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

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

Posted: 05 Oct 2021, 12:16
by I.Hjelle
Hi, Thank you for the reply. I will take a look into this!

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

Posted: 05 Oct 2021, 14:19
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.