Regular API function

simGetDoubleSignal / sim.getDoubleSignal

Description Gets the value of a double signal. See also the other signal functions.
C synopsis simInt simGetDoubleSignal(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, 0 if signal does not exist, 1 if signalValue was retrieved
Lua synopsis float signalValue=sim.getDoubleSignal(string signalName)
Lua parameters
signalName: name of the signal
Lua return values
signalValue: value of the signal. nil if operation was not successful or if signal does not exist
Remote API equiv.
B0-based remote API: simxGetFloatSignal
Legacy remote API: simxGetFloatSignal