Main Content

sltest.harness.getHarnessCreateDefaults

Get harness creation default values

Since R2021b

Description

example

sltest.harness.getHarnessCreateDefaults returns a structure that contains the current default property values for creating new test harnesses. You can customize the default values by using sltest.harness.setHarnessCreateDefaults or by creating an sl_customization file. See Customize Test Harness Creation Default Property Values for more information.

Examples

collapse all

Change the default property values for two harness creation options and display the current default values.

sltest.harness.setHarnessCreateDefaults(SynchronizationMode=...
   "SyncOnPushRebuildOnly",Sink = "Scope");
sltest.harness.getHarnessCreateDefaults
ans = 

  struct with fields:

                     Name: ""
       PostCreateCallback: ""
           SaveExternally: 0
               LogOutputs: 0
                   Source: "Inport"
                     Sink: "Scope"
              Description: ""
       SeparateAssessment: 0
      SynchronizationMode: "SyncOnPushRebuildOnly"
     CreateWithoutCompile: 0
            RebuildOnOpen: 0
         RebuildModelData: 0
              HarnessPath: ""
      PostRebuildCallback: ""
    ScheduleInitTermReset: 0
           SchedulerBlock: "Test Sequence"
          AutoShapeInputs: 0
         CustomSourcePath: ""
           CustomSinkPath: ""
         VerificationMode: "Normal"

Version History

Introduced in R2021b