matlab - simxReadForceSensor error

Typically: "How do I... ", "How can I... " questions
Post Reply
avico23
Posts: 5
Joined: 06 Sep 2017, 12:41

matlab - simxReadForceSensor error

Post by avico23 » 15 Sep 2017, 22:24

While try to use :

Code: Select all

   	vrep.simxReadForceSensor(clientID,'FS',vrep.simx_opmode_streaming);
In matlab, I receive the following error:

Code: Select all

Error using calllib
Parameter must be scalar.

Error in remApi/simxReadForceSensor (line 1477)
            [rtn state forceVector torqueVector] =
            calllib(obj.libName,'simxReadForceSensor',clientID,forceSensorHandle_,state
            ,forceVector, torqueVector,operationMode_);

Error in VrepV2 (line 31)
   	vrep.simxReadForceSensor(clientID,'FS',vrep.simx_opmode_streaming);
What can be the cause ??

coppelia
Site Admin
Posts: 6224
Joined: 14 Dec 2012, 00:25

Re: matlab - simxReadForceSensor error

Post by coppelia » 18 Sep 2017, 08:54

Did you read the simxReadForceSensor API description? Second argument should be a number.

Cheers

Post Reply