主要内容

isScanDone

R2026b

Determine if the current scan frame is complete

Since R2026b

    Description

    t_f = isScanDone(scanner) returns a value of true if the radar scan controller object scanner has completed a full scan frame, and false otherwise. A scan is marked done after the entire surveillance region has been scanned.

    example

    Examples

    collapse all

    Create an electronic raster scan controller object with default values.

    txScnr = radarScanController("Electronic","Raster")
    txScnr = 
      ElectronicRasterScanner with properties:
    
          AzimuthLimits: [-90 90]
        ElevationLimits: [-5 5]
           ScanDuration: 1
              StepAngle: 1
                NumBars: 2
              Alignment: "Azimuth"
        DwellTimeSource: "Auto"
              ScanAngle: [-90 -5]
               ScanTime: 0
    
    

    Advance the scan position to a time of 10 seconds and return the corresponding scan angle.

    txAng = scan(txScnr,10)
    txAng = 1×2
    
       -90    -5
    
    

    Check to see if the current scan frame is complete.

    isDone = isScanDone(txScnr)
    isDone = logical
       0
    
    

    Check to see if the object is locked.

    t_f = isLocked(txScnr)
    t_f = logical
       1
    
    

    Release the scan controller object.

    release(txScnr);

    Update the scan duration to be 1/2 the current duration.

    txScnr.ScanDuration = txScnr.ScanDuration/2
    txScnr = 
      ElectronicRasterScanner with properties:
    
          AzimuthLimits: [-90 90]
        ElevationLimits: [-5 5]
           ScanDuration: 0.5000
              StepAngle: 1
                NumBars: 2
              Alignment: "Azimuth"
        DwellTimeSource: "Auto"
              ScanAngle: [-90 -5]
               ScanTime: 10
    
    

    Input Arguments

    collapse all

    Scan controller object (MechanicalRasterScanner, MechanicalSectorScanner, ElectronicRasterScanner, or ElectronicSectorScanner) generated by radarScanController.

    Output Arguments

    collapse all

    Returns as true if the radar scan controller object has completed a full scan frame, and false otherwise. A scan is marked done after the entire mechanical or electronic surveillance region has been scanned.

    • MechanicalRasterScanner or MechanicalSectorScanner - Returns true for the first scan time in a new scan duration and for the return duration when ScanReset is set to "Return".

    • ElectronicRasterScanner or ElectronicSectorScanner - Returns true for the first scan time in a new scan duration.

    Version History

    Introduced in R2026b