Problems passing external input data into root-level Inport
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!