Regular API function

simSetDoubleSignal / sim.setDoubleSignal

Description Sets the value of a double signal. If that signal is not yet present, it is added. Signals created in the main script or in a child script are automatically cleared at simulation end. See also sim.getDoubleSignal, the other signal functions, and sim.persistentDataWrite.
C synopsis simInt simSetDoubleSignal(const simChar* signalName,simDouble signalValue)
C parameters
signalName: name of the signal
signalValue: value of the signal
C return value
-1 if operation was not successful
Lua synopsis sim.setDoubleSignal(string signalName,number signalValue)
Lua parameters
Similar to the C-function counterpart
Lua return values
Remote API equiv.
B0-based remote API: simxSetFloatSignal
Legacy remote API: simxSetFloatSignal

All regular API functions on one page