SecondaryURScriptCommand

Hi
I’m working with UR10e + ROS + Matlab.
I can change the URSim digital output of the robot from Matlab "executeSecondaryURScriptCommand " but this command not work for the real robot.
I would appreciate it if someone could help me.