Vector/CANoe Reference

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen

Application[Bearbeiten]

VectorAHI - OpenCANoe with Configuration[Bearbeiten]

Opens the CANoe application and loads a configuration.

Input-Pins[Bearbeiten]

  • configFile → The complete path for the configuration.
  • autoSave (optional) → A boolean value that indicates whether the active configuration should be saved if it has been changed (see Remarks).
    • Possible values are:
      • True → Automatic saving is executed.
      • False → Automatic saving is not executed.
  • promptUser (optional) → A boolean value that indicates whether the user should intervene in error situations (see Remarks).
    • Possible values are:
      • True → The user is prompted for input in error situations.
      • False → The user is not notified.
Remarks
  • If False is entered for the autoSave parameter, the function fails if the active configuration was changed.
  • If False is entered for the promptUser parameter, the function fails if an error situation occurs.
Possible error situations include
  • The active configuration was created or changed and not saved yet.
  • Automatic saving fails for some reason (write protection, full disk, ...).

VectorAHI - OpenCANoe[Bearbeiten]

Opens the CANoe application and loads a configuration.

VectorAHI - CloseCANoe[Bearbeiten]

Closes the CANoe application.

VectorAHI - Load Configuration[Bearbeiten]

Loads a configuration into CANoe.

Input-Pins[Bearbeiten]

  • configFile → The complete path for the configuration.
  • autoSave (optional) → A boolean value that indicates whether the active configuration should be saved if it has been changed (see Remarks).
    • Possible values are:
      • True: Automatic saving is executed.
      • False: Automatic saving is not executed.
  • promptUser (optional) → A boolean value indicates whether the user should intervene in error situations (see Remarks).
    • Possible values are
      • True: The user is prompted for input in error situations.
      • False: The user is not notified.
Remarks
  • If False is entered for the autoSave parameter, the function fails if the active configuration was changed.
  • If False is entered for the promptUser parameter, the function fails if an error situation occurs.
Possible error situations include
  • The active configuration was created or changed and not saved yet.
  • Automatic saving fails for some reason (write protection, full disk, ...).

BUS[Bearbeiten]

VectorAHI - InitializeBus[Bearbeiten]

Initializes the bus to be used.

Input-Pins[Bearbeiten]

  • BusType → Before you can control a specific bus in CANoe, first it must be initialized.
    • You can choose between following Bustypes:
      • CAN
      • LIN
      • MOST
      • FlexRay

VectorAHI - ActivateBusTyp[Bearbeiten]

Activates the bus to be used.

Info

This block must be used if more than one bus has been initialized. If multiple bus types have been initialized and this block is not executed, then the last initialized Bus is active.

Input-Pins[Bearbeiten]

  • busType → The bus to be used.
    • You can choose between following Bustypes:
      • CAN
      • LIN
      • MOST
      • FlexRay


VectorAHI - GetRawValueOfSignal[Bearbeiten]

Returns the current value of the signal as it was transmitted on the bus.

VectorAHI - SetRawValueOfSignal[Bearbeiten]

Sets the RawValue of the BUS signal.

VectorAHI - GetSignalValue[Bearbeiten]

Returns the active value of the Signal.

VectorAHI - GetSignalFullname Determines the fully qualified name of a signal or a message.

VectorAHI - BUS Signal - Wait for rawValue[Bearbeiten]

Wait until the Signal get the specified RawValue.

Vector AHI - BUS Signal - Wait for signalValue[Bearbeiten]

Wait until the Signal get the specified value.

CAPL[Bearbeiten]

VectorAHI - Call CAPL Function
Calls a CAPL function.

Reg/DeReg[Bearbeiten]

VectorAHI - Register CAPL Function(s)]]
Registration of CAPL functions.

Configuration[Bearbeiten]

VectorAHI - Configuration is modified
Returns information on whether the current configuration was modified since the time it was loaded or created, or sets this property.

General setup[Bearbeiten]

VectorAHI - Compile&Verify
Compile all CAPL Functions in all Nodes.

Environment[Bearbeiten]

Environment variable[Bearbeiten]

VectorAHI - SetEnvironmentVariable
Sets the environment variable value.

VectorAHI - GetEnvironmentVariable
Returns the environment variable value.

VectorAHI - EnvironmentVariable - Wait for value
Wait until the environment variable get the specified value.

System[Bearbeiten]

System variable[Bearbeiten]

VectorAHI - SetSystemVariable
Sets the system variable value.

VectorAHI - GetSystemVariable
Returns the system variable value.

VectorAHI - SystemVariable - Wait for value]]
Wait until the system variable get the specified value.

Measurement[Bearbeiten]

VectorAHI - Start Measurement
Starts the CANoe measurement.

VectorAHI - Measurement Running
If the measurement is running, True is returned; otherwise False is returned.

VectorAHI - Stop Measurement
Stops the CANoe measurement.

UI[Bearbeiten]

Write[Bearbeiten]

VectorAHI - Get text from write window


VectorAHI - Clear text of write window

Variable Update Service[Bearbeiten]

VectorAHI - Start environment autom. update service
Start the expecco environment update service, which monitors the registered canoe variables for a value change.

VectorAHI - Stop environment autom. update service
Stop the expecco environment update service.

VectorAHI - Deregister environment or system variable from autom. update
Deregister a CANoe environment or system variable from the update service.

VectorAHI - Register environment variable for autom. update

VectorAHI - Register system variable for autom. update



Copyright © 2014-2024 eXept Software AG