Regular API function

simGetInt32Signal / sim.getInt32Signal

Description Gets the value of an integer signal. See also the other signal functions.
C/C++
synopsis
simInt simGetInt32Signal(const simChar* signalName,simInt* signalValue)
C/C++
parameters
signalName: name of the signal
signalValue: value of the signal
C/C++
return value
-1 if operation was not successful, 0 if signal does not exist, 1 if signalValue was retrieved
Lua
synopsis
int signalValue=sim.getInt32Signal(string signalName)
Lua
parameters
signalName: name of the signal
Lua
return values
signalValue: value of the signal. nil if signal does not exist
Python
synopsis
int signalValue=sim.getInt32Signal(string signalName)

<