Hi, I just wanted to test a simple program to test the functionality of running python in a simulink environment as shown in the model below.
with the function block containing the following code:
function out = RunPython(in1, in2)
coder.extrinsic('py.Python_ExampleCode.test')
out = py.Python_ExampleCode.test(in1, in2);
with the python code it is referencing being:
And this works fine when run on the development computer, however when i try to deploy this onto a Raspberry Pi Zero W, the following error message comes up.
The extrinsic function 'py.Python_ExampleCode.test' is not available for standalone code generation. It must be eliminated for stand-alone code to be generated. It could not be eliminated because its outputs appear to influence the calling function. Fix this error by not using 'py.Python_ExampleCode.test' or by ensuring that its outputs are unused. Function 'MATLAB Function' (#25.245.271), line 4, column 11: "py.Python_ExampleCode.test"
Just wanted to know how this problem can be worked around or solved. Also note i have verified that the issue is not on the Pi end as I can deploy a simple LED blink test using the Simulink library for the Raspberry Pi