
Re: PI ACE using external numerical analysis tool in .NET
bshang Mar 1, 2016 12:44 AM (in response to jramirez)1 of 1 people found this helpfulIt is certainly possible to use external .NET libraries within ACE code. For example, the ACE user guide shows an example of calling externally hosted MATLAB code.
One possible complication is if the assembly is built on .NET 4.x+. In this case, you should follow KB00645  Specifying the version of .NET framework for PI ACE calculations to configure ACE for .NET 4.x+.
Another constraint is that you will be limited to the scheduler resources of ACE. If the calculation is run periodically at 1 min intervals and SVD takes 5 min to complete, then there will be problems...
ACE is generally useful if
1) You have relatively quick "streaming" calculations and want "streaming" output
2) You want to take advantage of its natural triggering and PIcontextaware capabilities
Sometimes, ACE is used to perform "batch" type analyses (run some CPUintensive aggregate calculations on the past hour or days worth of data). Although possible with ACE, it is easy to abuse it in this way. In these "batchoriented" cases, it is worth looking into custom code and/or scheduled with Windows Task Scheduler. There is no blackwhite, but if the matrix calculations are more like 1) and 2) above, then ACE is worth a try.