Running a Matlab Function in Constraint Block

Discussions about integrations with other 3th party tools

Moderator: Moderators

Running a Matlab Function in Constraint Block

Postby constantinos.florides@rwth-aachen.de » Sun Jul 11, 2021 2:50 pm

Hallo,
i have a matlab script that runs a function with 28 Inputs and 4 Outputs. I have modelled this function in a constraint block. Also some of the inputs are strings, so i changed the type of these values to strings.So i am running this Constraint Block, i type the values and nothing happens. I donĀ“t even can check if my simulation is runnng. But apparently it is not working. This Matlab code outside of cameo works fine. So do you have any advices? thank you very much
constantinos.florides@rwth-aachen.de
Forum Newbie
Forum Newbie
 
Posts: 5
Posts Rating:0
Joined: Thu Jun 03, 2021 4:26 am

Re: Running a Matlab Function in Constraint Block

Postby saulius_p » Wed Jul 14, 2021 4:25 am

Hello,

Good to talk to you.

There was a problem about sending string value to Matlab in CST 19.0 sp4.
It is fixed in 2021x and later versions.

Sincerely,
Saulius
Best regards,
Saulius Pavalkis
User avatar
saulius_p
No Magic
No Magic
 
Posts: 310
Posts Rating:12
Joined: Fri Dec 04, 2009 5:37 am
Full name: Saulius Pavalkis

Re: Running a Matlab Function in Constraint Block

Postby constantinos.florides@rwth-aachen.de » Wed Jul 14, 2021 6:06 am

Thank you for your reply, i am currently using CSM 19.0 SP3.
I passed a string in Matlab and i coud run my simulation. But the results of Matlab were not transferred in CSM SImulation console. I already checked and my outputs from matlab are 4 double numbers,but in CSM would not appear. Do you have any suggestion why is that happenning?

Thank you very much,
Constantinos
constantinos.florides@rwth-aachen.de
Forum Newbie
Forum Newbie
 
Posts: 5
Posts Rating:0
Joined: Thu Jun 03, 2021 4:26 am


Return to Integrations

Who is online

Users browsing this forum: No registered users and 0 guests

cron