Regular API function

simSetInt32Signal / sim.setInt32Signal

Description Sets the value of an integer signal. A signal created in a child script, a customization script or int the main script will be automatically cleared when the script ends. See also the other signal functions.
C/C++
synopsis
simInt simSetInt32Signal(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
Lua
synopsis
sim.setInt32Signal(string signalName,int signalValue)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Python
synopsis
sim.setInt32Signal(string signalName,int signalValue)