Regular API function

simGetSignalName / sim.getSignalName

Description Returns the signal name at the given index. Use this function in a loop until return is nullptr to read all set signals. See also the other signal functions.
C/C++
synopsis
simChar* simGetSignalName(simInt signalIndex,simInt signalType)
C/C++
parameters
signalIndex: zero based index
signalType: signal type. 0 is for integer signals, 1 for float signals, 2 for string signals and 3 ffor double signals.
C/C++
return value
nullptr if operation was not successful or signal does not exist at this index, otherwise the name of the signal at the given index (the user is in charge of releasing the returned buffer with simReleaseBuffer)
Lua
synopsis
string signalName=sim.getSignalName(int signalIndex,int signalType)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart
Python
synopsis
string signalName=sim.getSignalName(int signalIndex,int signalType)

<