Regular API function

simSetFloatSignal (remote API equivalent: simxSetFloatSignal)

Description Sets the value of a float 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 simGetFloatSignal, the other signal functions, and simPersistentDataWrite.
C synopsis simInt simSetFloatSignal(const simChar* signalName,simFloat signalValue)
C parameters
signalName: name of the signal
signalValue: value of the signal
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=simSetFloatSignal(string signalName,number signalValue)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page