Skip to content
logo
ecu.test 2025.3 Help
Port MODELACCESS - DEFAULT 🛈
  • English
  • Deutsch
Initializing search
    • Getting Started
    • Overview
    • ecu.test Main program
    • Further included programs
    • Tools
      • A&D: iTest
      • ASAM: ACI
      • ASAM: iLinkRT
      • ASAM: XIL
      • ASAP: STEP
      • ATI: VISION
      • AVL: LYNX
      • AVL: PUMA
      • Basler: pylon
      • Beckhoff: TwinCAT
      • Digiteq: FG4 MultiBox
      • Digiteq: MGB
      • dSPACE: AURELION
      • dSPACE: ControlDesk
      • dSPACE: ModelDesk
      • dSPACE: MotionDesk
      • dSPACE: RTMaps
      • dSPACE: XIL API
      • EA: UTA 12
      • EMVA: GenICam
      • ESI: SimulationX
      • ETAS: BOA
      • ETAS: COSYM-SIL
      • ETAS: INCA
      • ETAS: LABCAR-PINCONTROL
      • FEP
      • FEP3
      • FEV: Morphée
      • froglogic: Squish
      • Google: ADB
      • Göpel: Video Dragon
      • Hexagon: VTD
      • HMS: ACT - Restbussimulation
      • HMS: Legacy Bus Interfaces (VCI V2)
      • HMS: VCI V4
      • HORIBA FuelCon: TestWork
      • IDS: uEye
      • IPETRONIK: ETHOS
      • IPG: CarMakerHeadless
      • IPG: CarMaker|RealTimeMaker
      • JS Foundation: Appium
      • Keysight: CDS
      • Keysight: ESD
      • KS Engineers: TornadoACI
      • Lauterbach: TRACE32
      • MAGNA: BluePiraT
      • Mathworks: MATLAB & Simulink
      • Mechanical Simulation Corporation: CarSim
      • MicroNova: NovaCarts
      • Modelica Association: FMI
      • MOTEON: MTB
      • NI: LabVIEW
      • NI: VeriStand
      • NI: VISA
      • Opal-RT: RT-LAB
      • PEAK: PCAN
      • PLS: UDE
      • QUANCOM: QLIB
      • RA Consulting: DiagRA D
      • ROS2
      • SAE: PassThru
      • SFC: Selenium
      • Softing: DTS
      • Speedgoat: SimulinkRealTimeXIL
      • Synopsys: Silver
      • Synopsys: SilverXIL
      • Synopsys: Virtualizer
      • Technica: BTS
      • Technica: CM
      • The GNU Project: GDB
      • TOSUN: libTSCAN API
      • tracetronic: Ethernet
      • tracetronic: Multimedia
      • tracetronic: RemoteCommand
      • tracetronic: RemoteCommandLinux
      • tracetronic: Serial interface
        • Ports
          • Port MODELACCESS - DEFAULT 🛈
            • Stimulation
            • Supported execution modes
            • Properties 🛈
            • Jobs 🛈
              • Ask
              • AskBin
              • BytesAvailable
              • Flush
              • FlushInput
              • FlushOutput
              • GetCD
              • GetCTS
              • GetDSR
              • GetRI
              • Read
              • ReadAvailable
              • ReadBin
              • ReadBinAvailable
              • ReadLine
              • SendBreak
              • SetBreak
              • SetDTR
              • SetRTS
              • Write
      • tracetronic: SocketCAN
      • tracetronic: SSH MultiConnect
      • tracetronic: ZeroMQ
      • TTTech: TTXConnexion
      • Typhoon HIL: THCC
      • Vector: CANape
      • Vector: CANoe / CANalyzer
      • Vector: DYNA4
      • Vector: SIL Kit
      • Vector: XL API
      • Vehinfo: LABCAR
      • ViGEM: CCA
      • VW: ODIS
      • X2E: Xoraya
      • Tools with stimulus support
    • Test execution
    • Trace analysis
    • Workspace
    • Handling
    • Test management
    • test.guide
    • Extensions
    • Specific Tutorials
    • API references
    • System requirements
    • ecu.test on Linux
    • ecu.test code
    • ecu.test agent
    • ecu.test lab
    • Stimulation
    • Supported execution modes
    • Properties 🛈
    • Jobs 🛈
      • Ask
      • AskBin
      • BytesAvailable
      • Flush
      • FlushInput
      • FlushOutput
      • GetCD
      • GetCTS
      • GetDSR
      • GetRI
      • Read
      • ReadAvailable
      • ReadBin
      • ReadBinAvailable
      • ReadLine
      • SendBreak
      • SetBreak
      • SetDTR
      • SetRTS
      • Write

    Port MODELACCESS - DEFAULT 🛈¶

    Model access

    Stimulation¶

    This port has no stimulus capabilities.

    Supported execution modes¶

    See also: Temporal behaviour: Real time and simulation time modes

    Preferred time source/mode: Real-time

    Real-time:

    To use real-time mode, the Test configuration in the Execution tab must be configured as the source ‘real time’.

    Info

    The following modes are not supported: Stepwise simulation time, Continuous simulation time

    Properties 🛈¶

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    COM port

    string

    Port where the device is connected to

    Device instance path

    string

    Identifier as which the virtual USB-COM-Port is registered in Windows (only used if “Virtual USB-COM-Port” was selected as COM-Port)

    Baud rate

    ‘9600’

    [‘50’, ‘75’, ‘110’, ‘134’, ‘150’, ‘200’, ‘300’, ‘600’, ‘1200’, ‘1800’, ‘2400’, ‘4800’, ‘9600’, ‘14400’, ‘19200’, ‘38400’, ‘57600’, ‘115200’, ‘230400’, ‘460800’, ‘500000’, ‘576000’, ‘921600’, ‘1000000’, ‘1152000’, ‘1500000’, ‘2000000’, ‘2500000’, ‘3000000’, ‘3500000’, ‘4000000’]

    string

    Baudrate of COM-Port

    Bytesize

    ‘8’

    [‘5’, ‘6’, ‘7’, ‘8’]

    string

    Number of data bits per transferbyte

    Parity

    ‘None’

    [‘None’, ‘Even’, ‘Odd’, ‘Mark’, ‘Space’]

    string

    Kind of parity check

    Stop bits

    ‘1’

    [‘1’, ‘1.5’, ‘2’]

    string

    Number of Stop-Bits

    Read-timeout

    10.0

    float

    Timeout for read operations in s

    Hint: If set to None, read operations do not return until the desired number of Bytes was read.

    The value ‘0’ makes the job return immediately.

    Write-Timeout

    None

    float

    Timeout for write operations in s

    Hint: If set to None, write operations do not return until the desired number of Bytes was written.

    The value ‘0’ makes the job return immediately.

    Intercharacter-Timeout

    ‘None’

    string

    Timeout between individual transfer bytes in s

    XON/XOFF

    ☐

    bool

    Software flow control

    RTS/CTS

    ☐

    bool

    Hardware flow control:

    Hint: If using a RS-232 to RS-485 converter, this option has to be activated.

    DSR/DTR

    ☐

    bool

    Hardware flow control

    Jobs 🛈¶

    Ask¶

    Combined send/read

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    byteCount

    int

    Number of bytes to be read

    codec

    ‘ascii’

    string

    De-/encoding to use at strings (default=’ascii’)

    data

    object

    data to be written (can also be of type ByteStream)

    errorHandling

    ‘strict’

    [‘strict’, ‘ignore’, ‘backslashreplace’]

    string

    Behavior with (de-)encoding errors (default=’strict’)

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    string

    AskBin¶

    Combined send/binary read

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    byteCount

    int

    Number of bytes to be read

    codec

    ‘ascii’

    string

    Encoding to use at strings (here only for writing; default=’ascii’)

    data

    string

    data to be written

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    ByteStream

    BytesAvailable¶

    Reads number of bytes in receive buffer

    Parameterization

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    int

    Flush¶

    Clears write buffer without rejecting data (blocking)

    Parameterization

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    [False, True]

    bool

    FlushInput¶

    Clears read buffer by rejecting data (non blocking)

    Parameterization

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    [False, True]

    bool

    FlushOutput¶

    Clears write buffer by rejecting data (non blocking)

    Parameterization

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    [False, True]

    bool

    GetCD¶

    Reads the status-bit CD

    Parameterization

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    [False, True]

    bool

    GetCTS¶

    Reads the status-bit CTS

    Parameterization

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    [False, True]

    bool

    GetDSR¶

    Reads the status-bit DSR

    Parameterization

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    [False, True]

    bool

    GetRI¶

    Reads the status-bit RI

    Parameterization

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    [False, True]

    bool

    Read¶

    Reads characters in the specified encoding

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    byteCount

    int

    Number of bytes to be read

    codec

    ‘ascii’

    string

    Decoding to use (default=’ascii’)

    errorHandling

    ‘strict’

    [‘strict’, ‘ignore’, ‘backslashreplace’]

    string

    Decoding error behavior (default=’strict’)

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    string

    ReadAvailable¶

    Reads buffered data

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    codec

    ‘ascii’

    string

    Decoding to use (default=’ascii’)

    errorHandling

    ‘strict’

    [‘strict’, ‘ignore’, ‘backslashreplace’]

    string

    Decoding error behavior (default=’strict’)

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    string

    ReadBin¶

    Reads binary data

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    byteCount

    int

    Number of bytes to be read

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    ByteStream

    ReadBinAvailable¶

    Reads buffered binary data

    Parameterization

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    ByteStream

    ReadLine¶

    Reads a line of characters in the specified encoding (until ‘\n’ is read)

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    codec

    ‘ascii’

    string

    Decoding to use (default=’ascii’)

    errorHandling

    ‘strict’

    [‘strict’, ‘ignore’, ‘backslashreplace’]

    string

    Decoding error behavior (default=’strict’)

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    string

    SendBreak¶

    Adds a pause

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    duration

    0.25

    float

    Duration of pause in seconds

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    [False, True]

    bool

    SetBreak¶

    Activates/deactivates transfer lock

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    level

    True

    [False, True]

    bool

    True: activate lock,

    False: deactivate Lock

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    [False, True]

    bool

    SetDTR¶

    Writes status-bit DTR

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    level

    True

    [False, True]

    bool

    Logical level of the line

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    [False, True]

    bool

    SetRTS¶

    Writes status-bit RTS

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    level

    True

    [False, True]

    bool

    Logical level of the line

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    [False, True]

    bool

    Write¶

    Writes strings or binary data

    Parameterization

    Parameter

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    codec

    ‘ascii’

    string

    encoding to use for string conversion to bytes (default=’ascii’)

    data

    ByteStream

    data to be written (can also be of type ByteStream)

    Return value

    Name

    Available if

    Default value

    Valid values

    Type

    Description

    result

    int

    Number of written bytes

    2025-12-05
    Previous
    tracetronic: Serial interface
    Next
    tracetronic: SocketCAN
    © Copyright 2025, tracetronic GmbH.
    Created using Sphinx 8.2.3. and Sphinx-Immaterial
    Logo of tracetronic GmbH
    legal notice privacy policy