Unable to locate the error message source

Hi,

I am on Scilab 2025.0.0. I have an xcos diagram which uses a bunch of scifunc_block_m (with my user-defined functions). When I run the program I get the following error:

 "setdiff: Wrong value for input argument #3: Must be in {1,2,"r","c","*"}."

I don’t use setdiff in my code but I believe it is used internally by some other blocks (such as DEMUX, etc). Is there any other way to tell which part of the diagram causes the issue?

BR

Hi,

The setdiff() does not look like it is called inside scifunc_block_m functions. Is it on your user code?

To help, please post your files.

Regards