Real time function

HI there,

I am using G120 to measure power of device every second, I would like to know is there any
function that I can make my function to run on real time.

Welcome to the forum.

Once a second sound like a really soft real time requirement, depending on how accurate you need to hit the second.

But if you need hard real time, you can use RLP.
RLP is a GHI feature that allows using C code on GHI controllers.
You can set up timer interrupts, which will immediately stop any managed code and execute.

Look at the documentation in the Support section for more info.
There is also a really good and up to date demo project in CodeShare:
https://www.ghielectronics.com/community/codeshare/entry/917

1 Like