Skip to main content
Open topic with navigation CAPL Functions » MOST » Database Support in CAPL

MOST: Database Support in CAPL

Valid for: CANoe DE Symbols from MOST function catalogs can be used in CAPL. The most common applications are outlined on this page. Since the message data is dynamic, the parameter address (“Data.Record[].MediaTitle”) cannot be checked until runtime.
  • Symbols from enumeration types can be indicated with the addition of message names and parameter names.
    mostAmsMessage AudioDiskPlayer.Random.Status msg;
    msg.RandomState = AudioDiskPlayer.Random.Status.RandomState::Off;
    
  • Functions of test feature sets for MOST
    if(1 == TestWaitForMostAMSMessage("AudioDiskPlayer.TrackPosition.Status(5)", 1, 200))
    TestStepPass("1", "TrackPosition=5 reported");
    
  • Complete data population of messages (mostMsgSet, mostAmsOutput)
    mostMsgSet(msg, "AudioDiskPlayer.SourceActivity.StartResult(1,On)", 1);
    or
    mostAmsOutput(1, "AudioDiskPlayer.SourceActivity.StartResult(1,On)", 1);
    
General Tips on XML Function Catalog Support in CAPLInput AssistantMOST: Symbolic Identification of MessagesMOST: Symbolic Identification of ParametersSelectors