lookupServiceSignalNumber
Syntax
serviceSignalNumber * lookupServiceSignalNumber(char serviceSignalName[]);
Function
Searches for a SOME/IPService Signalin the database(s). If the Service Signal is not found or if the name is not unique, test modules/units report anerror in test systemwhile simulation/analysis nodes write a warning into the Write Window, and the function returns an invalidserviceSignal. lookupServiceSignalNumbercan be used to access a Service Signal, which was specified by a string during measurement. The function makes it possible to write dynamic tests with Service Signals, where the name of the Service Signal is not given at compile-time. lookupServiceSignalNumberis for Service Signals, which can be represented as number. For data and string types seelookupServiceSignalDataandlookupServiceSignalString.
Parameters
serviceSignalName Thequalifier of the Service Signal.
Return Values
The found unique Service Signal or an invalid object.
// set the values of some service-signalsint i;char serviceSignalNames[3][70] ={ "sif_2001::TrafficSignDetection::DetectedTrafficSign[0].DistanceToSign","sif_2001::TrafficSignDetection::DetectedTrafficSign[0].Reliability","sif_2001::TrafficSignDetection::DetectedTrafficSign[0].SignType" };double serviceSignalValues[3] = { 1.0, 2.0, 3.0 };for( i = 0; i < elcount(serviceSignalNames); i++ ){serviceSignalNumber * sig;sig = lookupServiceSignalNumber( serviceSignalNames[i] );$sig = serviceSignalValues[i];}