Regular API function

simSetStringSignal / sim.setStringSignal

Description Sets the value of a string 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.
simInt simSetStringSignal(const simChar* signalName,const simChar* signalValue,simInt stringLength)
signalName: name of the signal
signalValue: value of the signal (which may contain any value, including embedded zeros)
stringLength: the size of the string value.
return value
-1 if operation was not successful
Lua synopsis sim.setStringSignal(string signalName,string signalValue)
Lua parameters
Similar to the C-function counterpart
Lua return values
Python synopsis sim.setStringSignal(string signalName,string/bytes signalValue)