Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 16:31:00 +0000



Post From: Functions in ACSIL

[2018-10-26 15:22:47]
User470516 - Posts: 78
Dear SC Team,

I have spent several days now trying to create a function that has SCFloatRef as arguments and that returns a value. I am not asking for code support but for documentation, although if I cannot have it work on my own I'd like to use your paying services as I need to move on.

I have read former posts and your answers refer to this: C++ Functions : it is very clear and I have no problem writing functions provided they do not have arguments related to SC (i.e. int, float,...) but when I have to use SCSubgraphRef or SCFloatArrayRef, it just won't pass the compiler test and I do not understand why.

I therefore have tried to look for models and have thoroughly studied sc.MovingAverage and sc.GetLowest as examples. I have not been able to find the code. All the available studies call those functions and it is clear how to use sc.functions but I cannot use any "primary" function source codes as an example to help me because I simply cannot find them. I also have looked into the header files and I have found the declarations, but I am stuck.

1- Is it possible to have access to any code (the simplest the better) with SCarguments to pass and a returned value?

2- Would it be possible in case I cannot solve it on my own to buy a consulting service: I would provide you with a easy code (about 100 lignes) that works as a study that I would like to have someone turn into a function?

Thank you for your support.

Regards,

Laurent