calling MATLAB scripts from Multicharts

Questions about MultiCharts and user contributed studies.
meo
Posts: 26
Joined: 23 Apr 2012
Has thanked: 3 times
Been thanked: 1 time

calling MATLAB scripts from Multicharts

Postby meo » 13 Nov 2013

Hi,

Does anyone have a sample script/dll which calls MATLAB script from MC? I couldn't seems to find any online. Thanks

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: calling MATLAB scripts from Multicharts

Postby Henry MultiСharts » 13 Nov 2013

Hello meo,

You can compile your code into a dll and reference it from PL code.
In order to do that you need to use DefineDLLFunc reserved word.
DefineDLLFunc: “dll name”, the parameter dll returns, “the name of the function you refer to (inside the external dll)”, the type of the data you send to the external dll.
Usage example:
DefineDLLFunc: "GlobalVariable.dll", float, "GV_GetFloat", int ;
A detailed description and usage examples have been published in Extension Software Development Kit.


Return to “MultiCharts”