maximebay

Reactive programming for AF SDK using Python

Discussion created by maximebay on Aug 12, 2020

Hello devs!

 

I am new to working with the PI AF SDK and basically what i'm trying to achieve (using Python) is:

1- "Subscribe" to a specific tag

2- When the value of said tag changes, trigger a function in Python

 

I have already done basic operations in PI AF SDK using Python, source: Python 3.6 and AFSDK example (PIthon!) .

 

I have also taken a quick look at this example Reactive Extensions for AF SDK (Part 1): LINQ to AFDataPipe  for reactive programming, but it is in C# and I am trying to do it with Python.

 

If anyone has ever implemented something similar and can give advice/examples on how to make it work, it would help me a lot!

 

Thank you,

 

Maxime

Outcomes