Problems passing external input data into root-level Inport
古いコメントを表示
I have a matlab function that takes a single vector as input.
In my function which I deploy for testing I create this input vector using
u = 0.1:0.1:(stopTime/0.01);
uStruct.time = [];
uStruct.signals.dimensions = 1;
uStruct.signals.values = reshape(args.InputData,numel(args.InputData),1);
where stopTime is the value used in the later called simulink model as the sample time parameter of the Input port u.
However after compiling and deploying as a microservice I get the following error:
{"error":{"id":"Simulink:SimInput:NonDatasetRootInportError","message":"Error loading external input data into root-level Inport microserviceDemo\/u in model 'microserviceDemo'.","stack":[],"type":"matlaberror"}}* Connection #0 to host localhost left intact
That error doesn't really give me much details on what is actually going wrong, or am I missing something here? Any hints?
Thanks fo your support.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!