How to use measured variables in simscape multibody
I’m pretty new to Simscape Multibody and self-taught. I’m trying to create the model of a 2DOF RR articulated arm with gravity compensation through the use of cable and spring (not yet modeled because i have some prior issues).
I want to impose cable length constant (I don’t think there’s a simple action to do it) and to do so i’m measuring the wrap angles of spool and pulley, as you can see in the slx attached. The problem is that i have to run the program first with the subsystem commented out to create the variables’ WA_spool1 and WA_perno1, and then i can generate the two rigid transforms in the subsystem and measure cable length.
Is it possible to use those variables in real time inside the simscape program, considering also their time dependency, without exporting them first to the workspace?I’m pretty new to Simscape Multibody and self-taught. I’m trying to create the model of a 2DOF RR articulated arm with gravity compensation through the use of cable and spring (not yet modeled because i have some prior issues).
I want to impose cable length constant (I don’t think there’s a simple action to do it) and to do so i’m measuring the wrap angles of spool and pulley, as you can see in the slx attached. The problem is that i have to run the program first with the subsystem commented out to create the variables’ WA_spool1 and WA_perno1, and then i can generate the two rigid transforms in the subsystem and measure cable length.
Is it possible to use those variables in real time inside the simscape program, considering also their time dependency, without exporting them first to the workspace? I’m pretty new to Simscape Multibody and self-taught. I’m trying to create the model of a 2DOF RR articulated arm with gravity compensation through the use of cable and spring (not yet modeled because i have some prior issues).
I want to impose cable length constant (I don’t think there’s a simple action to do it) and to do so i’m measuring the wrap angles of spool and pulley, as you can see in the slx attached. The problem is that i have to run the program first with the subsystem commented out to create the variables’ WA_spool1 and WA_perno1, and then i can generate the two rigid transforms in the subsystem and measure cable length.
Is it possible to use those variables in real time inside the simscape program, considering also their time dependency, without exporting them first to the workspace? simscape, multibody MATLAB Answers — New Questions