Regular API function

simGetSignalName / sim.getSignalName

Description Returns the signal name at the given index. Use this function in a loop until return is NULL to read all set signals. Signals are values that are global to a given simulator scene and cleared at simulation start. See also the other signal functions.
C synopsis simChar* simGetSignalName(simInt signalIndex,simInt signalType)
C parameters
signalIndex: zero based index
signalType: signal type. 0 is for integer signals, 1 for float signals and 2 for string signals
C return value
NULL 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(number signalIndex,number signalType)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page