General Mechanical

General Mechanical

Topics relate to Mechanical Enterprise, Motion, Additive Print and more

Ansys aaS connection with matlab

    • moad123uk
      Subscriber

      Hello,


       


      I was able to connect matlab with ansys using the toolbox provided. 


      my problem is that i don't know how to transfer data from matlab to ansys. for example if I create a variable on matlab say:


       


      a = 22;


      This line doesn't work:


      mapdlResult=char(iCoMapdlUnit.executeCommandToString('aas_parameter_test= a'))


       


      is there a certain way of doing it? I cant seem to figure it out


       

    • JTWD
      Subscriber

      hello, I'm sure you hope your find a solution for your problem. 
      I'm not sure but when you input mapdlResult=char(iCoMapdlUnit.executeCommandToString('aas_parameter_test= a'))


      The char will make it as just 'a', isn't it ?
      Good luck !

    • Xia Jinhao
      Subscriber

      Hello,

      Have you solved this problem? I have also encountered this problem.

      Could you tell me how to solve this problem?

      Thank you.

       

    • Xia Jinhao
      Subscriber
      Hello, Have you solved this problem? I have also encountered this problem. Could you tell me how to solve this problem? Thank you.
Viewing 3 reply threads
  • You must be logged in to reply to this topic.