Standard Deviation Block

Hi
I am converting a Redlion PLC program and making it work in the PLC Next. Is there a library that includes the Standard Deviation function? I cannot seem to find it in the libraries.

Regards
James

Hello James,
the standard deviation function is not a complex function, I think we don’t have it in the library. Please search for the C++ standard deviation function, I think you will find the sample code.
Alternatively, if you have a Matlab license, you can use the Matlab standard deviation function.
Or you can try to find this function in the Oscat library (Open Source Library) and use the ST code in PLCnext Engineer to implement your own FB or function.
I hope it helps you.
BR Edward