Hi,
I am writing a TLC file for a M-File S-Function in order to generate C-Code but I am wondering how I can access the S-Function parameters inside the TLC file.
Inside the M-File S-Function's setup(block) method I have the following:
block.NumDialogPrms = 2; block.DialogPrmsTunable = {'Tuneable', 'Tuneable'};
which seems to work since I can access and validate the parameters also in the CheckParameters(block) function.
However, inside the TLC file's BlockInstanceSetup(block, system) function the following lines do not work:
%assign port = LibBlockParameter(P1, "", "", 0)
%assign pins = LibBlockParameter(P2, "", "", 0)
and I am wondering why.
Best regards,
Arne
Best Answer