MATLAB Answers

Info

This question is closed. Reopen it to edit or answer.

How to execute a DLL created using the Library Compiler in visual basic?

1 view (last 30 days)
Jon Millan
Jon Millan on 26 Nov 2020
Closed: Jon Millan on 30 Nov 2020
I have created a .dll with a function defined in Matlab which has an structure array of different type of data (numbers, text, paths ) as input argument using the Library Compiler. The function is defined as "function Calc_main(Calc_Config)" where "Calc_Config" is the structure array. This function doesnt have any output parameter, it exports the results to a Excel file.
To define the VBA code, I am using the "Integrate components using visualbasic application" Mathworks guide, but I cant make it to run the .dll. Im not sure how to define the function with the array as input and call the .dll library, I have referenced it properly but I cant execute it. The parameter called "inputscript" reads the data from Excel and my intention is to use this array as input for the .dll supplying the structure array input used in Matlab.
Can you see any error?
Here is the VBA code:

  0 Comments

Answers (0)

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!