Hi,
Does anyone have a sample script/dll which calls MATLAB script from MC? I couldn't seems to find any online. Thanks
calling MATLAB scripts from Multicharts
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: calling MATLAB scripts from Multicharts
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.
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.