Home

Installation & Quick Start Guide for CANoe

image

Contents

1. Abbildung 21 Definition Systemvariable svLight 3 Schlie en Sie den Dialog mit OK Fe Systemvariablen Konfiguration Systemvarablen Variable Min Max Read only Quelle El My Namespace Konfiguration Abbildung 22 Definierter Namensraum mit zugehoriger Systemvariable 40 Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour 4 ffnen Sie f r die Definition der zweiten Systemvariablen svSwitch ber Hinzuf gen wieder den Dialog Systemvariable hinzuf gen und machen Sie folgende Eingaben gt Namensraum MyNamespace gt Name svSwitch gt Datentyp Integer 5 Schlie en Sie den Dialog mit OK Sie sehen nun dass beide Systemvariablen dem Namensraum MyNamespace zugewiesen sind 6 Schlie en Sie den Dialog mit OK Verweis Ausf hrliche Informationen zur Definition von Systemvariablen finden Sie in der Online Hilfe zur 3 12 3 Erstellen der Panels Netzknoten Zum Erstellen der Peripherie der Netzknoten steht Ihnen in CANoe eine eigene Peripherie Applikation den Panel Designer zur Verf gung F r die aktuelle Konfiguration ist f r jeden der beiden Netzknoten ein Panel zu erstellen Verweis Eine ausf hrliche Einf hrung zum Panel Designer finden Sie in der Online gt Hilfe Erstellen Sie das Das erste Panel hat als Bedienelement einen Schalter erste Panel a 1 Sie starten den Panel Designer indem Sie die Schaltfl che a in der
2. System variables Figure 24 Trace window Reference You can find an introduction in CAPL programming and a detailed description of the program language in the online help Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide Appendix A Support 4 Appendix A Support Need support What our support team needs to know Software Hardware Computer Error description Customer data Our hotline can be reached gt bycalling 49 711 80670 200 gt by e mail Support vector informatik de gt or by filling out our Problem Report form online To answer your support questions quickly whether by phone e mail fax or mail we require the following information gt Detailed description of the software hardware model and version number e g CANoe 7 5 66 SP2 CANcardXL gt Serial number Note You will find this information in CANoe under Help Info Exact description of the hardware e g CANcardXL Hardware serial number Driver and firmware versions You will find this information in the Vector Hardware Config dialog Windows start menu Settings Control Panel Vector Hardware If you have hardware problems gt Create log file in the Vector Hardware Config dialog Windows start menu Settings Control Panel Vector Hardware gt File Save Configuration Report gt Detailed description e g Dell Latitude D830 gt Laptop or desktop PC gt Operating system e g Windows
3. Hinweis Mit Hilfe dieser symbolischen Information lassen sich nun die Dateninhalte von Botschaften in CANoe interpretieren Beachten Sie dass dies nur dann sinnvoll ist wenn die Informationen der Datenbasis das System beschreiben das Sie gerade beobachten Stellen Sie daher sicher dass die der Konfiguration zugeordnete Datenbasis und das reale Netzwerk zusammenpassen Ausgabe im Trace Im Trace Fenster sehen Sie nun zusatzlich zum Identifier den symbolischen Fenster Botschaftsnamen ce i fa Be amp D B Bi Ar M initia Name Di DLC Data EngineData D8 D6 37 00 paj 9 501696 2 eg 9 501706 1 Fi GearBoxInfo Abbildung 15 Trace Fenster Beachten Sie dass die Botschaft die Sie in der ersten Aufgabe generiert haben den Identifier 64 hex besitzt Dieser stimmt mit dem Identifier der Botschaft EngineData berein 3 7 Analyse von Signalwerten im Daten Fenster Anzeige momentaner Neben den symbolischen Botschaftsnamen lassen sich mit der zugeordneten Daten Werte Datenbasis auch Signalwerte analysieren Zur Untersuchung der momentanen Signalwerte dient das Daten Fenster Men Ansicht Daten Damit ist klar warum das Daten Fenster in einer neuen Konfiguration zun chst leer ist Die anzuzeigenden Signalwerte h ngen allein von der Information aus der Datenbasis ab Welche Signalwerte angezeigt werden sollen m ssen Sie als Anwender entscheiden bung 3 Konfigurieren Sie das Daten Fenster so dass die Signalwerte de
4. Symbolleiste von CANoe bet tigen Damit ist gew hrleistet dass im Panel Designer die Datenbasis zur Verf gung steht Ein neues Panel wird automatisch ge ffnet 2 Geben Sie dem Panel im Eigenschaften Fenster unter Panel Panel Name den Namen SWITCH Dieser Name wird nach dem Speichern des Panels oben links im ge ffneten Panel angezeigt wird 3 W hlen Sie aus der Toolbox des Panel Designers einen Switch amp aus und platzieren Sie ihn z B per Drag amp Drop auf dem Panel 4 Konfigurieren Sie den Switch im Eigenschaften Fenster unter Settings State Count als Bedienelement mit 2 Zust nden 5 Weisen Sie dem Switch im Eigenschaften Fenster unter Settings Mouse Activation Type die linke Maustaste Left zu 6 Weisen Sie dem Switch im Eigenschaften Fenster unter Appearancellmage die Datei IORGPUSHBUTTON 2 BMP aus dem CANoe Demoverzeichnis DEMO ADDON BITMAP LIBRARY GLOBAL Switches 2STATES Zu Vector Informatik GmbH Version 8 1 41 CANoe Einsteigertour Installation amp Schnelleinstieg 7 Damit im Symbol Explorer die definierten Systemvariablen angezeigt werden mussen Sie im Listenfeld Beschrankt auf den Eintrag Umgebungsdaten ausw hlen Ziehen Sie anschlie end die Systemvariable svSwitch aus dem Symbol Explorer per Drag amp Drop auf den Switch im Panel 8 Beschriften Sie den Switch indem Sie das Anzeigeelement Static Text A aus der Toolbox ausw hlen und auf dem Panel rechts neben dem Switch platzieren Geben Sie i
5. ber den Bus stellt Ihnen die Datenbasis Botschafts und Signalobjekte zur Verf gung Die einfache Funktionalit t des Beispiels l sst sich in einem 1 Bit Signal fassen das den Zustand des Schalters am ersten Netzknoten beschreibt Dieses Signal wird in eine Botschaft gepackt und immer dann gesendet wenn sich der Zustand des Schalters ndert spontanes Senden Erstellen Sie nun eine Datenbasis die die Botschaft Msg1 und das Signal bsSwitch enth lt ffnen Sie ber die Schaltfl che den CANdb Editor ffnen Sie den Dialog Vorlage ber DateilDatenbank erstellen W hlen Sie das Template CANoeTemplate dbc aus Mit OK ffnen Sie den Dialog Neue Datenbankdatei Geben Sie hier den Namen der neuen Datenbasis z B Database an e 2 N 2 5 Schlie en Sie den Dialog mit Speichern Die neue Datenbasis wird im CANdb Editor angezeigt Erstellen Sie nun die Botschaft Msg1 dem Identifier 100 die vom ersten Netzknoten gesendet werden soll Selektieren Sie dazu Botschaften und ffnen Sie mit dem Kontextmen punkt Neu den Konfigurationsdialog f r die neue Botschaft Geben Sie auf dem Register Definition folgendes ein gt Name Msg1 gt Typ CAN Standard gt ID 0x100 gt DLC 8 Schlie en Sie den Dialog mit OK Erstellen Sie das Signal bsSwitch zur Beschreibung der Schalterstellung und verknupfen Sie es mit der Botschaft Msg1 Selektieren Sie dazu Signale und ffnen Sie mit dem Kontextmenupunkt Neu
6. bersicht Vorbereitungen Einrichten des Busses Daten senden Auswertefenster Arbeiten mit symbolischen Daten Analyse von Signalwerten im Daten Fenster Analyse von Signalverl ufen im Grafik Fenster Aufzeichnen einer Messung Auswerten einer Logging Datei Erstellen eines CAPL Programms Simulation verteilter Systeme in CANoe 3 12 1 Erstellen der Datenbasis 3 12 2 Definition von Systemvariablen 3 12 3 Erstellen der Panels 3 12 4 Erstellen der Netzknotenmodelle Anhang A Support Vector Informatik GmbH Version 8 1 Inhaltsverzeichnis III Pr oO Installation amp Schnelleinstieg Einfuhrung 1 Einf hrung In diesem Kapitel finden Sie die folgenden Informationen 1 1 Zu diesem Handbuch Seite 4 Zugriffshilfen und Konventionen Zertifizierung Gew hrleistung Support Warenzeichen Veector Informatik GmbH Version 8 1 3 Einfuhrung 1 1 Zu diesem Handbuch Installation amp Schnelleinstieg 1 1 1 Zugriffshilfen und Konventionen Informationen schnell Diese Zugriffshilfen bietet Ihnen das Handbuch finden zu Beginn eines Kapitels finden Sie eine Zusammenfassung der Inhalte gt inder Kopfzeile sehen Sie das aktuelle Kapitel und den aktuellen Abschnitt gt in der Fu zeile sehen Sie auf welche Version sich das Handbuch bezieht gt am Ende des Handbuchs finden Sie ein Stichwortverzeichnis BEN Verweis In der Online Hilfe finden Sie ausf hrliche Informationen zu allen Themen Konventionen In den beiden
7. bersichts Fensters Im linken Bereich des bersichtsfensters wird die untergeordnete Strukturebene eingeblendet im rechten Bereich werden die verf gbaren Botschaften mit ihren Systemparametern wie z B symbolischer Name Identifier etc angezeigt Hinweis Der CANdb Editor validiert Eingaben und zeigt potentielle Fehler oder Probleme im Ubersichtsfenster an Das Symbol an der Botschaft weist zum Beispiel darauf hin dass f r diese Botschaft kein Empf ngerknoten definiert ist Schalten Sie das Zahlenformat im Men punkt Optionen Einstellungen zun chst von dezimal auf hexadezimal um Die symbolischen Namen der Botschaften deuten bereits darauf hin dass es sich bei dem betrachteten System um die Beschreibung der Kommunikation eines rudiment ren Motorraumsystems handelt Klicken Sie im linken Bereich des bersichts Fensters auf die Botschaft EngineData Im rechten Bereich des Ubersichts Fensters werden die Systemparameter der Signale angezeigt die auf dieser Botschaft bertragen werden Die Temperatur EngTemp beispielsweise ist ein 7 Bit Signal Um den physikalischen Wert in Grad Celsius zu erhalten muss der Bitwert mit dem Faktor 2 multipliziert und vom Ergebnis dann der Offset 50 subtrahiert werden Der Leerlaufschalter IdleRunning ist ein bin res Signal 1 Bit Signal das die Werte O und 1 annehmen kann 28 Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour
8. den Konfigurationsdialog fur das neue Signal Geben Sie auf dem Register Definition folgendes ein Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour Signal mit Botschaft verknupfen Datenbasis der Konfiguration zuordnen Name bsSwitch L nge Bit 1 f r die bertragung der Zust nde an 1 und aus 0 Byteorder Intel Wertetyp Unsigned Faktor 1 Offset 0 Minimum 0 V V V VVV V V Maximum 1 Sie k nnen das Signal bsSwitch per Drag amp Drop mit der Botschaft Msg1 verkn pfen Ft Vector CANdb Editor Database dbc bersicht Arca 5 Datei Bearbeiten Ansicht Optionen Fenster Hilfe 5 x Eu tes Ss BEN 3 4 Netzwerke Database T Steuerger te Botschaft Startbit L nge Bit Byteanordnung Wertetyp _Initialwert M 0 1 Intel Unsigned amp Umgebungsvariablen Netzknoten EJ Botschaften 5 63 Msgl 0x100 bsSwitch Signale Av bsSwitch Botschaft Msgl ID 0x100 ID Format CAN Standard DLC Byte 8 Bereit NUM Abbildung 20 Botschaft mit zugewiesenem Signal in der Datenbasis Speichern Sie die Datenbasis Die Zuordnung der Datenbasis erfolgt im Fenster Simulationsaufbau Gehen Sie dazu in der Baumdarstellung der aktuellen Konfiguration mit dem Mauszeiger auf Datenbasen und rufen Sie ber die rechte Maustaste den Befehl Hinzuf gen des Kontextmen s auf 3 12 2 Definition von Systemvariablen Definier
9. Konfigurieren Sie die Den Konfigurationsdialog der Knoten ffnen Sie ber den Kontextmen punkt Netzknoten Konfiguration Tragen Sie hier den Knotennamen ein z B ECU 1 bzw ECU 2 Uber Datei ffnen Sie den Dialog ffnen Geben Sie hier den Namen des CAPL Programms an welches die Funktionalit t des Netzknotens simuliert z B ECU1 CAN bzw ECU2 CAN Vector Informatik GmbH Version 8 1 43 CANoe Einsteigertour Installation amp Schnelleinstieg Erstellen Sie die benotigten CAPL Programme A4 Knotenkonfiguration Allgemein Komponenten Busse Einstellungen Titel ECU 1 DB Knoters lt lt default gt gt Status simuliert ww Standard Erweitert Enotenspezitik ation Datei Bearbeiten Kompilieren d 4 JME CUT car Abbrechen Hilfe Abbildung 25 Konfiguration f r Netzknoten ECU 1 im Simulationsaufbau Doppelklicken Sie auf jeden Knoten um den CAPL Browser f r das jeweilige CAPL Programm zu ffnen Das erste Programm geh rt zu einem Netzknoten an dessen Peripherie sich ein Schalter befindet Das Programm erfasst bei nderung der Schalterposition den neuen Schaltwert und gibt diesen unmittelbar auf den Bus aus Reaktion auf die nderung der Systemvariable svSwitch on sysvar sysvar MyNamespace svSwitch Deklaration einer zu versendenden CAN Botschaft message Msgl msg o Auslesen d
10. Seite 22 Seite 25 Seite 27 Seite 29 Seite 31 Seite 32 Seite 33 Seite 34 Seite 37 AT CANoe Einsteigertour Installation amp Schnelleinstieg 3 1 bersicht Bedienkonzept CANoe einrichten CAPL Falls Sie CANoe zum ersten Mal in Betrieb nehmen und Funktionsweise und Bedienung f r Sie noch v llig neu sind hilft Ihnen die folgende Tour in wenigen Stunden mit dem Bedienkonzept und den wichtigsten Features vertraut zu werden Sie werden f r diese Tour zun chst einen sehr einfachen CAN Bus aufbauen bei dem CANoe sowohl die Rolle des Senders als auch die des Empf ngers bernimmt Im ersten Schritt wird CANoe als Datenquelle d h als Sendestation konfiguriert Sie werden dann die Analysem glichkeiten von CANoe kennen lernen indem Sie die erzeugten Daten anschlie end in den Messfenstern untersuchen Auch in komplexeren realen Systemen bernimmt CANoe typischerweise beide Aufgaben Sie k nnen das Programm als Datenquelle einsetzen um Daten an andere Steuerger te zu senden Sie k nnen es aber gleichzeitig verwenden um den Datenverkehr am CAN Bus zu beobachten aufzuzeichnen und auszuwerten Im letzten Teil der Tour werden Sie die CAPL Programmiersprache kennen lernen und zwei Netzknoten eines verteilten Systems erstellen um eine einfache Simulationsaufgabe in CANoe zu l sen 3 2 Vorbereitungen Fenster 18 CANoe verf gt ber verschiedene Auswertefenster z B Trace Daten Grafik und Statistik Fens
11. amp Quick Start Guide CANoe Tour Assign signal to You can assign the signal bsSwitch to the message Msg1 via drag amp drop message 5 Vector CANdb Editor Database dbc Overall View le mmj 5 File Edit View Options Window Help E x Eu E EILAN 3 44 Networks I Database a ECUs Name Message Startbit Length Bit Byte Order Value Type Initial Value amp bsSwitcl Msgl 0 1 Intel Unsigned Environment variables Network nodes J E Messages 5 63 Msgl 0x100 bsSwitch Signals Av bsSwitch Im Message Msgl 1D 0x100 ID Format CAN Standard DLC Byte 8 Ready Figure 20 Message with assigned signal in the database Save the database Add the database to In the Simulation Setup window you can add the database If you go in the tree view the configuration of the current configuration to Databases with the mouse pointer and click on the right mouse button you can run the command Add from the shortcut menu 3 12 2 Definition of System Variables Define system With the second step you have to descripe the I O interface between the nodes and variables their peripheries For this CANoe provides system variables Each peripheral element Switch indicator lamp slider etc is Wired to a system variable i e it is connected to the CAPL program for the network node In this example there are exactly two peripheral elements A switch at the first node and an indicator lamp a
12. 7 Speichern Sie das Panel unter dem Namen LIGHT XVP ab Fugen Sie die Panels Sie beenden diesen Aufgabenteil indem Sie ber die Schaltfl che amp in der in die Konfiguration Symbolleiste die erstellten Panels in die CANoe Konfiguration integrieren ein Abbildung 23 Panels in CANoe 42 Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour Speichern Sie die Vor dem Erstellen der Netzknotenmodelle sollten Sie die bis jetzt angelegte Konfiguration Konfiguration mit der Schaltfl che lal aus der CANoe Symbolleiste abspeichern 3 12 4 Erstellen der Netzknotenmodelle Erstellen von Die Netzknotenmodelle erstellen Sie im Simulationsaufbau Zumindest das Modell Netzknotenmodellen f r den ersten Netzknoten muss bei Bet tigung des Schalters eine Botschaft senden und darf daher nicht im Messaufbau eingef gt werden F gen Sie zwei In diesem Beispiel ben tigen Sie zwei Netzknoten im Simulationsaufbau der erste Netzknoten ein Knoten liefert die Schalterposition der zweite reagiert darauf indem er das Lampchen ein bzw ausschaltet Klicken Sie im Simulationsaufbau auf den Busstrang um neue Netzknotenmodelle einzuf gen Klicken Sie hier um einen neuen Netzkn ten einzuf gen Netzwerk CAN Hetzknaten einf gen _APL Testmodul einf gen HET Testmodul einf gen sML Testmodul einf gen Generatorblock TAN einf gen Abbildung 24 Einf gen von Netzknoten im Simulationsaufbau
13. Sie eine komplette CANoe Konfiguration mit zwei Netzknotenmodellen und der zugehorigen Peripherie d h den Panels Dabei soll lediglich eine verteilte Funktionen realisiert werden Nachdem der Anwender einen Schalter mit der linken Maustaste betatigt informiert der erste Netzknoten den zweiten uber diese Aktion Der zweite Knoten schaltet daraufhin an seiner Peripherie ein Lampchen ein Schaubild syowitch svLight FO Schnittstelle KVO Schnittstelle Foplikation Applikation Busschnittstelle Busschnittstelle Vector Informatik GmbH Version 8 1 37 CANoe Einsteigertour Installation amp Schnelleinstieg Vorgehensweise Die Erstellung eines Modells f r verteilte Systeme wird in CANoe zweckm igerweise in drei Teilaufgaben unterteilt gt Erstellen der Datenbasis mit Botschaften und Signalen gt Erstellen der Netzknotenperipherie d h der Panels gt Erstellen der Netzknotenmodelle in CAPL Bereiten Sie die Aufgabe vor indem Sie wieder ber den Men punkt Datei Konfiguration neu das CAN_83kBaud tcn Template ausw hlen 3 12 1 Erstellen der Datenbasis Funktion einer Datenbasis Datenbasis erstellen Botschaft erstellen Signal erstellen 38 Im ersten Schritt erstellen Sie eine Datenbasis welche einen wesentlichen Teilaspekt des Systems beschreibt den Informationsaustausch zwischen den beiden Netzknoten ber das Kommunikationsmedium d h den Bus Zur Beschreibung des Informationsaustausches
14. Sie im Kontextmen den Befehl Netzwerk Hardware und ffnen Sie den Dialog Netzwerk Hardware Konfiguration Netzwerk Hardware Konfiguration gt CAN CAN Setup 1 Datenbankwerte verwenden orschau Synchranisationsflanke Pk pianiier V Acknowledge an Optionen J1939 Einstellungen Scan nominal bit timing bus cz a me o Baudrate kE aud 100 0 Hardware Sync u synchronized bit timing internal Bue Timing Register 0 49 Bus Timing Register 1 14 Quarztrequenz kHz 16000 Abtastunger Vorteiler 10 Abtastpunkt BTL vklen 10 10 10 10 a g Abbrechen Ruckgangig Treiber Hilfe Abbildung 6 Netzwerk Hardware Konfigurationsdialog 3 Bearbeiten Sie die Busparameter zun chst f r den ersten Controller CAN 1 Dazu klicken Sie auf und danach auf Setup und stellen Sie im Konfigurationsdialog zun chst die Baud Rate ein Tragen Sie den Wert 100 kBaud ein Dieser ist sowohl f r High Speed als auch f r Low Speed Busse sinnvoll CANoe schl gt Ihnen Standardwerte f r die Controller Register vor Version 8 1 21 CANoe Einsteigertour Installation amp Schnelleinstieg Damit haben Sie neben der Ubertragungsgeschwindigkeit von 100 kBaud implizit auch die anderen Controller Parameter Abtastzeitpunkt BTL Zyklen und Synchronisationssprungweite festgelegt Damit das Gesamtsystem funktionieren kann mussen diese Werte genauso fur den zweiten Controller CAN 2 ubernommen werden Bestatigen S
15. Version 8 1 25 CANoe Tour Trace window Configuration of the Trace window Statistics window 26 Installation amp Quick Start Guide You have already learned about the Trace window Data that reach the Trace block of the Measurement Setup are displayed here as CAN messages in bus oriented format Besides the time stamp this includes the number of the CAN controller the identifier an attribute for differentiating transmitted and received messages and the data bytes of the CAN message You can configure the Trace window like all other analysis windows from the popup menu that is accessed by clicking the right mouse button on the window or on the appropriate block Furthermore the different buttons in the toolbar can be used to configure the Trace window For example with E you can toggle from stationary mode to the scroll mode in which each message arriving at the Trace block is written to a new line With At you can toggle between absolute and relative time representation In relative time representation the time difference between two successive messages transmit interval is shown in the first column Of course in this display format it is also easy to find the transmit interval that you entered previously in the Visual Sequencer 100 milliseconds Another bus related window the CAN Statistics window menu View CAN Statistics provides an overview of bus data traffic Displayed here are the total f
16. back to online mode gt With the sequence Message 1 the EngineData messages is cyclically sent to the bus First you must decide where you wish to insert your CAPL program in the data flow plan In principle any hot spot in the Measurement Setup or in the Simulation Setup is available to you However since this program is solely for analysis purposes and does not generate any messages itself but only counts them it is advisable to insert the program on the right side of the Measurement Setup perhaps before the Trace window In the hotspot s popup menu choose the function Insert Program Node A function block with the program symbol P now appears at the selected point in the Measurement Setup You can also access the node s configuration dialog via the shortcut menu Configuration First select a program name e g COUNTER CAN Start the CAPL Browser either from the configuration dialog s Edit button or directly by double clicking the program block P in the Measurement Setup For your program you will first need an integer variable which counts the messages For example you could name it counter Go to the editor pane and enter this name in the variables block The following should now appear in this pane variables Lig Count r Like all global variables this variable is automatically initialized to zero at the measurement start In the next step this variable should be incremented whenever an EngineData m
17. basic knowledge This symbol indicates text areas containing expert knowledge i This symbol indicates that something has changed en 1 1 2 Certification Certified Quality Vector Informatik GmbH has ISO 9001 2008 certification Management System The ISO standard is a globally recognized quality standard 1 1 3 Warranty Restriction of We reserve the right to change the contents of the documentation and the software warranty without notice Vector Informatik GmbH assumes no liability for correct contents or damages which are resulted from the usage of the user manual We are grateful for references to mistakes or for suggestions for improvement to be able to offer you even more efficient products in the future 1 1 4 Support You need support You can get through to our hotline at the phone number 49 711 80670 200 or you send a problem report to the CANoe Support Vector Informatik GmbH Version 8 1 5 Introduction Installation amp Quick Start Guide 1 1 5 Registered Trademarks Registered All trademarks mentioned in this user manual and if necessary third party registered trademarks are absolutely subject to the conditions of each valid label right and the rights of particular registered proprietor All trademarks trade names or company names are or can be trademarks or registered trademarks of their particular proprietors All rights which are not expressly allowed are reserved If an explicit label of trademarks wh
18. complete CANoe configuration with two network node models and associated periphery i e control panels This should only involve implementation of distributed functions After the user activates a switch with the left mouse button the first node informs the second node of this action The second node then activates an indicator lamp in its periphery svowitch svLight VO Interface KO Interface Ap plication Application Bus Interface Bus Interface Misgi bs Switch A model for distributed systems can be created efficiently in CANoe in three steps gt Create the database with messages signals and environment variables gt Create the network node periphery i e the control panels gt Create the network node models in CAPL To prepare this task select the CAN 83kBaud tcn template via File New Configuration again Vector Informatik GmbH Version 8 1 37 CANoe Tour Installation amp Quick Start Guide 3 12 1 Creating the Database Usage of a data base The first step involves creating a database which describes a significant aspects of Create a database Create a message Create signal 38 the system The exchange of information between the two network nodes via the communi cation medium i e the CAN bus The database message and signal objects are available for describing the exchange of information over the CAN bus The simple functionality of the example can be handled by a 1 bit signal which descri
19. die Sie gerade installieren setzt eine g ltige Lizenz voraus Der Lizenz Schutz ist abh ngig von Ihrem Produkt gt Hardware basierter Lizenz Schutz Die Lizenz ist verf gbar wenn der USB Dongle oder die Bus Interface Hardware angeschlossen wird gt Software basierter Lizenz Schutz Eine Aktivierungs ID Schl ssel wird mit Ihrem Produkt mitgeliefert und muss vor der Software Nutzung aktiviert werden Veector Informatik GmbH Version 8 1 9 Installation Aktivierungs ID Lizenz aktivieren Hilfe amp Support Installation amp Schnelleinstieg Der entsprechende Lizenz Schutz wird bei der Bestellung des Produkts ausgew hlt Wird das Produkt mit software basiertem Lizenz Schutz ausgeliefert finden Sie einen Aufkleber auf der CD DVD H lle auf dem eine Aktivierungs ID in einem der folgenden Formate aufgedruckt ist Beispiele gt A l1A2B3C4D5F6G 1A2B3C4D5F6G7 gt ACT 0000012345 000012 123456 Nach dem Installieren der Software ben tigen Sie diese Aktivierungs ID um die Software Lizenz auf Ihrem PC freizuschalten Starten Sie den Activation Wizard ber das Start Men der installierten Software oder aus dem Tools Unterordner heraus und folgen Sie den Anweisungen Innerhalb des Aktivierungsvorgangs werden Sie nach der Aktivierungs ID gefragt Geben Sie hier die Aktivierungs ID ein die auf der ausgelieferten CD DVD H lle aufgedruckt ist Nach erfolgreicher Lizenz Aktivierung k nnen Sie die Arbeit mit Ihr
20. einer Vector Hardware USB Dongle oder als Lizenzschlussel benotigt wird Der Optolyzer G2 wird ber folgende Ethernet Port Nummern angesprochen Eine moglicherweise installierte Firewall darf diese nicht blockieren Spy 27998 Node 27999 PC seitig werden die Port Nummern automatisch vergeben Sollten dennoch nur bestimmte Port Nummern verwendet werden muss die Datei CAN ini angepasst werden Fur den Optolyzer G2 3050e MOST50 an Kanal 1 gilt dabei folgender Abschnitt OprSlyzer 2 0 1 MyPortNode MyPortspy 2 Wahlen Sie im CANoe Hardware Konfigurationsdialog Konfiguration Netzwerk Hardware fur den MOST Kanal den Speedgrade MOST50 und den HW Typ OptoLyzer OL3050e 3 Geben Sie die IP Adresse des Optolyzers auf der Seite Interface ein Wenn der Optolyzer bereits angeschlossen ist k nnen Sie dessen IP Adresse per Knopfdruck ermitteln 4 Wahlen Sie ebenfalls auf der Seite Setup den Netzwerkadapter an dem der Optolyzer angeschlossen ist 2 8 Weitere CANoe Optionen durch manuelles Kopieren oder L schen von Dateien Die Programme verwenden COM Mechanismen von MS Windows die durch das Installationsprogramm registriert bzw deregistriert werden m ssen AN Achtung Installieren oder deinstallieren Sie die entsprechenden Optionen nicht berblick Die Optionen sind jeweils als Erweiterung des Standard CANoe ausgef hrt Bei der Installation werden einige Dateien des Standard CANoe durch optionsspezifische Dateien
21. gen W hlen Sie im Kontextmen des Hot Spots die Funktion Programm Knoten einf gen Im Messaufbau erscheint an der gew hlten Stelle nun ein Funktions Block mit dem Programmsymbol P Den Konfigurationsdialog des Knotens ffnen Sie ber den Kontextmen punkt Konfiguration W hlen Sie hier zun chst einen Programmnamen z B COUNTER CAN aus Starten Sie den CAPL Browser entweder ber die Schaltfl che Bearbeiten des Konfigurationsdialoges oder direkt mit einem Doppelklick auf den Programmblock P im Messaufbau Zun chst ben tigen Sie f r das Programm eine Ganzzahlvariable welche die Botschaften z hlt Nennen Sie sie z B counter Gehen Sie in den Editorbereich des Browsers und tragen Sie diesen Namen im Variablenblock ein In diesem Teilfenster sollte nun Variables INE Counter stehen Die Variable wird wie alle globalen Variablen bei Messungsstart automatisch auf Null initialisiert Im n chsten Schritt soll diese Variable inkrementiert werden immer wenn eine Botschaft EngineData registriert wird Sie m ssen das CAPL Programm also um eine Ereignisprozedur vom Typ on message Reagiere auf Botschaftsereignis erweitern Klicken Sie dazu links im Browser Baum den Eintrag Event Handler mit der rechten Maustaste an ffnen Sie die Untermen punkte Neuer Event Handler CAN W hlen Sie dann den Eintrag on message lt newMessage gt Im Prozedurtext Editor erscheint nun ein Prozedurrumpf Ersetzen
22. gt Send CAN Raw Frame CAN1 0x3FC Set CAN Raw Frame CAN L 0x3FC gt Send CAN Raw Frame CAN L 0x3FC Set CAN Raw Frame 0xSFC gt Send CAN Raw Frame 0x3FC gt Set CAN Raw Frame CAN L 0x3FC gt Send CAN Raw Frame CANL Ox3FC Sequence valid Stopped Figure 11 Sequnce window of Message 2 Activate with in the toolbar the periodic replay of the sequence Message 2 until measurement stop Wait sets the time between the execution of the single sequnce steps Activate with D in the toolbar the automatic start of the sequnce at measurement start Start the measurement again by pressing the start button on the toolbar Further data sources Besides the Visual Sequencer CANoe offers additional block types as data sources gt With the Interactive Generator IG you can configure and send messages interactive while a measurement is running Additionally you can define signal generators gt With a Replay block you can play back data on the bus that were logged with CANoe s logging function gt A program block allows you to integrate your own transmit functionalities which may be quite complex into CANoe with the CAPL programming language Reference You can find detailed information about these block types in the online help 3 5 Evaluation Windows Data analysis Evaluation windows are used to analyze data generated by the Message 1 and Message 2 sequences Vector Informatik GmbH
23. im Ordner Drivers Optolyzer OptoControl CANoe wurde entwickelt und getestet mit den Opto Control Versionen die auf der CD sind Daher empfehlen wir dringend diese Treiberversionen zu installieren Setzen Sie die COM Port Einstellungen f r alle COM Ports die mit einer Optolyzer Box verwendet werden in der Systemsteuerung von Windows auf 115200 8 n 1 Hardware Installieren Sie die Option MOST in einem Verzeichnis Ihrer Wahl Aktivieren Sie General information Settings Synchronize Hardware im Konfigurationsdialog des Vector Treibers W hlen Sie im CANoe Hardware Konfigurationsdialog Konfiguration Netzwerk Hardware f r den MOST Kanal den Speedgrade MOST25 und den HW Typ Optolyzer Geben Sie den Lizenzcode f r das Optolyzer ActiveX Control im Hardware Konfigurationsdialog auf der Seite Interface ein Version 8 1 11 Installation Optolyzer Professional 2 7 2 MOST150 Installation 12 Installation amp Schnelleinstieg Wenn Optolyzer Professional installiert wird kann die Lizenznummer f r das ActiveX Control ber dieses Werkzeug eingegeben werden Es wird dann in der Windows Registrierung gespeichert Auf diese Weise lassen sich mehrere Lizenznummern speichern Sie werden alle gepruft wenn die Verbindung zur Optolyzer Box hergestellt wird Betrieb mit Optolyzer G2 31500 1 Installieren Sie den Optolyzer G2 31500 oder Optolyzer G2 31500 Production entsprechend dem Handbuch des Optolyzers Hinw
24. in the measurement windows afterwards In complex real systems CANoe typically also assumes both roles You can utilize the program as a data source to transmit data to other controllers but you can simultaneously use it to observe log and evaluate the data traffic on the CAN bus CAPL In the last part of the tour you will become familiar with the CAPL programming language and create two network nodes of a distributed system to solve a simple simulation task in CANoe 3 2 Preparations Windows CANoe has various evaluation windows e g Trace Data Graphics and Statsistics window as well as a Measurement Setup and a Simulation Setup which shows you the data flow and simultaneously allows you to configure CANoe You can access all program windows from the View menu on the main menu bar sw Vector CANoe MyConfiguration cfg Start Configuration Tools Window Help Measurement Setup Simulation Setup Test Setup Automation Sequences Write Symbol Explorer Trace Data Graphics Scope Signal Generators and Signal Replay EVs FDA A Basic Diagnostics Start Values Eule CAN Statistics All Windows Backup Placements m Figure 1 View menu on main menu bar 18 Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide CANoe Tour Simulation Setup Measurement Setup Evaluation windows Create a new configuration In the Simulation Setup the overall system is shown graphically with
25. mode and observe the signal response in the Graphics window To solve this task first switch CANoe to offline mode For that select the Offline item in the toolbar or switch with a double click on the Online Offline symbol in the Measurement Setup to offline mode All configuration settings are taken over to offline mode In the Measurement Setup the bus symbol is displayed deactivated and the data symbol is activated as data source Select the log file of the last task via the Configuration shortcut menu item of the file icon at the left of the Measurement Setup Also you have to separate the Logging block You can do this by double clicking the hot spot symbol in front left of the Logging block or with the popup menu of this hot spot You can now play back the measurement with the lt F9 gt key or with E in the toolber In contrast to online mode here CANoe also offers you the option of replaying the measurement in slow motion Start Animate menu item or lt F gt 8 or in Single Step mode Start Step menu item or lt F7 gt The same analysis functions are available to you in offline mode as in online mode That is the logged data are displayed in bus related format in the Trace window while you can observe the log s signal responses in the Graphics window Of course you can also insert filters or CAPL programs in the Measurement Setup to further reduce the data or introduce additional user defined analysis functions 3
26. program Once the program has compiled without errors the message Successfully compiled appears in the status bar at the bottom of Browser s main window Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide CANoe Tour Display in the Write window Now start the measurement The sequence Message 1 begins to cyclically transmit messages of the type EngineData which are now counted by your program Whenever you press the lt a gt key the text n EngineData messages counted can be seen in the Write window whereby n represents the number of messages counted 3 12 Simulation of Distributed Systems in CANoe Working with system CANoe provides system variables to model the functional bus behavior of network variables Unit 8 Diagram Procedure nodes These sytem variables are described by events and states of the system environment external pressure temperature switch positions etc You can observe and intentionally change these states i e the values of the system variables on user definable control panels To work with system variables in CAPL you use the event procedure type on sysvar React to change in system variable The CAPL functions SysGetVariablerInt and SysSetVariableInt are used to read and write system variables These language tools and symbolic access to the various variables defined in the database make it possible to create simple prototypical network node models Create a
27. 1 31 CANoe Einsteigertour Installation amp Schnelleinstieg zur Ol Grafik Le a ESD GE As Rm Saas Md 1 0 a Gear_4 Gear_2 Idle Name V E EcoMode vV E Gear El Ishifirequest U EcoMode Shift_Request_On ShiftRequest Shift_Request_Off 0 1 2 3 4 5 6 Abbildung 18 Grafik Fenster In der grafischen Darstellung des Signals Gear erkennen Sie die funf Werte die Sie in Ubung 2 in Sequenz Botschaft 2 eingetragen haben Nach dem Ende der Messung bleiben die Werte im Grafik Fenster erhalten Fur diese grafische Darstellung m ssen Sie unter IIL die separaten Ansichten der y Achsen ausw hlen Verweis Die Messfunktionen die Ihnen das Fenster zur nachtr glichen Analyse von Signalverl ufen bietet sind in der Online Hilfe ausf hrlich beschrieben 3 9 Aufzeichnen einer Messung Daten aufzeichnen bung 5 Aktivieren Sie den Logging Zweig Konfigurieren Sie die Logging Datei By Zur Datenaufzeichnung verf gt CANoe ber umfangreiche Logging Funktionen Im Messaufbau Men Ansicht Messaufbau wird der Logging Zweig ganz unten im Bild dargestellt Sie erkennen ihn leicht am Dateisymbol i das die Logging Datei symbolisiert Die Logging Datei wird w hrend der Messung mit CAN Daten gef llt Zeichnen Sie den gesamten CAN Datenverkehr der bei einer kurzen Messung ca 20 sec von den Sequenzen erzeugt wird im ASCII Format auf Um die Daten die im Messaufbau von CANoe eintreff
28. 11 Creating a CAPL Program What is CAPL zur Create a CAPL program 34 CAPL is an event based programming language Each CAPL program consists of event procedures with which you can react to external events e g occurrence of specific messages on the CAN bus or activation of keys on the PC keyboard The CAPL Browser is described in detail in the online help With its sub windows Panes it allows you to create and edit CAPL programs quickly and easily In principle you can also use your own text editor to create CAPL programs CAPL programs are normal ASCII files with the default name extension CAN which must be compiled before the start of measurement using the compiler provided with the CANoe product Reference You will find a complete description of the programming language together with numerous detailed examples in the online help In the next task you will create a simple CAPL program to count messages that are generated in CANoe s Simulation Setup Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide CANoe Tour Unit 7 Preparation Insert a CAPL node Configure the CAPL node Start the CAPL Browser Insert a variable Create an on Message event procedure Create a CAPL program with which you can count the number of messages of the type EngineData ID 64 hex and output the counted number of messages to the Write window in response to a key press gt First switch CANoe
29. 31500 1 Install the Optolyzer G2 31500 or Optolyzer G2 31500 Production corresponding to the Optolyzer user manual Note A license for the Optolyzer Integration Package OIP of Vector ona Vector hardware USB dongle or as a license key is required The Optolyzer G2 is accessed via the following ethernet port numbers This access must not be blocked by any installed firewall Spy 27998 Node 27999 On PC side the port numbers are allocated automatically If you need certain port numbers you have to adjust the file CAN ini For Optolyzer G2 31500 MOST150 at channel 1 you ll have to edit the following section OptolyzerG2 1 MyPortNode MyPortspy 2 Choose the speedgrade MOST150 and the HW type OptoLyzer OL31500 for the MOST channel in the CANoe hardware configuration dialog Configuration Network Hardware 3 Enter the IP address of the Optolyzer on the Interface page If the Optolyzer is already connected you can determine its IP address at the push of a button 4 On the Setup page also select the network adapter to which the Optolyzer is connected 2 7 3 MOST50 Use with Optolyzer G2 3050e Installation 12 1 Install the Optolyzer G2 3050e or Optolyzer G2 3050e Production corresponding to the Optolyzer user manual Note A license for the Optolyzer Integration Package OIP of Vector on a Vector hardware USB dongle or as a license key is required The Optolyzer G2 is accessed via the following e
30. Anlegen automatisch im Visual Sequencer ge ffnet 3 Geben Sie in der ersten Zeile die Daten der Botschaft mit den folgenden Einstellungen ein Befehl Set CAN Raw Frame Auswahl ber Listenfeld 22 Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour Objekt gt Kanal CAN1 gt Identifier 0x64 gt Selektor alle Daten L Objektauswahl Set CAN Raw Frame Identifier Ok64 Extended Abbildung 8 Objekteigenschaften einer Roh Botschaft Operator Operand D8 D6 37 00 Abstand 0 4 Umdie Botschaft zyklisch zu senden wahlen Sie in der zweiten Zeile folgende Einstellungen Befehl Set CAN Cyclic Raw Frame Auswahl uber Listenfeld Objekt gt Kanal CAN1 gt Identifier 0x64 gt Selektor nicht verfugbar Operator cycle time ms Operand 100 Abstand 0 5 Aktivieren Sie mit in der Symbolleiste das Wiederholen der Sequenz Botschaft 1 bis Messungsstopp 6 Aktivieren Sie mit D in der Symbolleiste das automatische Starten der Sequenz bei Messungsstart L Botschaft 1 9 aH Befehl Objekt Operator Operand e Set CAN Raw Frame CAN 1 0x64 De D6 3700 a Set CAN Cydic Raw Frame CAN1 0x64 cyde time ms 100 l In Bearbeitung Gestoppt Abbildung 9 Sequenz Fenster Botschaft 1 Verweis Ausf hrliche Informationen zu Automatisierungssequenzen bzw zum Visual Sequencer finden Sie in der Online Hilfe Vector Informatik
31. C4D5F6G7 ACT 0000012345 000012 123456 After installing the software you will need this Activation ID to activate the license on your PC Once the software has been installed start the Activation Wizard from the product s start menu entry sometimes may also be located in the Tools subfolder and make your selections there At one point you are asked to enter the Activation ID Enter the Activation ID exactly as printed on the sticker found on the CD DVD cover After the license has been activated successfully you can start working with your application Note Some product installers may automatically start the Activation Wizard once the installation is complete Further help on activating a license is available by pressing the Help button in the Activation Wizard If you need further assistance with activating a license e g when you do not have Internet access from your machine to activate the license online please direct your questions to activation vector com 2 6 Vector USB Dongle Application areas How to install the USB dongle 10 The USB dongle is required gt for the MOST option Exception When using hardware from the XL product family gt after upgrading from CANoe to CANoe MOST with XL products unless the license was not subsequently defined on the card gt for Optolyzer Integration Package OIP for the operation for MOST150 and MOST50 Note The USB dongle must not be conn
32. F E Verdict Test Case Name All Passed ral locking system test i All ri a E Toit static requirements of the SUT J Passed Fi Lock statically J Passed FZ Staticaly open the window J Passed 7 12 Staticaly close the window J Passed Vv 5 ne eed requirements of Central Locking System 7 com 7 v Lock by increasing velocity V Passed 7 Check no unlock when slowing down 7 5 Crash while engine is on 7 5 Apply crash while engine is off and not moving 7 5 Apply crash when engine is off but moving 7 Run extemal test application J Passed 7 Additional requirements of the Window System Some Failed 2 7 CAPL Check Request Reponse Timing J Passed 7 x Ambiguous open and close Y x Open and comfort close BT m ol el aal Ge el al a a ZR p i lt a jo ft 3 gt Br B i z _ a Installation amp Quick Start Guide Version 8 1 English Deutsch vector Verdict Test Case Name asad ing system test Jf AllPasse rag ese requirements of the SUT J Passed Fi Lock statically J Passed 7 5 Statically open the window J Passed 7 12 Staticaly close the window J Passed nlock statically l Some Failed 3 5 7 x ke dependent requirements of Central Locking System V p i es 7 Lock by increasing velocity Y Passed 7 Check no unlock when slowing down 7 5 Crash while engine is on 7 5 Apply crash while engine is off and not moving 7 5 Apply crash when e
33. GmbH Version 8 1 23 CANoe Einsteigertour Installation amp Schnelleinstieg Speichern Sie die Konfiguration Starten Sie die Messung Ausgabe im Trace Fenster Ubung 2 Fugen Sie eine zweite Visuelle Sequenz ein 24 Bevor Sie die Messung starten sollten Sie Ihre bis hierhin vorbereitete Konfiguration mit dem Menueintrag Datei Konfiguration speichern abspeichern Sie k nnen die Konfiguration dann jederzeit wieder laden und Ihre Arbeit genau an diesem Punkt fortf hren Starten Sie die Messung indem Sie den Start Schalter in der Symbolleiste dr cken CANoe beginnt unmittelbar mit dem periodischen Senden der Botschaft die Sie in Sequenz Botschaft 1 konfiguriert haben Im Trace Fenster Men Ansicht Trace sehen Sie das die Botschaft ber Kanal 1 gesendet Sendeattribut Tx Transmit und vom zweiten Controller empfangen Empfangsattribut Rx Receive wird Die kodas SIELA t BE 232 D B GB Ger At Miia Time Name Dir DLC Data Rx 4 D8 D6 37 00 Tx 4 D8 D6 37 00 Abbildung 10 Trace Fenster In der ersten Spalte wird der Sendezeitpunkt relativ zum Messungsstart angezeigt Die n chste Spalte zeigt Ihnen an ber welchen der beiden CAN Kan le gesendet bzw empfangen wird Erweitern Sie die Konfiguration aus der letzten Aufgabe so dass zus tzlich alle 500 Millisekunden eine Botschaft mit dem Identifier 3FC hex gesendet wird der Wert des ersten Datenbytes soll dabei zyklisch d
34. Interaktiven Generator IG k nnen Sie w hrend des Messbetriebes Botschaften konfigurieren und interaktiv auf den Bus senden Zudem k nnen Sie Signalgeneratoren definieren gt Mit dem Replay Block k nnen Sie Daten die mit der Logging Funktion von CANoe aufgezeichnet wurden wieder auf den Bus abspielen gt Der Programmblock bietet Ihnen die M glichkeit mit der Programmiersprache CAPL eigene u U auch recht komplexe Sendefunktionalit ten zu programmieren und in CANoe einzubinden Verweis Detaillierte Informationen zu den oben genannten Bl cken finden Sie in der Online Hilfe zur 3 5 Auswertefenster Daten Analyse Um die Daten zu analysieren die uber die Sequenzen Botschaft 1 und Botschaft 2 erzeugt werden setzen Sie die Auswertefenster ein Vector Informatik GmbH Version 8 1 25 CANoe Einsteigertour Installation amp Schnelleinstieg Trace Fenster Das Trace Fenster haben Sie bereits kennen gelernt Hier werden die Daten die in den Trace Block des Messaufbaus gelangen in einem busnahen Format als CAN Botschaften dargestellt Neben dem Zeitstempel gehort dazu die Nummer des CAN Controllers der Identifier ein Attribut zur Unterscheidung von gesendeten bzw empfangenen Botschaften sowie die Datenbytes der CAN Botschaft Konfiguration des Sie k nnen das Trace Fenster wie alle Analysefenster ber das Kontextmen Trace Fensters konfigurieren das Sie durch Klicken mit der rechten Maustaste auf das Fenste
35. Oin ShiftRequest Shift_Request_Off D 1 2 3 4 Figure 18 Graphics window In the curve of the Gear signal you can see the five values that you entered in the sequence Message 2 as part of unit 2 The values remain in the Graphics window after the end of the measurement For this graphical display you have to select under IL the separate views of the Y axes Reference The measurement functions that the window provides for post analysis are described detailed in the online help 3 9 Logging a Measurement Data logging Unit 5 Activate the logging branch Configure the logging file lt 92 CANoe has extensive logging functions for data logging In the standard Measurement Setup menu View Measurement Setup the logging branch is shown at the very bottom of the screen You can easily recognize it by the file icon that symbolizes the log file The log file is filled with CAN data during the measurement Log in ASCII format all CAN data traffic that is generated in a short measurement approx 20 sec by the sequences To log the data that arrive in CANoe s Measurement Setup to a file first stop the measurement and activate the logging branch Also remove the break that separates the Logging block of a new configuration from the data source You can do this by double clicking the break symbol or with its shortcut menu item Remove Break With the shortcut menu item Logging File Configuration
36. Sie hier zun chst den Text lt newMessage gt durch den symbolischen Namen EngineData den Sie auch direkt ber den Kontextmen punkt Botschaft aus Datenbasis aus der Datenbasis bernehmen k nnen Der CAPL Compiler ersetzt beim Kompilieren den symbolischen Namen durch den entsprechenden Identifier 0x64 Jetzt bleibt nur noch zu definieren welche Aktionen bei Eintreten des Ereignisses ausgef hrt werden sollen Da das Programm Botschaften z hlen soll muss die Variable counter beim Registrieren einer Botschaft inkrementiert werden Die fertige Prozedur sieht folgenderma en aus Veector Informatik GmbH Version 8 1 35 CANoe Einsteigertour Installation amp Schnelleinstieg Erstellen Sie eine zweite on message Ereignisprozedur Erstellen Sie eine Ereignisprozedur on key Speichern und Kompilieren Sie das Programm 36 on message EngineData eeun ertt output this Die Botschaft EngineData wird im Trace Fenster angezeigt Damit auch alle anderen Botschaften im Trace Fenster angezeigt werden muss noch folgende Prozedur geschrieben werden on message OMICS WE loins Hinweis Ohne diese Prozedur wurde das eingefugte CAPL Programm wie ein Filter wirken da nur die Botschaft EngineData an das Trace Fenster im Messaufbau weitergeleitet werden wurde Im letzten Schritt muss nun noch die Ausgabe ins Write Fenster implementiert werden Schlie lich soll das Programm nicht nur Botschaften z hle
37. Standard IdleRunning AR EngForce not_used i EngPower AS PetrolLevel EngineDatalEEE 0x66 J EngineStatus 0x65 GearBoxlnfo Ox3FC Ignition_Info 0x67 NM_Engine 0251B NM_Gateway_PowerTrain 02514 ne a Figure 14 Overall View window of the CANdb Editor Double click the Messages object type in the area on the left side of the Overall View window The subordinate structural level is then also shown in this area and the area on the right shows the available messages with their system parameters e g sym bolic name identifier etc indicates that this message has no assigned receiver node Note The CANdb Editor validates inputs and displays potential errors or issues in the Overall View window In this demo database the symbol in front of the message First toggle the numbering format from decimal to hexadecimal in the Options Settings menu item We can deduce from the symbolic names of the messages that the system under consideration involves a description of communications in a rudimentary engine area system Click the message EngineData in the left area of the Overall View window The system parameters of signals transmitted in this message are shown in the area on the right side of the Overall View window The temperature EngTemp for example is a 7 bit signal To obtain the physical value in degrees celsius the bit value must be multiplied by the factor 2 and the o
38. Stuttgart Die in diesen Unterlagen enthaltenen Angaben und Daten k nnen ohne vorherige Ank ndigung ge ndert werden Ohne ausdr ckliche schriftliche Genehmigung der Vector Informatik GmbH darf kein Teil dieser Unterlagen f r irgendwelche Zwecke vervielf ltigt oder bertragen werden unabh ngig davon auf welche Art und Weise oder mit welchen Mitteln elektronisch oder mechanisch dies geschieht Alle technischen Angaben Zeichnungen usw unterliegen dem Gesetz zum Schutz des Urheberrechts Copyright 2013 Vector Informatik GmbH Printed in Germany Alle Rechte vorbehalten Installation amp Schnelleinstieg Inhaltsverzeichnis 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 3 1 3 2 3 3 3 4 3 5 3 6 3 3 8 3 9 3 10 3 11 3 12 Einfuhrung Zu diesem Handbuch Zugriffshilfen und Konventionen Zertifizierung Gewahrleistung Support Warenzeichen Se ee ee ye 1 1 1 ie oR WN Installation Allgemeines Systemvoraussetzungen Installationsvoraussetzungen Installationsvorgang Hinweise zur Aktivierung einer software basierten Lizenz Vector USB Dongle MOST 2 7 1 MOST25 Betrieb mit Optolyzer Box 2 7 2 MOST 150 Betrieb mit Optolyzer G2 31500 2 1 3 MOST50 Betrieb mit Optolyzer G2 3050e Weitere CANoe Optionen Umschaltung der Sprachversionen Test der Softwareinstallation 2 10 1 Option IP Troubleshooting 2 11 1 Hardware spezifische Fehlermeldungen CANoe Einsteigertour
39. XP SP 3 gt Processor type and speed e g Core2Duo 1 6 GHz gt Memory e g 1 GB RAM gt What problems occurred gt Which configuration did these problems occur with gt Are you getting error messages in the software e g in the Write window gt Company company address gt First name last name gt Department gt Telephone number fax number e mail address Vector Informatik GmbH Version 8 1 45 Verdict ral locking system test Ir ri a E Toit static requirements of the SUT J Passed Fi Lock statically J Passed 7 5 Stalically open the window J Passed 7 Statically close the window J Passed Z y Unlock staticaly i Some Failed 3 5 7 K Test velocity dependent requirements of Central Locking System P a 7 Lock by increasing velocity V Pass Mr 7 5 Check no unlock when slowing down 7 5 Crash while engine is on 7 5 Apply crash while engine is off and not moving 7 5 Apply crash when engine is off but moving 7 Run extemal test application J Passed 7 Additional requirements of the Window System Some Failed 2 7 CAPL Check Request Reponse Timing J Passed 7 x Ambiguous open and close Y x Open and comfort close A cell Mech a eel a _ _ A i i lt a jo ft ae gt e a a lt i m Installation amp Schnelleinstieg I 4 Version 8 1 Deutsch F vector Impressum Vector Informatik GmbH Ingersheimer Strake 24 D 70499
40. ak CAN All Statistic Busload Min Send Dist ms Bursts total Burst Time ms Frames per Burst Std Data fir s Std Data fotal Bit Data fr s Bit Data ftotal Std Remote frs Std Remote total Ext Remote fr s Ext Remote total Emorframes frs Erorframes total Chip State Transmit Eror Court Receive Eror Count Transceiver Errors Abbildung 12 Statistik Fenster 26 Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour 3 6 Arbeiten mit symbolischen Daten Symbolische Beschreibung von Daten Datenbasis zuordnen Bevor wir auf die verbleibenden Fenster n her eingehen werfen wir einen Blick auf die M glichkeiten die CANoe zur symbolischen Beschreibung von Daten bietet Von Interesse sind bei der Analyse von CAN Systemen neben busnahen Informationen wie Botschaften Error Frames und Botschaftsh ufigkeiten vor allem die Nutzinformationen d h Signale wie Drehzahl Temperatur oder Motorlast die von einzelnen Steuerger ten bereitgestellt und mit Hilfe von CAN Botschaften ber den Bus gesendet werden Um diese Informationen symbolisch zu beschreiben stellt Ihnen CANoe das Datenbasisformat DBC einschlie lich eines Datenbasis Editors zur Verf gung mit dem Sie Datenbasen lesen erstellen und modifizieren k nnen Verweis Das CANdb Handbuch und die CANdb Online Hilfe enthalten weitere Info
41. ave Configuration You can then reload this configuration at any time and resume your work precisely at this point Start the measurement by pressing the start button on the toolbar CANoe immediately begins to cyclically transmit the message you have configured in the sequence Message 1 In the Trace window menu View Trace you can see that the message is transmitted via channel 1 Transmit attribute Tx Transmit and received by the second controller Receive attribute Rx Receive t ma at BE SO B BGs A Initial 5 Time Chn Name Dir ELC Data pa 5 401559 2 Rx 4 D8 D6 37 00 TX 4 De D6 37 00 Figure 10 Trace window The first column shows the transmit time relative to the measurement start The next column shows you which of the two CAN channels was used to transmit identifier 3FC hex is transmitted every 500 milliseconds The value of the first data byte of this message should cyclically assume values from 1 to 5 You can solve this task by inserting a second visual sequence Message 2 that transmits a new message on the bus Stop the measurement with in the toolbar before entering the second sequence Sequence Message 2 must be defined as follows Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide CANoe Tour ojn p ina Command Object Operator Wait ms gt Set CAN Raw Frame CAN L 0x3FC gt Send CAN Raw Frame CAN1 0x3FC gt Set CAN Raw Frame CAN L 0x3FC
42. bei dem Sie die Installation der Software starten k nnen Sollte bei Ihrer Computerkonfiguration das Startfenster nicht automatisch erscheinen rufen Sie das Installationsprogramm SETUP EXE aus dem Verzeichnis Application der CD auf 2 Folgen Sie den Anweisungen des Installationsprogramms Hinweis F r die Installation ben tigen Sie Administrator Rechte Sind Sie nur als Standard Anwender mit Standardbenutzerrechten angemeldet m ssen Sie das CANoe Installationsprogramm Setup exe direkt im Explorer starten Es wird ein Dialog ge ffnet um sich als Anwender mit Administrationsrechten anzumelden damit die Installationsroutine erfolgreich ausgef hrt werden kann Installationsarten Sie k nnen eine Standardinstallation oder eine benutzerdefinierte Installation ausf hren Standard gt Bei der Standardinstallation wird die Software in der von Ihnen bestellten Form Hardwareplattform Sprachversion und Bustyp installiert und vorkonfiguriert Benutzerdefiniert gt Bei der benutzerdefinierten Installation k nnen Sie wahlweise Hardware Anbindungen f r alternativ verf gbare Hardware Plattformen deutsche oder englische Sprachausf hrung sowie Beispielkonfigurationen installieren 2 5 Hinweise zur Aktivierung einer software basierten Lizenz Produkte Die folgenden Produkte und Versionen unterst tzen einen software basierten Lizenz Schutz gt CANoe CANalyzer 2 7 1 gt Test Automation Editor 2 1 1 Lizenzierung Die Software
43. bes the state of the switch at the first node This signal is packed in a CAN message and is only transmitted if the switch state changes spontaneous transmission Therefore you create a new database with message Msg1 and signal bsSwitch Open with the CANdb Editor Open the Template dialog via File Create Database Select the CANoeTemplate dbc template gt Oo DD S With OK you open the New Database File dialog Enter here the name of the new database e g Database 5 Close the dialog with Save The new database is opened in the CANdb Editor Now you can create the message Msg1 with the identifier 100 which is to be transmitted by the first node Therefor select Messages and open with the shortcut menu item New the configuration dialog for the new message Enter the following values in the Definition tab gt Name Msg1 gt Typ CAN Standard gt ID 0x100 gt DLC 8 Close the dialog with OK Create the signal bsSwitch to describe the switch position and assign it to the message Msg1 Therefore select Signals and open with the shortcut menu item New the configuration dialog for the new signal Enter the following values in the Definition tab Name bsSwitch Length Bit 1 for the transmittion of the states on 1 and out 0 Byte Order Intel Value Type Unsigned Factor 1 Offset 0 Minimum 0 V V VVV V V Maximum 1 Version 8 1 Vector Informatik GmbH Installation
44. cense Vector USB Dongle MOST 2 7 1 MOST25 Use with Optolyzer Box 2 7 2 MOST 150 Use with Optolyzer G2 31500 2 1 3 MOST50 Use with Optolyzer G2 3050e Further CANoe Options Switching Language Versions Running the Test 2 10 1 Option IP Troubleshooting 2 11 1 Hardware Specific Error Messages CANoe Tour Overview Preparations Setting up the Bus Transmitting Data Evaluation Windows Working with Symbolic Data Analysis of Signal Values in the Data Window Analysis of Signal Responses in the Graphics Window Logging a Measurement Evaluating a Log File Creating a CAPL Program Simulation of Distributed Systems in CANoe 3 12 1 Creating the Database 3 12 2 Definition of System Variables 3 12 3 Creating Panels 3 12 4 Creating Network Node Models Appendix A Support Vector Informatik GmbH Version 8 1 Introduction III PR Q Installation amp Quick Start Guide Introduction 1 Introduction In this chapter you find the following information 1 1 About this User Manual page 4 Access Helps and Conventions Certification Warranty Support Registered Trademarks Vector Informatik GmbH Version 8 1 3 Introduction Installation amp Quick Start Guide 1 1 About this User Manual 1 1 1 Access Helps and Conventions To find information The user manual provides you the following access helps quickly at the beginning of each chapter you will find a summary of its contents gt inthe header you see t
45. d have the effect of a filter because only the message EngineData would be transmitted to the Trace window in the Measurement Setup As a last step the output to the Write window must still be implemented Finally the program should not just count messages but also keep track of how many messages have been counted The output to the Write window should occur when the lt a gt key is pressed Therefore you must define another event procedure for the event Press key lt a gt Now insert a Keyboard event in the CAPL program To do this click the Event Handlers entry in the left Browser tree using the right mouse button Open the submenu items New Event Handler on key lt newKey gt A new procedure template will appear in the Procedures Text Editor which you fill out as follows on key a write d EngineData messages counted counter The format entry d refers to the integer variable counter which is entered after the comma For the most part this format string conforms to the C function printf That completes the program Save it and then start the compiler either with the lt F9 gt key or the main menu command Compiler Compile or by the button on the toolbar If you have made an error in creating the program a message win dow will open showing you the error Double click this error message to go to the location where the error occurred After you have corrected it and saved the program file again recompile the
46. e Static Text A display element from the Toolbox and place it on the panel to the right of the Switch Enter the label in the Properties grid of the Static Text under Appearance Text 7 Save the panel under the name LIGHT XVP Add the panels to the You complete this step of this unit by integrating the created panels into the CANoe configuration configuration with the button of the toolbar IA SWITCH o e amp amp gt ee I smer Figure 21 Panels in CANoe Save the Before creating the network node models you should save the configuration you just configuration created by pressing the ml button on the CANoe toolbar 3 12 4 Creating Network Node Models Create network node You create the network node models in the Simulation Setup At the least the model models for the first node must send a message when the switch is activated and therefore it may not be inserted in the Measurement Setup Insert two network In this example you need two network nodes in the Simulation Setup The first node nodes supplies the switch position and the second reacts to this by activating or deactivat ing a small lamp In the Simulation Setup click the bus lines to insert new network node models 42 Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide CANoe Tour Click here to inset anew network nade Network CAN Configure the nodes Create the used CAPL programs Vector Informati
47. e executed successfully You can run a Standard or Custom installation gt Ina Standard installation the software is installed and pre configured in accordance with your order hardware platform language version and bus type gt With a Custom installation you can install hardware connections for alternatively available hardware platforms German or English language versions and sample configurations 2 5 Notes on Activating a Software Based License Products Licensing The following products and versions support software based license protection gt CANoe CANalyzer 2 7 1 gt Test Automation Editor 2 1 1 The software product you are about to install requires a license The license protection method depends on the product gt Hardware based license protection License becomes available when USB dongle or bus interface hardware is inserted plugged gt Software based license protection An Activation ID is delivered with your product and must be activated before usage The respective license protection is chosen when ordering the product Vector Informatik GmbH Version 8 1 9 Installation Activation ID Activating a license Help amp support Installation amp Quick Start Guide If the product is delivered with a software based license protection you will find a sticker on the CD DVD cover which shows an Activation ID of one of the following formats examples given gt A l1A2B3C4D5F6G7 l1A2B3
48. e start CANoe for the changes to become effective 2 10 Running the Test Prerequisite To test the CANoe software installation the CAN hardware must be successfully installed Procedure 1 Connect the two CAN ports of your CAN hardware using a cable that is terminated in a way that is appropriate to the bus type 2 Load the CANSystemDemo cfg sample configuration in the Demo folder Demo_CAN_CN CANSystemDemo and start it If the installation is successful you will be able to observe CAN messages in the Trace window Result This functional test also confirms that the CAN hardware has been installed correctly 2 10 1 Option IP Option IP Check to make sure the program is functionally capable by means of one of the sample configurations in the EthernetLoopTest folder of your application data These configurations utilize a loopback connection In case you use two Ethernet interfaces connect them directly together with a crossover cable and use the configuration EthernetLoopTest_2Ch_CN cfg If you use only one Ethernet interface connect a loopback cable or a loopback adapter at 10 or 100 Mbps to it and use configuration EthernetLoopTest_1Ch_CN cfg Configure the Ethernet interfaces in the Network Hardware Configuration dialog of CANoe IP Afterwards start the measurement of the sample configuration Press Output Packet in the tester panel and check if the result indicator reports Pass If you use CANoe IP for Remote CAN Analysi
49. ected during the installation 1 Run the setup file haspdinst exe The file is in the drivers VectorDriverDisk Drivers 32_Bit Dongle folder on the CD Installing this file may take a little while up to 4 minutes You need to reboot your computer when the installation is complete Plug the USB dongle into the USB port Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide Installation Note You can also search for a current driver in the Vector Download Center Install a the driver with the downloaded program Setup exe afterwards 2 7 MOST Prerequisites To run MOST you will need the following gt A MOST option license that is tied to the hardware or to a USB dongle gt Additionally for MOST150 for operation with an Optolyzer G2 31500 A license for the Optolyzer Integration Package OIP of Vector on a USB dongle or on a simultaneously connected Vector hardware gt Additionally for MOST50 for operation with an Optolyzer G2 3050e A license for the Optolyzer Integration Package OIP of Vector on a USB dongle or on a simultaneously connected Vector hardware Note The Optolyzer Integration Package OIP covers operation with MOST150 and l MOST50 Reference For help with installing the MOST hardware please refer to the associated installation manual 2 7 1 MOST25 Use with Optolyzer Box Prerequisites To work with the Optolyzer Box you will need the following gt An Optolyzer Box Firmware Ver
50. ed interface you will simply need a 3 conductor cable to interconnect the pins of the two controllers that are assigned to the bus lines CAN high CAN low and ground Figure 4 Bus interface VN1638 with connection cable Consequently the CAN bus that you use during this tour will consist of a short 2 conductor or 3 conductor cable that connects the two CAN controllers of the CAN card to one another This is necessary as a minimal configuration since the CAN protocol requires in addition to a sender at least one receiver that confirms the correct receipt of messages with an acknowledge Connect the bus For external bus interfaces e g VN1638 or CANcaseXL use a USB cable to connect interface with your to the PC Internal bus interfaces e g CANcardXLe plug directly into your PC PC 20 Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide CANoe Tour Define the bus parameters k a Up to this point we have not considered definitions of bus parameters Transmission speed sampling point etc which must be set for each of the two participating con trollers 1 To do this from the View menu bring the Simulation Setup to the foreground and click the right mouse button on the square that represents the bus system Network LAN CAN 1 Network Hardware w Nebwork Active Assigr Module to all Network Nodes Open Network Panel Rename Assigr Channel Figure 5 Shortcut me
51. eichenrechts und den Besitzrechten der jeweiligen eingetragenen Eigent mer Alle hier bezeichneten Warenzeichen Handelsnamen oder Firmennamen sind oder k nnen Warenzeichen oder eingetragene Warenzeichen ihrer jeweiligen Eigent mer sein Alle Rechte die hier nicht ausdr cklich gew hrt werden sind vorbehalten Aus dem Fehlen einer expliziten Kennzeichnung der in diesem Handbuch verwendeten Warenzeichen kann nicht geschlossen werden dass ein Name von den Rechten Dritter frei ist gt Outlook Windows Windows XP Windows Vista und Windows 7 sind Warenzeichen der Microsoft Corporation gt CANoe CANalyzer CANdb Editor J1939 CAPL Generator ProCANopen CANsetter CANeds und CANerator sind Warenzeichen der Vector Informatik GmbH CANopen und CiA sind Warenzeichen des CAN in Automation e V NMEA und NMEA 2000 sind eingetragene Warenzeichen der National Marine Electronics Association gt eclipse unterliegt dem Copyright der Eclipse Mitwirkenden und anderer 6 Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg 2 Installation In diesem Kapitel finden Sie die folgenden Informationen 2 1 Allgemeines 2 2 Systemvoraussetzungen 2 3 Installationsvoraussetzungen 2 4 Installationsvorgang 2 5 Hinweise zur Aktivierung einer software basierten Lizenz 2 6 Vector USB Dongle 2 7 MOST MOST25 Betrieb mit Optolyzer Box MOST150 Betrieb mit Optolyzer G2 31500 MOST50 Betrieb mit Optolyzer G2 3050e 2 8 Weit
52. eierweiterung CAN die vor dem Messungsstart mit dem zum Lieferumfang von CANoe geh renden Compiler bersetzt werden m ssen Verweis Eine vollst ndige Beschreibung der Programmiersprache finden Sie zusammen mit zahlreichen ausf hrlichen Beispielen in der Online Hilfe In der n chsten Aufgabe werden Sie ein einfaches CAPL Programm erstellen um Botschaften zu z hlen die im Simulationsaufbau von CANoe erzeugt werden Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour Ubung 7 Vorbereitungen Fugen Sie einen CAPL Knoten ein Konfigurieren Sie den CAPL Knoten Starten Sie den CAPL Browser Fugen Sie eine Variable ein Erstellen Sie eine Ereignisprozedur on Message Erstellen Sie ein CAPL Programm mit dem Sie Botschaften von Typ EngineData ld 64 hex zahlen und die Anzahl der gezahlten Botschaften auf Tastendruck im Write Fenster ausgeben konnen gt Schalten Sie CANoe zun chst wieder in den Online Modus zur ck gt Mit der Sequenz Botschaft 1 wird die Botschaft EngineData zyklisch auf den Bus gelegt Zun chst m ssen Sie entscheiden an welcher Stelle Sie Ihr CAPL Programm im Datenflussplan einf gen Sie k nnen dazu jeden Hot Spot im Messaufbau Simulationsaufbau nutzen Da es sich um ein reines Analyse Programm handelt das keine Botschaften erzeugt sondern lediglich z hlt bietet es sich an das Programm rechts im Messaufbau etwa vor dem Trace Fenster einf
53. einem Crossover Kabel und laden die Konfiguration EthernetLoopTest_2Ch_CN cfg Nutzen Sie hingegen nur eine Ethernet Schnittstelle schlie en Sie ein Loopback Kabel oder einen Loopback Adapter mit 10 oder 100 Mbps an und laden die Konfiguration EthernetLoopTest_1Ch_CN cfg Konfigurieren Sie die Ethernet Schnittstellen im Dialog Netzwerk Hardware Konfiguration in CANoe IP Anschlie end starten Sie die Messung der Beispielkonfiguration Dr cken Sie Output Packet im Test Panel und pr fen ob die Ergebnisanzeige Pass anzeigt Wenn Sie CANoe IP f r die Remote CAN Analyse nutzen installieren Sie zuerst das CAN W LAN Gateway entsprechend den Installationsanweisungen des Herstellers Konfigurieren Sie anschlie end das CAN W LAN Gateway im Vector Hardware Dialog Systemsteuerung Vector Hardware Die Installation sowie die Verbindung zum CAN W LAN Gateway ist in Ordnung wenn statt Remote Bus 1 oder Remote Bus 2 eine Kurzbezeichnung f r das verwendete Modul angezeigt wird 2 11 Troubleshooting 2 11 1 Hardware spezifische Fehlermeldungen berblick Vorgehen Vorgehen Vorgehen Einige Fehlermeldungen beziehen sich auf fehlerhafte Einstellungen im Treiber konfigurationsdialog Sie ffnen den Treiberkonfigurationsdialog ber das Windows Menu unter Start Einstellungen Systemsteuerung Vector Hardware Nr 4000 Der CAN Kanal X ist in der Vector Hardware Konfiguration nicht definiert Bitte passen Sie die Anzahl der Appl
54. eise Beachten Sie dass zum Betrieb eine Lizenz des Optolyzer Integration Package OIP von Vector auf einer Vector Hardware USB Dongle oder als Lizenzschlussel benotigt wird Der Optolyzer G2 wird ber folgende Ethernet Port Nummern angesprochen Eine m glicherweise installierte Firewall darf diese nicht blockieren Spy 27998 Node 27999 PC seitig werden die Port Nummern automatisch vergeben Sollten dennoch nur bestimmte Port Nummern verwendet werden muss die Datei CAN ini angepasst werden F r den Optolyzer G2 31500 MOST 150 an Kanal 1 gilt dabei folgender Abschnitt LOptolyzerG2 1 MyPortNode MYPorLspy 2 Wahlen Sie im CANoe Hardware Konfigurationsdialog Konfiguration Netzwerk Hardware f r den MOST Kanal den Speedgrade MOST 150 und den HW Typ OptoLyzer OL31500 3 Geben Sie die IP Adresse des Optolyzers auf der Seite Interface ein Wenn der Optolyzer bereits angeschlossen ist k nnen Sie dessen IP Adresse per Knopfdruck ermitteln 4 Wahlen Sie ebenfalls auf der Seite Setup den Netzwerkadapter an dem der Optolyzer angeschlossen ist Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg Installation 2 3 MOST50 Betrieb mit Optolyzer G2 3050e Installation 1 Installieren Sie den Optolyzer G2 3050e oder Optolyzer G2 3050e Production entsprechend dem Handbuch des Optolyzers Hinweise Beachten Sie dass zum Betrieb eine Lizenz des Optolyzer Integration i Package OIP von Vector auf
55. en Sie einfuhrende Informationen finden Dieses Symbol weist Sie auf Stellen im Handbuch hin an denen ii Sie Grundwissen finden Dieses Symbol weist Sie auf Stellen im Handbuch hin an denen Sie Expertenwissen finden en Dieses Symbol weist Sie auf Stellen im Handbuch hin an denen a sich Anderungen ergeben haben 1 1 2 Zertifizierung Qualitats Die Vector Informatik GmbH ist gem ISO 9001 2008 zertifiziert managementsystem Der ISO Standard ist ein weltweit anerkannter Qualitatsstandard 1 1 3 Gew hrleistung Einschr nkung der Wir behalten uns inhaltliche nderungen der Dokumentation und der Software ohne Gew hrleistung Ank ndigung vor Die Vector Informatik GmbH bernimmt keine Haftung f r die Richtigkeit des Inhalts oder f r Sch den die sich aus dem Gebrauch des Handbuchs ergeben Wir sind jederzeit dankbar f r Hinweise auf Fehler oder f r Verbesserungsvorschl ge um Ihnen in Zukunft noch leistungsf higere Produkte anbieten zu k nnen 1 1 4 Support Sie ben tigen Hilfe Sie k nnen unsere Hotline telefonisch unter der Rufnummer 49 711 80670 200 oder per Web Formular unter CANoe Support erreichen Vector Informatik GmbH Version 8 1 5 Einfuhrung Installation amp Schnelleinstieg 1 1 5 Warenzeichen Geschutzte Alle innerhalb des Handbuchs genannten und ggf durch Dritte gesch tzten Marken Warenzeichen und Warenzeichen unterliegen uneingeschr nkt den Bestimmungen des jeweils g ltigen Kennz
56. en in eine Datei aufzuzeichnen stoppen Sie zunachst die Messung und aktivieren Sie den Logging Zweig Entfernen Sie dazu die Unterbrechung die den Logging Block bei einer neuen Konfiguration von der Datenquelle trennt durch einen Doppelklick auf das Unterbrechungssymbol oder ber dessen Kontextmenupunkt Unterbrechung entfernen Mit dem Kontextmenupunkt Logging Datei Konfiguration des Dateisymbols rechts im Logging Zweig ffnen Sie den Konfigurationsdialog Hier tragen Sie den Dateinamen f r die Messaufzeichnung sowie deren Format ein Wahlen Sie hier das ASCII Format ASC Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour y Logging Datei Konfiguration Datei Datei D Programme Wector CANOE ASC Dobai Dateiformat Ascii Format ASC asc Einstellungen Automatisches Inkrementieren des Dateinamens C Vor berschreiben der Datei wamen V Bei jedem Messungsstart V Fehlermeldung bei Datenverlust anzeigen IF Nach jedem Trigger Block MDF Datei nach Messung in CANgraph laden Erweitertes Inkrementieren Extended Mode 1 Legen Sie fest welche Ereignisse und in welchem Format diese in die Loggingdatei geschrieben werden Mach 1 V Interne Ereignisse loggen Mach W Trigger Ereignisse loggen Zeitangaben der Botschaften Statistik und F llstandsereignisse loggen Ahsohite Zeiten Variablenwerte symbolisch loggen gt Relative Zeiten Schreibe H
57. en Sie Systemvariablen Im zweiten Schritt beschreiben Sie die I O Schnittstelle zwischen Netzknoten und Peripherie Dazu stellt Ihnen CANoe Systemvariablen zur Verf gung Jedes Peripherie Element Schalter Lampchen Schieberegler wird mit einer Systemvariable verdrahtet d h an das CAPL Programm f r den Netzknoten angeschlossen In diesem Beispiel gibt es genau zwei Peripherie Elemente einen Schalter am ersten Netzknoten und ein Lampchen am zweiten Also m ssen zwei Systemvariablen z B svLight und svSwitch in der Datenbasis erstellt werden 1 Die beiden Systemvariablen legen Sie im Dialog Systemvariablen Konfiguration an Diesen Dialog ffnen Sie ber den Men punkt Konfiguration Systemvariablen Vector Informatik GmbH Version 8 1 39 CANoe Einsteigertour Installation amp Schnelleinstieg 2 ffnen Sie den Dialog Systemvariable hinzuf gen mit Hinzuf gen Jede Systemvariable gehort zu genau einem Namensraum und ist in diesem durch ihren Namen eindeutig definiert auf Gro und Kleinschreibung wird geachtet Machen Sie f r die Systemvariable svLight folgende Eingaben gt Namensraum MyNamespace gt Name svLight gt Datentyp Integer N Systemvariable hinzuf gen 8 as Namensraum MyNamespace Name sv Light Datentyp Integer Arraygro e 1 Einheit Werteta belle Keine WVertetabelle Initialwert Minimum Max mum Speichen E Verwendung nur f r Analyse Ma
58. enbasis Uber die Schaltflache Y der Symbolleiste Der CANdb Editor wird ge ffnet und der Inhalt der Datenbasis POWERTRAIN DBC im bersichtsfenster des CANdb Editors dargestellt EH Vector CANdb Editor PowerTrain dbc bersicht EA Datei Bearbeiten Ansicht Optionen Fenster Hilfe TAn ERRAA S Ban ti Netzwerke Name ID ID Format DLC Byte 7 a me ABSdata C CAN Standard A Diag Request 0x200 CAN Standard Diag_Response 0x400 CAN Standard Basen ee Ox601 mie aya ABSdata 0xC9 DiagRespons 0x508 CAN Standard __ Greco l Cc Sonder Diag_Request 0x200 ENG Ort ie Standard Diag_Response 0x400 EngineDatalEEE 0x66 CAN Standard DiagRequest_Motor 0x601 EngineStatus 0x65 CAN Standard not usec not usec H Umgebungswariablen not user Netzknoten not_usec not_usec not_usec not_usec not_used DiagResponse_Motor 0x508 GearBoxlnfo OxSFC CAN Standard not_used EngineData 0x64 Ignition_Into 0x67 CAN Standard EngSpeed NM_Engine 0x516 CAN Standard i EngTemp NM_Gateway 06514 CAN Standard i IdleRunning Cyclic Cyclic i EngForce i EngPower AS PetrolLevel EngineDatalEEE 0x6 EngineStatus 0x5 GearBoxlnfo 0x3FC Ignition_Info 0x67 NM_Engine 0x51B E NM_Gateway_PowerTrain 0x51A i Signale m fm j B 9 E 12 Botschaft en Bereit Abbildung 14 bersichts Fenster des CANdb Editors Doppelklicken Sie den Objekttyp Botschaften im linken Bereich des
59. enz Botschaft 1 die Botschaft EngineData zyklisch mit den Datenbytes D8 D6 37 und O auf den Bus zu legen Nach der Botschaftsbeschreibung in der Datenbasis interpretiert der Daten Block im Messaufbau diese Bytewerte nun als Drehzahl Temperatur und Leerlaufschalter und stellt die entsprechenden Signalwerte in ihren physikalischen Einheiten im Daten Fenster dar EngPower EngineData EngSpeed 55000 EngTemp 50 IdleRunning Running Petrollevel 0 Abbildung 17 Daten Fenster Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour Die Drehzahl wird also mit Hilfe der Umrechnungsformel der Datenbasis in Umdrehungen pro Minute angezeigt wahrend Sie die Temperatur in Grad Celsius sehen Die Werte aller drei Signale bleiben zeitlich konstant da vom Visual Sequencer stets die Botschaft mit den gleichen Datenbytes D8 D6 37 und 0 gesendet wird 3 8 Analyse von Signalverlaufen im Grafik Fenster Analyse von Signalverlaufen Ubung 4 Fugen Sie im Grafik Fenster Signale hinzu Ausgabe im Grafik Fenster W hrend das Daten Fenster momentane Signalwerte anzeigt k nnen Sie im Grafik Fenster Men Ansicht Grafik den zeitlichen Verlauf von Signalwerten darstellen Nach Messungsende stehen zur Untersuchung der Signalverl ufe komfortable Analysefunktionen bereit Konfigurieren Sie das Grafik Fenster so dass die Signalwerte der im Simulationsaufbau erzeugten Botschaft 3FC hex angezeigt werde
60. er Controller miteinander zu verbinden Abbildung 4 Bus Interface VN 1630 mit Verbindungskabel Der Bus den Sie w hrend dieser Tour verwenden besteht also aus einem kurzen 2 bzw 3 adrigen Kabel das die beiden CAN Controller der CAN Karte miteinander verbindet Diese minimale Konfiguration ist erforderlich da das CAN Protokoll neben einem Sender mindestens einen Empf nger erfordert der korrekt empfangene Botschaften mit einem Acknowledge quittiert Bei externen Bus Interfaces wie z B einem VN1630 oder einem CANcaseXL verwenden Sie ein USB Kabel f r die Verbindung zum PC Interne Bus Interfaces wie z B die CANcardXLe stecken Sie direkt in Ihren PC ein Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour Legen Sie die Busparameter fest Vector Informatik GmbH Offen geblieben ist bis jetzt die Festlegung der Busparameter Ubertragungsgeschwindigkeit Abtastzeitpunkt die an jedem der beiden beteiligten Controller eingestellt werden mussen 1 Holen Sie zu diesem Zweck den Simulationsaufbau ber das Menu Ansicht in den Vordergrund und klicken Sie in diesem Fenster mit der rechten Maustaste auf das quadratische Bussymbol mit der Beschriftung Netzwerk CAN Netzwerk CAM CAN 1 Netzwerk Hardware Netzwerk aktiv Modul allen Netzwerkknaoben zuweisen Netzwerk Panel Umbenennen kanal zuordnen Abbildung 5 Kontextmen des Bussymbols 2 Wahlen
61. er Option 2 9 Umschaltung der Sprachversionen Konfiguration In der Standardeinstellung werden die deutsche und englische Sprachversion installiert Sie k nnen die Sprache f r alle Programmfunktionen und die Hilfe einstellen Men Konfiguration Optionen Erscheinungsbild Programm Sie m ssen CANoe schlie en und erneut ffnen damit die neue Spracheinstellung wirksam wird 2 10 Test der Softwareinstallation Voraussetzung Vorgehensweise Ergebnis 2 10 1 Option IP Option IP 14 F r einen Test der CANoe Softwareinstallation ist eine erfolgreiche Installation der CAN Hardware erforderlich 1 Verbinden Sie die beiden CAN Schnittstellen Ihrer CAN Hardware mit einem dem Bustyp entsprechend abgeschlossenen Kabel 2 Laden Sie die Beispielkonfiguration CANSystemDemo cfg im Demo Verzeichnis Demo_CAN_CN CANSystemDemo und starten Sie diese Bei erfolgreicher Installation k nnen Sie im Trace Fenster CAN Botschaften beobachten Dieser Funktionstest best tigt auch eine korrekte Installation der CAN Hardware Um Vollst ndigkeit und Funktionsf higkeit zu pr fen verwenden Sie eine der Beispielkonfigurationen im Verzeichnis EthernetLoopTest Ihres Applikationsdaten verzeichnisses Diese Konfigurationen verwenden eine durchgeschleifte Verbindung Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg Installation Wenn Sie zwei Ethernet Schnittstellen verwenden verbinden Sie diese mit
62. er Software beginnen Hinweis Einige Installationsprogramme starten den Activation Wizard automatisch sobald die eigentliche Programm Installation abgeschlossen ist ber die Hilfe Schaltfl che im Activation Wizard erhalten Sie weitere Hilfe zur Lizenz Aktivierung Ben tigen Sie weitere Unterst tzung bei der Lizenz Aktivierung z B wenn Sie keinen Internetzugang haben um die Lizenz online zu aktivieren wenden Sie sich an activation vector com 2 6 Vector USB Dongle Einsatzbereich So installieren Sie den USB Dongle 10 Der USB Dongle wird ben tigt gt f r die Option MOST Ausnahme Bei Verwendung von Hardware der XL Produktfamilie gt nach einem Upgrade von CANoe auf CANoe MOST mit XL Produktfamilie falls die Lizenz nicht nachtr glich auf der Karte gesetzt wurde gt f r das Optolyzer Integration Package OIP zum Betrieb f r MOST 150 und MOSTSO Hinweis Der USB Dongle darf bei der Installation nicht angeschlossen sein 1 F hren Sie zuerst die Setup Datei haspdinst exe aus Die Datei finden Sie auf der CD im Verzeichnis Drivers VectorDriverDisk Drivers 32_Bit Dongle Die Installation dieser Datei kann l ngere Zeit dauern bis max 4 min Wenn die Installation abgeschlossen ist m ssen Sie den Rechner neu booten Stecken Sie den USB Dongle in den USB Port ein Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg Installation Hinweis Sie k nnen f
63. ere CANoe Optionen 2 9 Umschaltung der Sprachversionen 2 10 Test der Softwareinstallation Option IP 2 11 Troubleshooting Hardware spezifische Fehlermeldungen Vector Informatik GmbH Version 8 1 Installation Seite 8 Seite 8 Seite 8 Seite 9 Seite 9 Seite 10 Seite 11 Seite 13 Seite 14 Seite 14 Seite 15 Installation Installation amp Schnelleinstieg 2 1 Allgemeines Uberblick Diese Anleitung beschreibt die Installation der Software sowie der zugehorigen Hardware Sie beschreibt zudem einen Funktionstest um die erfolgreiche Installation von Software und Hardware zu pr fen Info Die auf der CANoe CD enthaltenen Hardware Treiber k nnen neuer sein als die die der Hardware beiliegen Verwenden Sie stets die neuesten Treiber Hinweis Bitte beachten Sie dass die verwendete CAN Hardware f r den Betrieb mit CANoe freigeschaltet sein muss 2 2 Systemvoraussetzungen Reihenfolge der Installation Prozessor Speicher RAM Festplattenplatz Bildschirmaufl sung Betriebssystem Sonstiges Gehen Sie bei der Installation folgenderma en vor 1 Installation der Hardware gem der Beschreibung im Hardware Handbuch Wenn die Hardware bereits installiert ist f hren Sie zun chst ein Treiber Update durch N here Hinweise dazu sind im Anhang 2 Installation der Software F r den Betrieb von CANoe wird folgende Systemkonfiguration empfohlen Pentium 4 2 6 GHz Minimum Pentium Ill 1 GHz 1 GB Mini
64. ersetzt z B Treiber sowie Erweiterungen hinzugef gt z B Beispielkonfigurationen Es ist daher wichtig dass die eingesetzten Versionen zusammenpassen Das Installationsprogramm pr ft diese Kompatibilit t und warnt gegebenenfalls Bei Inkompatibilit t der Versionen sollte der Vector Support verst ndigt werden Neben den Beispielkonfigurationen des Standard CANoe werden optionsspezifische Beispiele in ein separates Verzeichnis installiert welches Sie bei der Installation angeben k nnen Dabei k nnen mehrere verschiedene Schicht 7 Optionen gleichzeitig in einem Verzeichnis installiert sein z B IS011783 J1939 und CANopen Vector Informatik GmbH Version 8 1 13 Installation Option IP A Option CANopen CANaero Installation amp Schnelleinstieg Bei der Installation der Option IP beachten Sie bitte die folgenden Hinweise Achtung W hrend der Installation wird die Netzwerkverbindung zur ckgesetzt Beenden Sie deshalb alle Anwendungen die eine Netzwerkverbindung ben tigen Hinweis W hrend der Installation der Option IP kann wiederholt die Meldung Die Software Vector Network Driver Miniport hat den Windows Logo Test nicht bestanden angezeigt werden Best tigen Sie den Dialog mit Installation fortsetzen Installieren Sie CANoe sofern noch nicht geschehen Gehen Sie dabei nach der beiliegenden Installationsanleitung vor Nach Abschluss der Installation startet automatisch die Installation d
65. es Merre Ges oar on dlee Zuweisung an das Bussignal bsSwitch msg bsSwitch SysGetVariablelnt sysvar MyNamespace svSwitch Ausgabe der Botschaft auf den Bus spontanes Senden SUN She msg Der zweite Netzknoten reagiert auf diese Botschaft Das CAPL Programm liest den Wert des Bussignals f r die Schalterposition und schaltet daraufhin das Lampchen an seiner Peripherie ein oder aus Beachten Sie dass der Wert des Schalters allein ber den Signalwert am Bus erfasst wird Der Wert der Systemvariablen svSwitch ist diesem CAPL Programm nicht bekannt Die Kommunikation zwischen beiden Knoten erfolgt also ausschlie lich ber den Bus Reaktion auf den Empfang der CAN Botschaft Ml on message Msgl Auslesen eines Bussignals und ii Serzen der Syscenyar adalen SyspbetVariablelnt sysvar 2MyNamespacee svLight this bsSwitenh Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour Starten Sie die Starten Sie nun in CANoe die Messung Immer wenn Sie den Schalter auf Panel 1 Messung einschalten leuchtet das Lampchen auf Wenn Sie ihn wieder ausschalten erlischt das Lampchen Das Trace Fenster zeigt Ihnen dazu sowohl die Buskommunikation Spontanes Senden der Botschaft Msg1 bei ndern der Schalterposition als auch die Werte der Systemvariablen svSwitch und svLight an Fe Se BR 2 amp D BAE Ar Initia Messautbau Filte Time Name Dir DLC Data Bussysteme Ei pie
66. essage is registered Therefore you must expand the CAPL program to include an event procedure of the type on message React to message event To do this click the Event Handlers entry in the left Browser tree using the right mouse button Open the submenu items New Event Handler CAN Then select the entry on message lt new message gt Now a procedure template appears in the Procedures Text Editor First replace the text lt newMessage gt by the symbolic name EngineData which you could also assume directly from the database via the shortcut menu item Message from Database During compilation the CAPL compiler replaces the symbolic name by the corresponding identifier 0x64 Now you only need to define which actions should be performed when the event occurs Since the program is to count messages the variable counter must be must be incremented whenever a message is registered The complete procedure appears as follows Vector Informatik GmbH Version 8 1 35 CANoe Tour Create a second on Message event procedure Create a on key event procedure Save and compile the program 36 Installation amp Quick Start Guide on message EngineData CoOUMWe fas output this The EngineData value is displayed in the Trace window To display all other measurement values in the Trace window insert the following procedure on message out puC ENTS Note Without this procedure the CAPL program woul
67. et W hlen Sie hier das CAN_83kBaud_2ch tcn Template aus und beenden Sie den Dialog mit OK Der Wizard wird f r diese Tour nicht ben tigt Vector Informatik GmbH Version 8 1 19 CANoe Einsteigertour Installation amp Schnelleinstieg see Vector CANoe MyConfiguration cfg Ansicht Start Konfiguration Werkzeuge _ Konfiguration neu 100 E Konfiguration laden Ctrl O la Konfiguration speichern Ctrl Konfiguration speichern unter Konfiqurations bersicht Konfigurationskommentar Verwendete Dateien Verwendete Datenbasen Zuletzt verwendete Konfigurationen Beenden Abbildung 3 Men punkt Datei Konfiguration neu 3 3 Einrichten des Busses Vorbereitungen Verbinden Sie die Kan le Ihres Bus Interfaces Verbinden Sie das Bus Interface mit Ihrem PC 20 Zur Inbetriebnahme von CANoe verwenden Sie einen von vorhandenen CAN Bussystemen unabh ngigen Versuchsaufbau mit lediglich zwei Netzknoten Als Netzknoten dienen dabei die beiden CAN Controller Ihres Bus Interfaces Als Bus Interface verwenden Sie z B CANcaseXL oder CANcardXLe Verbinden Sie zun chst die Kan le 1 und 2 am Bus Interface D Sub 9 Stecker F r eine High Speed Busankopplung ben tigen Sie ein Verbindungskabel CANcable mit zwei Busabschlusswiderst nden von je 120 Q Bei einer Low Speed Ankopplung ben tigen Sie lediglich ein 3 adriges Kabel um die den Busleitungen CAN High CAN Low und Masse zugeordneten Pins beid
68. exRay Frames amp PDUs OK Abbrechen Hie Abbildung 19 Konfigurationsdialog im Logging Zweig Aufzeichnungen im Binarformat BLF ben tigen weniger Platz auf Ihrer Festplatte sind aber nicht in einem normalen Texteditor lesbar Der Offline Modus des Programms bietet Ihnen die gleichen Auswertemoglichkeiten fur Aufzeichnungen in beiden Formaten Konfigurieren Sie die Die Angabe von Triggerbedingungen fur die Dateiaufzeichnung ist oft sinnvoll da der Triggerbedingungen Datenverkehr auf dem CAN Bus nicht w hrend der gesamten Messung interessiert sondern nur bestimmte zeitliche Intervalle etwa bei unplausiblen Signalwerten oder beim Auftreten von Error Frames Mit dem Kontextmen punkt Konfiguration des Logging Blocks ffnen Sie den Trigger Konfigurationsdialog Zum Aufzeichnen der gesamten Messung muss im Trigger Konfigurationsdialog der Modus Gesamte Messung ausgew hlt sein Starten Sie die Starten Sie nach der Konfiguration der Logging Datei und der Trigger Bedingungen Messung die Messung die Sie nach 20 Sekunden wieder stoppen ffnen Sie die Mit einem Doppelklick auf das Logging Dateisymbol ffnen Sie nun die Logging Datei aufgezeichnete ASCII Datei Neben den geloggten Botschaften erkennen Sie dass auch Statistikinformationen mit aufgezeichnet worden sind Diese Zeilen entsprechen genau den Informationen die w hrend einer Messung im Statistik Fenster dargestellt werden 3 10 Auswerten einer Logging Da
69. ffset 50 must be subtracted from the result The idle switch signal Idle Running in the last bit of the third data byte is a binary signal one bit which can assume the value 0 or 1 Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide CANoe Tour Display in the Trace window Note With the help of this symbolic information the data contents of messages can now be interpreted in CANoe Please note that this is only pratical if the database information describes the system that you are currently observing So you have to ensure that the database associated to the configuration matches the real network Now you can see in the Trace window the identifier and the symbolic message name Be EG fm BF 23 0 B Bi Ar Dita Name Di DLC Data EngineData ie 9 501696 2 1 eg 9 501706 1 a GearBoxlnfo Figure 15 Trace window Please note that the message you generated in the first task has the identifier 64 hex This agrees with the identifier of the message EngineData 3 7 Analysis of Signal Values in the Data Window Display of momentary signal values Unit 3 Add signals in the Data window Besides the use of symbolic message names the associated database can also be used to analyze signal values The purpose of the Data window menu View Data is to assist in the study of momentary signal values This explains why the Data window is initially empty in a new configuration The signal values to be di
70. folgenden Tabellen finden Sie die durchg ngig im ganzen Handbuch verwendeten Konventionen in Bezug auf verwendete Schreibweisen und Symbole Stil Verwendung fett Felder Oberfl chenelemente Fenster und Dialognamen der Software Hervorhebung von Warnungen und Hinweisen OK Schaltfl chen in eckigen Klammern File Save Notation fur Menus und Menueintrage CANoe Rechtlich gesch tzte Eigennamen und Randbemerkungen Quellcode Dateinamen und Quellcode Hyperlink Hyperlinks und Verweise lt Strg gt lt S gt Notation f r Tastaturk rzel Symbol Verwendung m Dieses Symbol gibt Ihnen Hinweise und Tipps die Ihnen die Arbeit mit CANoe erleichtern iS Dieses Symbol warnt Sie vor Gefahren die zu Sachschaden I f hren k nnen Dieses Symbol weist Sie auf Stellen im Handbuch hin an denen Sie weiterfuhrende Informationen finden Dieses Symbol weist Sie auf Stellen im Handbuch hin an denen is Sie Beispiele finden r Dieses Symbol weist Sie auf Stellen im Handbuch hin an denen E Sie Schritt f r Schritt Anleitungen finden Dieses Symbol finden Sie an Stellen an denen nderungsm glich E keiten der aktuell beschriebenen Datei m glich sind Dieses Symbol weist Sie auf Dateien hin die Sie nicht ndern u d rfen 4 Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg Einfuhrung Symbol Verwendung Dieses Symbol weist Sie auf Multimedia Dateien hin Dieses Symbol weist Sie auf Stellen im Handbuch hin an den
71. g Read out the value of the light switch Assign to the bus signal bsSwitch msg bsSwitch SysGetVariablelnt sysvar MyNamespace svSwitch Output message on bus spontaneous transmission output msg The second network node reacts to this message The CAPL program reads the value of the bus signal for the switch position and then activates or deactivates the indicator lamp at its periphery Please note that the switch value is only acquired via the signal value on the bus The value of the environment variable evSwitch is not known to this CAPL program That is the communication between the two nodes occurs exclusively via the CAN bus Reaction to receipt of the CAN message MI on message Msgl Read out a bus signal and set the system variable SysSetVariableInt sysvar MyNamespace svLight this bsSwitch Now start the measurement in CANoe Whenever you activate the switch on Panel 1 the indicator lamp illuminates Whenever you turn the switch off the indicator lamp goes off The Trace window shows you both the bus communication Spontaneous transmission of message Msg1 when the switch position changes and the values of system variables svSwitch and svLight Trace oc a SSESSA amp amp 0 9 BGs a M iitia Measurement Set lime lame ir DLC Data Bus Systems a ys sj 3 179865 1 EV CAN events bsSwitch r 3 179865 ov svLight 1 Variables amp Environment variable
72. gen Windows Starmen Einstellungen Systemsteuerung Vector Hardware gt File Save Configuration Report Hardware Problemen Detaillierte Bezeichnung z B Dell Latitude D830 Laptop oder Desktop PC Betriebssystem z B Windows XP SP 3 Prozessortyp und geschwindigkeit z B Core2Duo 1 6 GHz Gr e des Arbeitsspeichers z B 1 GB RAM V V V V V V Welche Probleme sind aufgetreten gt Mit welcher Konfiguration sind diese Probleme aufgetreten gt Bekommen Sie Fehlermeldungen in der Software z B im Write Fenster gt Firma Firmenadresse gt Name Nachname gt Abteilung gt Telefonnummer Faxnummer E Mail Adresse Vector Informatik GmbH Version 8 1 47 Get more Information Visit our Website for gt News gt Products gt Demo Software gt Support gt Training Classes gt Addresses www vector com vector
73. he current chapter and section gt inthe footer you see to which program version the user manual replies gt atthe end of the user manual you will find an index Reference Please refer to the online help for detailed information on all topics Conventions In the two following charts you will find the conventions used in the user manual regarding utilized spellings and symbols Style Utilization bold Blocks surface elements window and dialog names of the software Accentuation of warnings and advices OK Push buttons in brackets File Save Notation for menus and menu entries CANoe Legally protected proper names and side notes Source code File name and source code Hyperlink Hyperlinks and references lt STRG gt lt S gt Notation for shortcuts Symbol Utilization Here you can obtain supplemental information N This symbol calls your attention to warnings Here you can find additional information i Here is an example that has been prepared for you H Step by step instructions provide assistance at these points E Instructions on editing files are found at these points A This symbol warns you not to edit the specified file 4 Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide Introduction Symbol Utilization This symbol indicates multimedia files like e g video clips This symbol indicates an introduction into a specific topic n This symbol indicates text areas containing
74. i pa 2 410004 1 100 Msqi X 01 00 00 00 00 00 00 00 F CAN Ereignisse bsSwitch 1 2 410004 SV svLight 1 Variablen o Umgebungsvariablen F Systemwanablen Abbildung 26 Trace Fenster Verweis Eine Einf hrung in die CAPL Programmierung und eine ausf hrliche Darstellung der Programmiersprache finden Sie in der Online Hilfe Vector Informatik GmbH Version 8 1 45 Installation amp Schnelleinstieg Anhang A Support 4 Anhang A Support Sie ben tigen Hilfe Diese Informationen ben tigt der Support Software Hardware Computer Fehlerbeschreibung Kundendaten Sie k nnen unsere Hotline gt telefonisch unter der Rufnummer 49 711 80670 200 gt per eMail support vector informatik de gt oder per Web Formular unter Problem Report erreichen Bei Supportanfragen per Telefon E Mail Fax oder per Post ben tigen wir f r eine schnelle Bearbeitung folgende Angaben gt Detaillierte Bezeichnung der Software Hardware Ausf hrung und Versionsnummer z B CANoe 7 5 66 SP2 CANcardXL gt Seriennummer Hinweis Diese Informationen finden Sie in CANoe unter Hilfe Info genaue Bezeichnung der Hardware z B CANcardXL Seriennummer der Hardware Treiber und Firmware Version Diese Information finden Sie im Vector Hardware Konfigurationsdialog Windows Starmen Einstellungen Systemsteuerung Vector Hardware Bei gt Log Datei im Vector Hardware Konfigurationsdialog erzeu
75. ich are used in this user manual fails this should not mean that a name is free of third party rights gt Outlook Windows Windows XP Windows Vista and Windows 7 are trademarks of the Microsoft Corporation gt CANoe CANalyzer CANdb Editor J1939 CAPL Generator ProCANopen and CANeds are trademarks of Vector Informatik GmbH CANopen and CiA are trademarks of the CAN in Automation e V NMEA and NMEA 2000 are trademarks of the National Marine Electronics Association gt eclipse is subject to the Copyright of the Eclipse contributors and others 6 Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide 2 Installation This chapter contains the following information 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 Vector Informatik GmbH General System Requirements Installation Requirements Installation Procedure Notes on Activating a Software Based License Vector USB Dongle MOST MOST25 Use with Optolyzer Box MOST150 Use with Optolyzer G2 31500 MOST50 Use with Optolyzer G2 3050e Further CANoe Options Switching Language Versions Running the Test Option IP Troubleshooting Hardware Specific Error Messages Version 8 1 Installation page 8 page 8 page 8 page 9 page 9 page 10 page 11 page 13 page 14 page 14 page 15 Installation 2 1 General Overview Installation amp Quick Start Guide This manual describes the installation of the s
76. ie Werte von 1 bis 5 annehmen Sie l sen diese Aufgabe indem Sie eine zweite Visuelle Sequenz Botschaft 2 einf gen die die gew nschte Botschaft auf den Bus sendet Stoppen Sie vor dem Einf gen der zweiten Sequenz die Messung ber in der Symbolleiste Die Sequenz Botschaft 2 muss folgenderma en definiert werden Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour L Botschaft 2 O oo p aeaa i Befehl Objekt Operator Abstand ms gt Set CAN Raw Frame CA 500 Send CAN Raw Frame CAN1 0x3FC 0 Set CAN Raw Frame 1 0x3FC 500 Send CAN Raw Frame 1 0x3FC 0 Set CAN Raw Frame N1 0x3FC 3 500 Send CAN Raw Frame CAN1 0x3FC 0 gt Set CAN Raw Frame CAN 1 0x3FC 500 gt Send CAN Raw Frame CAN 1 0x3FC 0 gt Set CAN Raw Frame CAN1L 0x3FC gt Send CAN Raw Frame CAN1 0x3FC In Bearbertur Abbildung 11 Sequenz Fenster Botschaft 2 Aktivieren Sie mit in der Symbolleiste das periodische Wiederholen der Sequenz Botschaft 2 bis Messungsstopp Der Abstand legt die Zeit zwischen dem Abarbeiten des einzelnen Sequenz Schritte fest Aktivieren Sie mit D in der Symbolleiste das automatische Starten der Sequenz bei Messungsstart Starten Sie erneut die Messung indem Sie den Start Schalter in der Symbolleiste dr cken Weitere Neben dem Visual Sequencer stellt Ihnen CANoe die folgenden Bl cke als Datenquellen Datenquellen Typen bereit gt Mit dem
77. ie die Werte mit OK Reale Kanale Mit der Schaltfl che Treiber ffnen Sie den Vector Hardware Config Dialog in Applikationskan le welchem Sie die Applikationskan le den realen Kan len zuweisen k nnen 3 4 Daten senden Erstellen Sie eine Ihr aktueller Versuchsaufbau enth lt noch keine Datenquellen Richten Sie daher Datenquelle zuerst eine Datenquelle ein die Informationen zyklisch auf den Bus legt bung 1 Konfigurieren Sie CANoe so dass nach Messungsstart alle 100 Millisekunden eine CAN Botschaft mit dem Identifier 64 hex auf den Bus gesendet wird Die Botschaft soll dabei genau vier Datenbytes mit den Werten D8 hex D6 hex 37 hex und O enthalten i F gen Sie eine Sie l sen diese Aufgabe indem Sie eine Visuelle Sequenz einf gen die die Visuelle Sequenz ein gew nschte Botschaft auf den Bus sendet FE 1 ffnen Sie das Fenster Automatisierungssequenzen ber das Men af Ansicht Automatisierungssequenzen 2 Erstellen Sie ber Bin der Symbolleiste die Visuelle Sequenz Botschaft 1 i Automatisierungssequenzen Autostart Wiederholung E 4 einmal Fi ma Abbildung 7 Konfigurationsdialog fur Automatisierungssequenzen Hinweis Damit die Visuelle Sequenz abgespielt werden kann muss sie in E diesem Fenster aktiviert sein Da die Sequenz bis jetzt noch keine Daten enth lt wird sie als ung ltig Es angezeigt Die Visuelle Sequenz Botschaft 1 wird nach dem
78. ikations Kanale an Ihre Konfiguration an und weisen Sie die zus tzlichen Kan le den Hardware Interfaces zu Nr 4001 Die dem CAN Kanal X zugeordnete Hardware ist nicht vorhanden berpr fen Sie ob die PC Karte eingesteckt ist berpr fen Sie au erdem die PC Karte PCMCIA Einstellungen und die CAN Hardware Einstellungen in Ihrer Systemsteuerung Nr 4002 Fehler beim Treiberzugriff berpr fen Sie ob die PC Karte eingesteckt ist Ist dies der Fall wiederholen Sie die CAN Treiber Installation Software spezifischen Fehlermeldungen Eine Auflistung der Systemmeldungen im Write Fenster finden Sie in der Online Hilfe ber die bersichtseite des Write Fensters Veector Informatik GmbH Version 8 1 15 Installation amp Schnelleinstieg 3 CANoe Einsteigertour In diesem Kapitel finden Sie die folgenden Informationen 3 1 3 2 3 3 3 4 3 5 3 6 3 3 8 3 9 3 10 3 11 3 12 Vector Informatik GmbH Ubersicht Vorbereitungen Einrichten des Busses Daten senden Auswertefenster Arbeiten mit symbolischen Daten Analyse von Signalwerten im Daten Fenster Analyse von Signalverlaufen im Grafik Fenster Aufzeichnen einer Messung Auswerten einer Logging Datei Erstellen eines CAPL Programms Simulation verteilter Systeme in CANoe Erstellen der Datenbasis Definition von Systemvariablen Erstellen der Panels Erstellen der Netzknotenmodelle Version 8 1 CANoe Einsteigertour Seite 18 Seite 18 Seite 20
79. installation program tests this compatibility and issues a warning if appropriate If there is any incompatibility between versions you should get in touch with Vector Support In addition to the sample configurations of the standard CANoe option specific examples are installed in a directory A number of different level 7 options can be installed simultaneously in a single directory for example IS011783 J1939 and CANopen Please consider the following information if you install option IP Caution During installation the network connection is reset Close all applications which rely on network connections Note During installation of option IP the message The software Vector Network Driver Miniport has not passed Windows Logo Testing could appear several times Please confirm the dialog with Continue installation Install CANoe if you have not already done so Precede according to its installation instructions After installation of the standard version of CANoe the installation of the option starts automatically Vector Informatik GmbH Version 8 1 13 Installation Installation amp Quick Start Guide 2 9 Switching Language Versions Configuration The German and English language versions are installed by default during the standard installation You can set the language for all of the program features and the Help Menu Configuration Options Appearance Program You need to close and then r
80. k GmbH Insert Network Mode Insert CAPL Test Module Insert NET Test Module Insert ML Test Module Insert Generator Block AN Figure 22 Inserting network nodes in the Simulation Setup You open the configuration dialog of the nodes with the shortcut menu item Configuration Enter here the node name e g ECU 1 or ECU 2 Open with File the Open dialog Enter here the name of the CAPL program that simulate the functionality of the network node e g ECU1 CAN or ECU2 CAN Node Configuration Commer Settings Title ECU 1 Stabe simulated C off Execution Standard koi Hint The execution mode affects the real time behavior as well as the supported function range of the simulation node Some execubion modes require special hardware features For details please refer to the online help Node Specihcation DAL SECU can Figure 23 Configuration of network node ECU 1 in the Simulation Setup Double click on each node to open CAPL Browser for the particular CAPL program The first CAPL program belongs to a node at whose periphery there is a switch When the switch position changes the program acquires the new switch value and immediately outputs it on the bus Version 8 1 43 Start the measurement A4 Installation amp Quick Start Guide Reaction to change of system variable svSwitch on sysvar sysvar MyNamespace svSwitch Declare a CAN message to be transmitted message Msgl ms
81. m Eigenschaften Fenster f r den Static Text unter Appearance Text die gew nschte Beschriftung ein 9 Die Gr e des Panels ver ndern Sie indem Sie im Panel Designer den Rand des Panels anklicken und dann ziehen Gestalten Sie die Panels nicht gr er als unbedingt n tig da der freie Bildschirmplatz meist eine wertvolle sehr beschr nkte Ressource darstellt 10 Speichern Sie das Panel unter dem Namen SWITCH XVP ab Erstellen Sie das Das zweite Panel verf gt lediglich uber ein Lampchen als Anzeigeelement zweite Panel 1 ffnen Sie ber den Men punkt Datei Panel neu ein neues Panel und w hlen af Sie als Panel Namen LIGHT 2 Wahlen Sie aus der Toolbox des Panel Designers einen Switch aus und platzieren Sie ihn z B per Drag amp Drop auf dem Panel 3 Konfigurieren Sie den Switch im Eigenschaften Fenster unter Settings State Count als Anzeigeelement mit 2 Zust nden 4 Weisen Sie dem Switch im Eigenschaften Fenster unter Appearancellmage die Bild Datei MLEDRED_2 BMP aus dem CANoe Demoverzeichnis DEMO ADDON BITMAP LIBRARY GLOBAL INDICATOR 2STATES ZU 5 Weisen Sie per Drag amp Drop aus dem Symbol Explorer die Systemvariable svLight dem Switch zu 6 Beschriften Sie den Switch indem Sie das Anzeigeelement Static Text A aus der Toolbox ausw hlen und auf dem Panel rechts neben dem Schalter platzieren Geben Sie im Eigenschaften Fenster f r den Static Text unter Appearance Text die gew nschte Beschriftung ein
82. ment start the sequence Message 1 begins to cyclically send the window message EngineData with data bytes D8 D6 37 and 0 onto the bus According to the message description in the database the Data block in the Measurement Setup now interprets these byte values as engine speed temperature and idle switch and displays the appropriate signal values in the Data window in physical units Petrollevel Figure 17 Data window 30 Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide CANoe Tour With the help of the conversion formula in the database engine speed is shown in RPM while temperature is shown in degrees Celsius The values of all three signals remain constant over time since the message is constantly transmitted with the same data bytes D8 D6 37 and 0 3 8 Analysis of Signal Responses in the Graphics Window Analysis of signal responses Unit 4 Add signals in the Graphics window N as Display in the Graphics window While the Data window displays momentary signal values you can have the time responses of signal values displayed in the Graphics window menu View Graphics After the end of measurement the signal responses are available for study by user friendly analysis functions Configure the Graphics window so that signal values are displayed for message 3FC hex that is generated in the Simulation Setup The second message generated in the Simulation Setup is also described i
83. mum 512 MB 500 MByte 800 MByte Je nach verwendeten Optionen und ben tigten Betriebssystem Komponenten 1280x1024 Pixel Minimum 1024x768 Pixel Windows 7 32 und 64 Bit Windows VISTA Windows XP ab Service Pack 3 Zur Unterst tzung der COM Schnittstelle ben tigen Sie D COM in der Version 1 2 oder neuer Hinweis Zur Installation von CANoe sind Administrator Rechte erforderlich 2 3 Installationsvoraussetzungen Hinweis Bitte beachten Sie dass CANoe Version 3 0 und neuer nicht ber eine ltere CANoe Version CANoe Version 2 5 oder lter installiert werden darf Sie k nnen jedoch die alte Version von CANoe l schen das Verzeichnis der alten CANoe Installation umbenennen oder die CANoe Installation in ein neues Verzeichnis vornehmen Damit ist es m glich mit unterschiedlichen CANoe Versionen zu arbeiten Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg Installation Windows 7 VISTA Die Installation der Software ist f r diese Betriebssysteme identisch XP Installation der Fur zusatzlich ausgelieferte Optionen sind unter Umstanden weitere Optionen Installationsschritte notwendig Beachten Sie bitte die entsprechenden Installationshinweise im Handbuch der jeweiligen Option 2 4 Installationsvorgang So starten Sie die Gehen Sie folgenderma en vor um die CANoe Software zu installieren INNE 1 Legen Sie die CANoe Installations CD in ein CD Laufwerk ein Es erscheint ein Startfenster
84. n Auch die zweite im Simulationsaufbau erzeugte Botschaft ist in der zugeordneten Datenbasis beschrieben 1 ffnen Sie ber den Kontextmen punkt Signale hinzuf gen des Grafik Fensters den Symbolischen Auswahldialog In der Datenbasis erkennen Sie dass dem Identifier 3FC der symbolische Name GearBoxlInfo mit den Signalen Gear ShiftRequest und EcoMode zugeordnet ist 2 Wahlen Sie die Signale aus und bernehmen Sie sie mit OK ins Grafik Fenster Im Grafik Fenster erkennen Sie dass die Signale nun in die Legende auf der linken Fensterseite eingetragen sind Sie k nnen den zeitlichen Verlauf dieser Signale jetzt im Grafik Fenster beobachten Nach Start der Messung beobachten Sie dass das Signal Gear zyklisch die Werte 1 bis 5 annimmt w hrend die anderen beiden Signale zeitlich konstant bleiben F r eine sinnvolle Darstellung der einzelnen Schaltwerte eignet sich die Linien Verbindungsart Stufe 1 ffnen Sie ber den Kontextmen punkt Konfiguartion den Dialog Grafik Konfiguration W hlen Sie im Tree View auf der linken Seite den Punkt Signalliste aus Markieren Sie das Signal Gear ffnen Sie ber die Schaltfl che Linien den Dialog Linien St tzstellen berpr fen Sie dass die Verbindungsart Stufe ausgew hlt ist Schlie en Sie den Dialog Linien St tzstellen mit OK Schlie en Sie den Dialog Grafik Konfiguration mit OK Starten Sie die Messung Vector Informatik GmbH Version 8
85. n Generatorblock LAN einf gen Interaktiven Generatorblock einf gen Replay Block CAN einf gen Abbildung 2 Bussymbol im Simulationsaufbau mit Kontextmen des Busstrangs Das Datenflussdiagramm des CANoe Messaufbaus enth lt links die Verbindung zum Simulationsaufbau symbolisiert durch das gt gt Symbol und rechts verschiedene Auswertebl cke als Datensenken Die Daten flie en also von links nach rechts Zur Veranschaulichung des Datenflusses sind zwischen den einzelnen Elementen Verbindungsleitungen und Verzweigungen eingezeichnet Im Datenflussdiagramm erkennen Sie ferner kleine Quadrate FF An diesen Einf gepunkten Hot Spots k nnen Sie weitere Funktionsbl cke zur Manipulation des Datenflusses Filter Block Replay Block CAPL Programmblock mit benutzerdefinierbaren Funktionen einf gen Die Informationen die in jedem Auswerteblock eintreffen werden im zugeh rigen Auswertefenster dargestellt So stellt z B das Trace Fenster alle Informationen dar die im Trace Block ankommen w hrend das Grafik Fenster die Informationen anzeigt die im Grafik Block eintreffen Einzige Ausnahme ist der Logging Block dem kein Fenster sondern eine Datei zugeordnet ist in der die am Block eintreffenden Daten aufgezeichnet werden Stellen Sie sicher dass Sie diese Tour mit einer neuen Konfiguration beginnen indem Sie den Men punkt Datei Konfiguration neu ausw hlen Daraufhin wird der Dialog zur Auswahl eines Templates ge ffn
86. n Im Gegensatz zum Online Modus bietet Ihnen CANoe hier zus tzlich die M glichkeit die Messung verlangsamt Men Start Einzelschritt automatisch bzw lt F8 gt bzw im Einzelschrittbetrieb Men Start Einzelschritt Taste bzw lt F7 gt abzuspielen Im Offline Modus stehen Ihnen die gleichen Analysefunktionen wie im Online Modus zur Verf gung Somit werden in beiden Modi die aufgezeichneten Daten busnah im Trace Fenster dargestellt w hrend Sie im Grafik Fenster die Signalverl ufe der Aufzeichnung beobachten k nnen Nat rlich k nnen Sie in den Messaufbau auch Filter oder CAPL Programme einf gen um die Daten weiter zu reduzieren bzw zus tzliche benutzerdefinierte Analysefunktionen einzuf hren 3 11 Erstellen eines CAPL Programms Was bedeutet CAPL zur Erstellen eines CAPL Programms 34 CAPL ist eine ereignisorientierte Programmiersprache Jedes CAPL Programm besteht aus Ereignisprozeduren mit denen Sie auf u ere Ereignisse wie z B auf das Auftreten bestimmter Botschaften am Bus oder das Bet tigen von Tasten auf der PC Tastatur reagieren k nnen Der CAPL Browser wird in der Online Hilfe ausf hrlich beschrieben Er erm glicht es Ihnen mit seinen Teilfenstern Panes CAPL Programme schnell und einfach zu erstellen und zu bearbeiten Grunds tzlich k nnen Sie zum Erstellen von CAPL Programmen auch Ihren eigenen Texteditor verwenden CAPL Programme sind normale ASCII Dateien mit der Standard Dat
87. n sondern Sie m chten auch kontrollieren wie viele Botschaften gez hlt worden sind Die Ausgabe soll auf Dr cken der Taste lt a gt ins Write Fenster erfolgen Sie m ssen also eine weitere Ereignisprozedur fur das Ereignis Dr cke Taste lt a gt definieren F gen Sie nun dem CAPL Programm eine Keyboard Ereignisprozedur hinzu Klicken Sie dazu links im Browser Baum den Eintrag Event Handler mit der rechten Maustaste an ffnen Sie die Untermen punkte Neuer Event Handler on key lt newKey gt Im Prozedurtext Editor erscheint ein neuer Prozedurrumpf den Sie folgenderma en ausf llen on key a write d Botschaften EngineData gezaehlt counter Die Formatangabe d bezieht sich auf die Ganzzahlvariable counter die hinter dem Komma angegeben ist Der Format String entspricht weitgehend dem der C Funktion printf Das Programm ist damit fertig Speichern Sie es ab und starten Sie dann den Compiler mit der Taste lt F9 gt uber das Hauptmenu Compiler Kompilieren oder uber die Symbolleiste Falls Sie beim Erstellen des Programms einen Fehler gemacht haben offnet sich ein Meldungsfenster das Ihnen den Fehler anzeigt Doppelklicken Sie auf diese Fehlermeldung um an die Stelle zu gelangen an welcher der Fehler aufgetreten ist Nachdem Sie ihn korrigiert und die Programmdatei erneut abgespeichert haben kompilieren Sie das Programm erneut Wenn das Programm fehlerfrei kompiliert werden konnte erscheint in der Stat
88. n older CANoe version CANoe Version 2 5 or older You can however delete the old CANoe version rename the old CANoe installation or install the new CANoe installation in a new folder This makes it possible to work with different CANoe versions Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide Installation Windows 7 VISTA XP Installation of the software is identical for these operating systems Installing the Options Further installation steps may be required if your package includes additional options Please refer to the installation notes in the manual for each option 2 4 Installation Procedure How to start the installation Installation types Standard Custom Please take the following steps to install the CANoe software 1 Place the CANoe installation CD in your CD drive A Start window will appear in which you can start the software installation If your computer is not configured to automatically launch Start windows you can launch the installation program SETUP EXE from the Application folder on the CD 2 Follow the installation program instructions Note For the installation you need administrator rights If you are logged on as standard user with standard user rights you have to start the CANoe installation program Setup exe from the Explorer directly A dialog is opened to be logged on as a user with administrator rights After that the installation routine can b
89. n the associated database 1 Open with the Graphics window s shortcut menu item Add Signals the Symbol Selection dialog In the database it will be apparent to you that the identifier 3FC is associated with the symbolic message name GearBoxinfo containing the signals Gear ShiftRequest and EcoMode 2 Choose the signals and confirm them with OK In the Graphics window you see that the signals are now entered in the legend on the left side of the window You can now observe the time responses of these signals in the Graphics window After the measurement start you observe that the signal Gear cyclically assumes values from 1 to 5 while the other two signals remain constant over time For a useful display of the single gear values the Step connection type of the lines is suitable 1 Open with the Graphics window s shortcut menu item Configuration the Graphic Configuration dialog 2 Choose the item Signal List in the tree view on the left side Mark the Gear signal 4 Open the Lines Samples dialog via the Lines button Check if the connection type Steps is selected Close the Lines Samples dialog with OK Close the Graphic Configuration dialog with OK Start the measurement Vector Informatik GmbH Version 8 1 31 CANoe Tour zur Installation amp Quick Start Guide Ch Graphics Lae ie ES ws te alas Er KT Name lf MM EcoMode lf E Gear Died shiteequest Idle Shift_Request_
90. ngine is off but moving 7 Run extemal test application J Passed 7 Additional requirements of the Window System Some Failed 2 7 CAPL Check Request Reponse Timing J Passed 7 x Ambiguous open and close Y x Open and comfort close BT m ol el aal Ge el al a 31 A ae i lt a jo a 3 gt a i i 7 mi m lt a Mr Installation amp Quick Start Guide j Version 8 1 English F vector Imprint Vector Informatik GmbH Ingersheimer Strake 24 D 70499 Stuttgart The information and data given in this user manual can be changed without prior notice No part of this manual may be reproduced in any form or by any means without the written permission of the publisher regardless of which method or which instruments electronic or mechanical are used All technical information drafts etc are liable to law of copyright protection Copyright 2013 Vector Informatik GmbH Printed in Germany All rights reserved Installation amp Quick Start Guide Table of contents 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 3 1 3 2 3 3 3 4 3 5 3 6 3 3 8 3 9 3 10 3 11 3 12 Introduction About this User Manual 1 1 1 Access Helps and Conventions 1 1 2 Certification 1 1 3 Warranty 1 1 4 Support 1 1 5 Registered Trademarks Installation General system Requirements Installation Requirements Installation Procedure Notes on Activating a Software Based Li
91. nu of the bus symbol 2 Choose the shortcut menu item Network Hardware and open the Network 3 Vector Informatik GmbH Hardware Configuration dialog Network Hardware Configuration CAN 1 CAN setup 1 Use database settings Preview synchronization edge ae Hi Acknowledge on Options J1939 Settings nominal bit timing bus i a mine a Baud rate kBaud 100 0 wa Hardware Sync nr synchronized bit timing internal Bus timing register 0 49 Bus timing register 14 Clock frequency 16000 Samples Frescaler 10 Sampling Point BTL Cycles 10 10 10 10 g g ak Cancel Undo Driver Help Figure 6 Network Hardware Configuration dialog After then select and Setup from the configuration dialog for the first controller CAN 1 and type in the value for the baud rate 100kBaud This makes sense for both high speed and low speed buses CANoe recommends default values for the controller registers which you accept with OK Version 8 1 21 CANoe Tour Real channnels application channels Installation amp Quick Start Guide When you do this besides the transmission speed of 100 kBaud you also implicitly define other controller parameters Sampling point BTL cycles and synchronization jump width For the overall system to function properly the same exact values must be assumed for the second controller CAN 2 When you exit the dialog accept the values with OK With the Drive
92. of the file icon located at the far right of the logging branch you can open the configuration dialog Here you can enter the file name for the measurement log as well as its format Select ASCII format ASC here Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide CANoe Tour Configure the trigger conditions Start the measurement Open the log file Logging File Configuration File File D Programme Vector CANOED ASC ls Edt File format Ascii file format ASC asc Options Increment logging file name automatically Wam on overwrite file V At each start of measurement Show data lost waming message After each trigger block Load MOF file in CANgraph after measurement Extended incrementation Extended Mode 1 Please define which events and in which format the events shall be written to the logging file F Log intemal events IEF ea s i W Log intemal tigger events Voss Log statistic and watermark events Absolute time format Tl Log values of variables symbolic Relative time format Write FlexRay Frames amp POUs Cena re Figure 19 Configuration dialog in the Logging branch Logs in binary format BLF take up less space on your hard drive but they cannot be read in normal text editors The program s offline mode offers you the same evaluation options for logs in both formats Besides the file icon you can also specify trigger conditions fo
93. oftware and associated hardware It also describes the functional test used to check whether the software and hardware are installed correctly Note The hardware drivers on the CANoe installation CD may be newer than the ones shipped with the hardware Please use always the latest drivers Note Please note that the CAN hardware you intend to use must be enabled for use with CANoe Please see the appendix for more information on enabling 2 2 System Requirements Installation sequence Please carry out the installation in the following order Processor Memory RAM Hard disk space Monitor resolution Operating system Other 1 Install the hardware as described in the hardware manual Once the hardware is installed please carry out a driver update For more information on this please see the appendix 2 Install the software The following system configuration is recommended for use with CANoe Pentium 4 2 6 GHz minimum Pentium Ill 1 GHz 1 GB minimum 512 MB 500 MByte 800 MByte Depending on options used and operating system components required 1280x1024 pixels minimum 1024x768 pixels Windows 7 32 und 64 Bit Windows VISTA Windows XP at least with Service Pack 3 You will need D COM version 1 2 or later to support the COM interface Note Administrator rights are needed to install CANoe 2 3 Installation Requirements Note Please note that you cannot install CANoe Version 3 0 or later over a
94. pace MyNamespace Close the dialog with OK Reference You can find detailed information about system variables in the online help 3 12 3 Creating Panels Node s periphery A separate application the Panel Designer is provided with CANoe for creating the node s periphery In the current configuration one separate panel must be created for each of the two nodes zur Reference Please refer to the online help for a detailed introduction into the Panel Designer Create the first panel The first panel has a single control a switch You can start the Panel Designer by activating the al button on the CANoe toolbar This ensures that the database is available A new panel will be opened automatically Enter in the Properties grid under Panel Panel Name the name of the panel SWITCH After saving the panel this name will be displayed on the opened panel s top left Select a Switch from the Toolbox of the Panel Designer and place it on the panel e g via drag amp drop Configure the Switch in the Properties grid under Settings State Count as a control element with 2 states Assign the Switch in the Properties grid under Settings Mouse Activation Type the Left mouse button Assign the Switch in the Properties grid under Appearancellmage the image file IORGPUSHBUTTON 2 BMP from CANoe s demo directory DEMO ADDON BITMAP LIBRARY GLOBAL Switches 2STATES To display system variable in the Symbol Explorer you have to open
95. r button you can open the Vector Hardware Config dialog There you can assign the application channels to the real channels 3 4 Transmitting Data Set up a data source Your current test setup still does not have a data source So set up a data source which places information on the bus cyclically Unit 1 Insert a visual sequence L m 22 Configure CANoe so that after the measurement start a CAN message with identifier 64 hex is sent on the bus every 100 milliseconds In this case the message should contain exactly four data bytes with the values D8 hex D6 hex 37 hex and 0 You can solve this task by inserting a visual sequence which transmits the message on th bus 1 Open the Automation Sequences window via the menu View Automation Sequences 2 Create the visual sequence Message 1 with i in the toolbar E Automation Sequences Autostart Repetition 4 once Figure 7 Configuration dialog for automation seuqnces Note To execute this visual sequence it must be activated in this dialog Since the sequence has no contents yet it is displayed as invalid EX The visual sequnce Message 1 will opened in the Visual Sequencer automatically after it is created Enter the data of the message in the first raw as follows Command Set CAN Raw Frame selection via list field Version 8 1 Vector Informatik GmbH Installation amp Quick Start G
96. r erhalten Zur Konfiguration des Trace Fensters stehen Ihnen ferner verschiedene Schaltfl chen in der Symbolleiste zur Verf gung Mit k nnen Sie beispielsweise vom feststehenden Modus in den Scroll Modus umschalten in dem jede im Trace Block eintreffende Botschaft in eine neue Zeile geschrieben wird Mit t schalten Sie von absoluter auf relative Zeitdarstellung um In der relativen Zeitdarstellung wird in der ersten Spalte die Zeitdifferenz zwischen zwei aufeinander folgenden Botschaften Sendeabstand dargestellt In diesem Darstellungsformat finden Sie nat rlich auch leicht den Sendeabstand wieder den Sie vorhin im Visual Sequencer eingetragen haben 100 Millisekunden Statistik Fenster Als weiteres busnahes Fenster bietet Ihnen das CAN Statistik Fenster Men Ansicht CAN Statistics eine Gesamt bersicht ber den Busdatenverkehr Hier werden die Gesamth ufigkeiten von Daten Remote und Error Frames die Busauslastung sowie die Zust nde der CAN Controller angezeigt Da in unserem Fall eine Botschaft alle 100 ms und die zweite Botschaft alle 500 ms gesendet werden liegt die Gesamth ufigkeit aller Botschaften bei 12 Frames pro Sekunde Bei einer durchschnittlichen Datenl nge von etwa 70 Bit pro Frame sollten in der Sekunde ca 12 70 840 Bit auf den Bus gelangen Bei einer Baud Rate von 100 kBit sec liegt folglich die Buslast in unserem Beispiel in der Gr enordnung von einem Prozent Hi CAN Statistics CAN Kan
97. r den Vector USB Dongle auch nach einem aktuellen Treiber a im Vector Download Center suchen Installieren Sie dann den Treiber uber das heruntergeladene Programm Setup exe 2 7 MOST Voraussetzungen Zum Betrieb der Option MOST benotigen Sie folgendes gt Eine Lizenz f r Option MOST die an die Hardware oder einen USB Dongle gebunden ist gt Zus tzlich f r MOST150 fur den Betrieb mit einem Optolyzer G2 31500 Eine Lizenz f r das Optolyzer Integration Package OIP von Vector auf einem USB Dongle oder einer gleichzeitig angeschlossenen Vector Hardware gt Zus tzlich f r MOST50 f r den Betrieb mit einem Optolyzer G2 3050e Eine Lizenz f r das Optolyzer Integration Package OIP von Vector auf einem USB Dongle oder einer gleichzeitig angeschlossenen Vector Hardware Hinweis Das Optolyzer Integration Package OIP deckt sowohl den Betrieb mit l MOST150 als auch MOST50 ab Verweis Hinweise zur Installation von MOST Hardware erhalten Sie ggf in den zugehorigen Installationsanleitungen 2 7 1 MOST25 Betrieb mit Optolyzer Box Voraussetzungen Zum Arbeiten mit der Optolyzer Box ben tigen Sie folgendes gt eine Optolyzer Box Firmware Version 2 50 oder h her gt das Optolyzer ActiveX Control inkl neuer Lizenznummer f r Optolyzer Installation 1 Installieren Sie das Optolyzer ActiveX Control auf Ihrem PC Vector Informatik GmbH Das entsprechende Installationsprogramm zu Ihrem Betriebssystem finden Sie auf der CD
98. r file logging in the Logging block This is often advisable since frequently it is not the data traffic on the can bus over the entire measurement period that is of interest but rather only certain time intervals e g when there are implausible signal values or when error frames occur Open the Trigger Configuration dialog with the Logging block s shortcut menu item Configuration To log the entire measurement the Entire measurement mode musdt be selected in the Trigger Configuration dialog After the configuration of the log file and the trigger condition start the measurement which you stop again after 20 seconds Now with a double click on the log file icon you can open the logged ASCII file Besides the logged messages you can see that statistical information was also logged These lines correspond exactly to the information that is displayed in the Statistics window during a measurement 3 10 Evaluating a Log File Play back recorded data Log files in ASCII format can indeed be viewed with text editors but often it is more sensible to utilize the capabilities that CANoe provides for offline analysis of log files Vector Informatik GmbH Version 8 1 33 CANoe Tour Unit 6 Activate the offline mode Choose the data source Deactivate the logging branch Play back the log file Analysis in offline mode Installation amp Quick Start Guide Play back the log file recorded for the last task in offline
99. r im Simulationsaufbau erzeugten Botschaft EngineData ID 64 hex angezeigt werden F gen Sie im Daten Um im Daten Fenster Signalwerte anzeigen zu lassen m ssen Sie im Daten Fenster Fenster Signale Signale hinzuf gen hinzu 1 ffnen Sie ber den Kontextmen punkt Signale hinzuf gen des Daten E Fensters den Symbolischen Auswahldialog Die Baumstruktur innerhalb des Dialoges erm glicht es Ihnen gezielt nach einem Signal zu suchen Jede Datenbasis erh lt je einen Zweig f r Signale Botschaften und Knoten 2 W hlen Sie die Botschaft EngineData aus und selektieren Sie alle Signale dieser Botschaft Vector Informatik GmbH Version 8 1 29 CANoe Einsteigertour Installation amp Schnelleinstieg Ausgabe im Daten Fenster 30 Auswahl von Signalen EES Tx Knoten Botschattsname Signale J Botschaften fl Led ABSdata ie Diag Request ied Diag_Response DiagRequest_Motor ie DiagResponse_Motor E EngineData ww EngForce EngPower EngSpeed Eng Temp Idle Running Petrol Level A Aktuelle Zykluszeit y Gesamtzahl a Maximale Zyklusz a Minimale Zykluszeit Ayi Mittlere Zykluszeit 9 34 EngineDatalEEE IM H E amp PowerTrain 0x64 Abbildung 16 Auswahl von Signalen im Symbolischen Auswahldialog 3 Ubernehmen Sie die selektierten Signale mit OK ins Daten Fenster Im Daten Fenster sind nun die Signalnamen eingetragen Nach Messungsstart beginnt die Sequ
100. requencies of data remote and error frames bus loading and CAN controller status Since in our case one message is sent every 500 ms and the second message every 200ms the total frequency of all messages is 12 frames per second With an average data length of about 70 bits per frame approx 12 70 840 bits are placed on the bus in one second At a baud rate of 100 kBit sec the bus load in our example would be on the order of magnitude of one percent i CAN Statistics CAN Channel CAN All Statistic Busload Min Send Dist ms Bursts total Burst Time ms Frames per Burst Std Data frs Std Data total Bt Data frs Ext Data fotal Std Remote frs Std Remote total Ext Remote fir s Bit Remote total Errorframes frs Ermorframes total Chip State Transmit Eror Count Receive Eror Count Transceiver Errors Seorecse see eg a a a ha a eol se 2 2 2 1 ll ll rire a Figure 12 Statistics window Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide CANoe Tour 3 6 Working with Symbolic Data Symbolic description of data zur Assign a database Before we discuss the remaining windows in detail let us have a look at the capabilities offered by CANoe for the symbolic description of data Of primary interest in the analysis of CAN systems besides bus related information such as me
101. rmationen zum Datenbasis Editor Wir wollen an dieser Stelle der aktuellen CANoe Konfiguration eine vorgegebene Datenbasis zuordnen mit der sich die Datenbytes der im Visual Sequencer erzeugten Botschaften interpretieren lassen Die Datenbasis POWERTRAIN DBC befindet sich im Demo Verzeichnis DEMO CAN CN CANSYSTEMDEMO CANDB Der Speicherort des Demo Verzeichnisses h ngt von der Installation ab Im Optionendialog wird Ihnen der Speicherort angezeigt Men Konfiguration Optionen Allgemein Speicherorte Speicherort fur Benutzerdateien 1 Stoppen Sie die Messung um die Datenbasen hinzuf gen und ffnen Sie den Simulationsaufbau ber das Menu Ansicht Simulationsaufbau Im der Systemansicht des Simulationsaufbaus sehen Sie eine Baumdarstellung der aktuellen Konfiguration kt Simulationsaufbau J Netzwerke Neinwerk 4 CAN Netzwerke A CAN ae Knoten CAN 1 fl Generatoren I Interaktive Genera LJ Replay Blacke O Datenbasen Kan le IM Abbildung 13 Simulationsaufbau mit Systemansicht rechts 2 Selektieren Sie dort Datenbasen und ffnen Sie mit dem Kontextmenupunkt Hinzuf gen den Dialog Offnen W hlen Sie in diesem Dialog die oben genannte Datenbasis aus 4 Mit der Schaltfl che OK wird die neue Datenbasis f r den aktuellen Bus bernommen und im der Systemansicht dargestellt Vector Informatik GmbH Version 8 1 27 CANoe Einsteigertour Installation amp Schnelleinstieg Offnen Sie nun die Dat
102. s install the CAN W LAN gateway first according to the installation instructions of the manufacturer Then configure the CAN W LAN gateway in the Vector Hardware Config dialog Windows Control Panel Vector Hardware The installation and the connection to the CAN W LAN gateway is correct if a short description is displayed for the module instead of Remote Bus 1 or Remote Bus 2 14 Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide Installation 2 11 Troubleshooting 2 11 1 Hardware Specific Error Messages Overview Procedure Procedure Procedure zur Some error messages pertain to faulty settings in the CANcardXL driver configuration dialog You can open the driver installation dialog via the Windows menu under Start Settings Control Panel Vector Hardware No 4000 CAN channel X is not defined in the Vector Hardware Configuration Please adapt the count of the application channels in your configuration and assign the additional channels to the hardware interfaces No 4001 The hardware associated with CAN channel X is not present Verify your PC card is inserted Check the PC card PCMCIA settings and CAN hardware settings in your control panel No 4002 Driver access failure Verify your PC card is inserted If so please re install the CAN device driver Software specific error messages You can find a list of system messages in the Write window in the online help via the over
103. s window shows you information arriving at the Graphics block The only exception is the Logging block which is not assigned a window but rather a file in which the data arriving at the block are logged Make sure that you begin this tour with a new configuration by selecting the menu item File New Configuration The dialog for choosing a template will be opened In this dialog choose the CAN_83kBaud_2ch tcn template and close the dialog with OK The wizard is not needed for this tour Vector Informatik GmbH Version 8 1 19 CANoe Tour Installation amp Quick Start Guide see Vector CANoe MyConfiguration cfg View Start Configuration Tools New Configuration Load Configuration Ctrl O save Configuration Ctri Save Configuration As Configuration Overview Configuration Comment Files Used Database Overview Recent Configurations Figure 3 Menu item File New Configuration 3 3 Setting up the Bus Preparations To start up CANoe use a test setup that is independent of existing CAN bus systems with only two network nodes The two CAN controllers of your bus interface can serve as the network nodes As bus interface you can use e g CANcaseXL or CANcardXLe Connect channels on First connect channel 1 and 2 on the bus interface D Sub 9 connectors For a high the bus interface speed bus interface you need a connection cable CANcable with two bus termination resistors of 120 Q each For a low spe
104. sion 2 50 or later gt The Optolyzer ActiveX control incl new Optolyzer license number Installation 1 Install the Optolyzer ActiveX control on your PC The installation program that corresponds to your operating system is in the Drivers Optolyzer OptoControl folder on the CD CANoe was developed and tested using the Opto Control version provided on the CD We therefore urgently recommend that you install these driver versions 2 Inthe Windows Control Panel set the COM port settings for all COM ports that are to be used with an Optolyzer Box to 115200 8 n 1 Hardware Install the MOST option in a folder of your choosing 4 Activate General information Settings Synchronize Hardware in the Vector driver configuration dialog 5 Choose the speedgrade MOST25 and the HW type Optolyzer for the MOST channel in the CANoe hardware configuration dialog Configuration Network Hardware 6 Enter the Optolyzer ActiveX control license code on the Interface page in the Vector Informatik GmbH hardware configuration dialog Version 8 1 11 Installation Optolyzer Professional 2 7 2 MOST150 Installation Installation amp Quick Start Guide If you install Optolyzer Professional you can enter the ActiveX control license number via this tool It is then saved in the Windows registry You can save multiple license numbers in this way They are all checked when a connection to the Optolyzer Box is created Use with Optolyzer G2
105. splayed are exclusively dependent upon information from the database You as the user must decide which signal values should be displayed Configure the Data window to display the signal values of the message EngineData ID 64 hex that is generated in the Simulation Setup For the display of signal values in the Data window you have to add signals 1 Open with the Data window s shortcut menu item Add Signals the Symbol Selection dialog The tree view of the dialog allows you to search for a specific signal Each database gets one branch each for signals messages and nodes 2 Choose the EngineData message and select all signals of this message Vector Informatik GmbH Version 8 1 29 CANoe Tour Installation amp Quick Start Guide Selection of Signals Name H Signals B a Messages isl ABSdata Diag_Request i l Diag_Response il DiagRequest_Motor DiagResponse_ Motor mE 3 EngForce Engine Data EngPower iat Engine Data EngSpeed Engine EngineData Eng Temp Engine Engine Data Idle Running Engine Engine Data PetrolLevel Engine EngineData Average cycle Ay Curent cycle gh Maximum cycle Minimum cycle Total count Eal E Engine DatalEEE 4 IM mE i E a El Database Name PowerTrain Id x54 Comment Figure 16 Selecting Signals with the Symbol Selection dialog 3 Close the dialog with OK Now the signal names are entered in the window Display in the Data After the measure
106. ssages error frames and message frequencies is information on useful data i e signals such as RPM temperature and engine load which are provided by individual controllers and are sent on the bus with the help of CAN messages To describe this information symbolically CANoe provides you with the database format DBC and a database editor with which you can read create and modify CAN databases Reference Please refer to the CANdb manual and the CANdb online help included with the CANoe product for further information on the CANdb Editor At this point we would like to assign a delivered database to the current CANoe configuration This database will be used to interpret the data bytes of the messages generated by the Visual Seqencer You can find the database POWERTRAIN DBC in the demo directory DEMO CAN CN CANSYSTEMDEMO CANDB The location of the demo directory depends on the installation In the Options dialog you can find the file location here Menu Configuration Options General File Locations Location of user data 1 Stop the measuremen to assign the database and open the Simulation Setup with menu View Simulation Setup In the system view of the Simulation Setup you can see a tree representation of the current configuration kde Simulation Setup F Networks Network CAN Networks CAN CAN T Nodes Generators Interactive Genera Replay blocks Databases Channels Figure 13 Simulation Setup wi
107. t the second node Therefore two system variables must be created in the database e g svLight and svSwitch F 1 Create the two system variables in the System Variable Configuration dialog E Open this dialog with the menu item Configuration System Variables 2 Open the Add System Variable dialog with Add Each system variable belongs to one particular name space and is uniquely defined therein upper and lower case letters are distinguished Enter the following values for the system variable svLight gt Namespace MyNamespace gt Name svLight gt Data type Integer Vector Informatik GmbH Version 8 1 39 CANoe Tour Installation amp Quick Start Guide Edit System Variable No Value Table Used only for analysis purposes Fam a Figure 20 Definition of system variable svLight 3 Close the dialog with OK F System Variables configuration System Varables Variable Min Z Max Read only Source El MyNamespace re Figure 20 Defined namespace with system variable 4 Open the Add System Variable dialog via Add again and define the second system variable svSwitch Enter the following values gt Namespace MyNamespace gt Name svSwitch gt Data type Integer 40 Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide CANoe Tour Close the dialog with OK Now you can see that both system variables are assigned to the names
108. tei Aufgezeichnete Logging Dateien im ASCII Format lassen sich mit Texteditoren betrachten Oft ist es Daten wiedergeben aber sinnvoller die M glichkeiten auszunutzen die CANoe zur Offline Analyse von Logging Dateien bereitstellt Vector Informatik GmbH Version 8 1 33 CANoe Einsteigertour Installation amp Schnelleinstieg Ubung 6 Aktivieren Sie den Offline Modus Wahlen Sie die Datenquelle Deaktivieren Sie den Logging Zweig Spielen Sie die Logging Datei ab Analyse im Offline Modus Spielen Sie die der letzten Aufgabe aufgezeichnete Logging Datei im Offline Modus ab und beobachten Sie den Signalverlauf im Grafik Fenster Um die Aufgabe zu losen schalten Sie CANoe zunachst in den Offline Modus Wahlen Sie dazu in der Symbolleiste Offline aus oder schalten Sie mit einem Doppelklick auf das Online Offline Symbol im Messaufbau zum Offline Modus um Alle Konfigurationseinstellungen werden in den Offline Modus ubernommen Im Messaufbau wird nun das Bussymbol deaktiviert dargestellt Stattdessen wird das Dateisymbol als Datenquelle aktiviert W hlen Sie die Logging Datei der letzten Aufgabe ber den Kontextmen punkt Konfiguration des Dateisymbols links im Messaufbau Unterbrechen Sie nun die Verbindung zum Logging Block Dies k nnen Sie durch einen Doppelklick auf den Hot Spot oder ber dessen Kontextmen machen Mit der lt F9 gt Taste oder mit E in der Symbolleiste k nnen Sie nun die Messung abspiele
109. ter sowie einen Messaufbau und einen Simulationsaufbau die Ihnen den Datenfluss anzeigen und ber die Sie CANoe gleichzeitig konfigurieren k nnen Sie erreichen alle Fenster des Programms ber das Men Ansicht in der Hauptmen zeile se Vector CANoe MyConfiguration ctg Ansicht Start Konfiguration Werkzeuge Fenst Messautbau Simulationsautbau Testaufbau Automatisierungssequenzen Write Symbol Explorer Trace Daten Grafik Oszilloskop Bas s Diagnose Signalgeneratoren und Signal Replay Startwerte ge Ga k jr Ei m 4 him i CAN Statistik Alle Fenster Platzierungen sichern a Abbildung 1 Hauptmenuzeile Men Ansicht Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour Simulationsaufbau Messaufbau Auswertefenster Legen Sie eine neue Konfiguration an Im Simulationsaufbau wird das Gesamtsystem mit dem CAN Bus und allen Netzknoten grafisch dargestellt Der simulierte Bus wird dabei durch eine rote horizontale Linie reprasentiert Die daruber liegende blaue Linie symbolisiert den realen Bus Beide Busse sind uber die Interface Hardware miteinander verbunden Um Daten aus CANoe auf den Bus zu senden f gen Sie im Simulationsaufbau ber das Kontextmen des Busstrangs Sendeblocke ein die mit der roten Linie verbunden werden m ssen Metzwerk CAN Netzknoten einf gen CAPL Testmodul einf gen HET Testmodul einf gen ML Testmodul einf ge
110. th system view on the right 2 Select Databases in the system view and open the Open dialog with the shortcut menu item Add Select in this dialog the above mentioned database 4 If you click on the OK button the new database is accepted for the current bus and displayed in the system view Vector Informatik GmbH Version 8 1 27 CANoe Tour 28 Installation amp Quick Start Guide Now open the database using the Y button on the toolbar The CANdb Editor is opened and the contents of the database POWERTRAIN DBC is shown in the Overall View window of the CANdb Editor EER Vector CANdb Editor PowerTrain dbc Overall View Fi File Edit View Options Window Help 73 BekmsBank amp keean Stet Networks Name ID ID Format DLC Byte Tx Method nen EI ABSdata CQ CAN Standard ag is er Diag Request 0x200 CAN Standard rae El Diag Response 0x400 CAN Standard etwork nodes Ba DiagRequest_ Ox601 CAN Standard i ABSdata 0xC9 DiagRespons 0x508 CAN Standard EngineData Oxo4 CAN Standard Diag_Request 0x200 3 A Diag_Response 0x400 H EngineDatalEEE 0x66 CAN Standard not_used not_used not_used not_used not_used not_used not_used DiagRequest Motor 0x501 EngineStatus 0x65 CAN Standard not_used DiagResponse_Motor 0x508 GearBoxInfo OxSFC CAN Standard not_used EngineData 0x64 Ignition_Info Oi CAN Standard i EngSpeed NM_Engine 0x516 CAN Standard EngTemp NM_Gateway 0514 CAN
111. the Filtered by list box and select Environment Data Then drag the environment variable svSwitch from the Symbol Explorer to the Switch on the panel Label the switch by selecting the Static Text display element from the Toolbox and place it on the panel to the right of the Switch Enter the label in the Properties grid of the Static Text under Appearance Text You can change the size of the panel by clicking the panel border and dragging it Try not to size panels any larger than necessary since available screen space is usually a very limited and hence valuable resource 10 Save the panel under the name SWITCH XVP Vector Informatik GmbH Version 8 1 41 CANoe Tour Installation amp Quick Start Guide Create the second The second panel has a small simple lamp as an indicating element panel N 1 Open a new panel with the menu item File New Panel and select as panel name af LIGHT 2 Select a Switch from the Toolbox of the Panel Designer and place it on the panel e g via drag amp drop 3 Configure the Switch in the Properties grid under Settings State Count as a display element with 2 states 4 Assign the Switch in the Properties grid under Appearancellmage the image file MLEDRED 2 BMP from CANoe s demo directory DEMO ADDON BITMAP LIBRARY GLOBAL INDICATOR 2STATES 5 Assign the the environment variable svLight to the Switch via drag amp drop from the Symbol Explorer 6 Label the switch by selecting th
112. the CAN bus and all network nodes The simulated bus is represented by a red horizontal line The blue line beneath it symbolizes the real bus The two buses are connected to one another via the interface hardware e g CANcardXL To transmit data from CANoe onto the bus insert transmit blocks in the Simulation Setup which must be connected by the red line Network CAN Insert Network Node Insert CAPL Test Module Insert NET Test Module Insert XML Test Module Insert Generator Block TAN Insert Interactive Generator Block Insert Replay Block CAM Figure 2 Bus symbol in Simulation Setup with shortcut menu of the bus lines The data flow diagram of the CANoe Measurement Setup has a connection to the Simulation Setup on the left symbolized by the gt gt symbol and various evaluation blocks on the right serving as data sinks That is the data flow is from left to right Connection lines and branches are drawn between the individual elements to clarify the data flow In the data flow diagram you will also recognize small black rectangles I At these insertion points hot spots you can insert additional function blocks for manipulating the data flow Filter block Replay block or CAPL program blocks with user definable functions The information arriving at each evaluation block is displayed in the block s evaluation window For example the Trace window displays all information arriving at the Trace block while the Graphic
113. thernet port numbers This access must not be blocked by any installed firewall Spy 27998 Node 27999 On PC side the port numbers are allocated automatically If you need certain port numbers you have to adjust the file CAN ini For Optolyzer G2 3050e MOST50 at channel 1 you ll have to edit the following section fOptolyzerGZ 50 4 MyPortNode MyPortspy Version 8 1 Vector Informatik GmbH Installation amp Quick Start Guide Installation 2 Choose the speedgrade MOST50 and the HW type OptoLyzer OL3050e for the MOST channel in the CANoe hardware configuration dialog Configuration Network Hardware 3 Enter the IP address of the Optolyzer on the Interface page If the Optolyzer is already connected you can determine its IP address at the push of a button 4 On the Setup page also select the network adapter to which the Optolyzer is connected 2 8 Further CANoe Options A Overview Option IP A Option CANopen CANaero Caution Please do not install or uninstall the corresponding options by manually copying or deleting files The programs use COM mechanisms of MS Windows that must be registered or deregistered by the installation program The options are designed as an add on to the standard CANoe A number of standard CANoe files are replaced during installation e g driver and others are added e g sample configurations It is therefore important for the versions that they match properly The
114. uide CANoe Tour Object gt Channel CAN1 gt Identifier 0x64 gt Selector all data L Object selection Set CAN Raw Frame Figure 8 Object properties of a raw message Operator Operand D8 D6 37 00 Wait 0 4 Tosend the message cyclically you have to enter in the secon row the following settings Command Set CAN Cyclic Raw Frame selection via list field Objekt gt Channel CAN1 gt Identifier 0x64 gt Selector not available Operator cycle time ms Operand 100 Wait 0 5 Activate with in the toolbar the replay of the sequence Message 1 until measurement stop 6 Activate with D in the toolbar the automatic start of the sequnce at measurement start E Message 1 BE aaa Command Object Operator Operand Wait ms e Set CAN Raw Frame CAN 1 0 64 DS D6 37 00 ai Set CAN Cydic Raw Frame CAN1 0x64 cyde time ms 100 l Sequence valid Stopped Figure 9 Sequnce window of Message 1 Reference You can find detailed information about the Automation Sequences or the Visual Sequencer in the online help Vector Informatik GmbH Version 8 1 23 CANoe Tour Save your configuration Start the measurement Display in the Trace window Unit 2 Insert a second visual sequence 24 Installation amp Quick Start Guide Before you start the measurement you should save the configuration that you have prepared to this point with the menu command File S
115. uszeile unten im Hauptfenster des Browsers die Meldung Successfully compiled Version 8 1 Vector Informatik GmbH Installation amp Schnelleinstieg CANoe Einsteigertour Ausgabe im Write Starten Sie nun die Messung Die Sequenz Botschaft 1 beginnt daraufhin Fenster Botschaften vom Typ EngineData zyklisch zu senden die nun von Ihrem Programm gez hlt werden Immer wenn Sie die Taste lt a gt dr cken werden Sie den Text n Botschaften EngineData gezaehlt im Write Fenster sehen wobei n die Anzahl der gez hlten Botschaften bezeichnet 3 12 Simulation verteilter Systeme in CANoe Arbeiten mit Um das funktionale Busverhalten von Netzknoten zu modellieren stellt Ihnen CANoe Systemvariablen Systemvariablen zur Verf gung mit denen Ereignisse und Zust nde der Systemumgebung u erer Druck Temperatur Schalterstellungen beschrieben werden Sie k nnen diese Zust nde d h die Werte der Systemvariablen auf frei gestaltbaren Panels sowohl beobachten als auch gezielt ver ndern Zum Arbeiten mit Systemvariablen verwenden Sie in CAPL den Ereignisprozedurtyp on sysvar Reagiere auf Systemvariablenanderung Zum Lesen und Schreiben der Systemvariablenwerte dienen z B die CAPL Funktionen SysGetVariablerInt und SysSetVariableInt Diese Sprachmittel und der symbolische Zugriff auf die verschiedenen in der Datenbasis definierten Variablen erm glichen die einfache prototypische Erstellung von Netzknotenmodellen Ubung 8 Erstellen
116. view page of the Write window Vector Informatik GmbH Version 8 1 15 Installation amp Quick Start Guide 3 CANoe Tour In this chapter you find the following information 3 1 3 2 3 3 3 4 3 5 3 6 3 3 8 3 9 3 10 3 11 3 12 Overview Preparations Setting up the Bus Transmitting Data Evaluation Windows Working with Symbolic Data Analysis of Signal Values in the Data Window Analysis of Signal Responses in the Graphics Window Logging a Measurement Evaluating a Log File Creating a CAPL Program Simulation of Distributed Systems in CANoe Creating the Database Definition of System Variables Creating Panels Creating Network Node Models Vector Informatik GmbH Version 8 1 CANoe Tour page 18 page 18 page 20 page 22 page 25 page 27 page 29 page 31 page 32 page 33 page 34 page 3 a s CANoe Tour Installation amp Quick Start Guide 3 1 Overview Operating concept If you are starting up CANoe for the first time and its functionality and controls are still completely new to you the following tour will help you to become familiar with its operating concept and its most important features For this tour you will first set up a very simple CAN bus where CANoe assumes the roles of both sender and receiver Set up CANoe In the first step CANoe is configured as a data source i e as a transmitting station You will then learn about of CANoe s analysis options by studying the generated data

Download Pdf Manuals

image

Related Search

Related Contents

Pour lire l`article  Objectif Jeunes  Service Manual - Allied Systems Company  3M Digital Projector X64w  Avanti BCA516SS drink cooler  520 PN  KOHLER K-11415-CP Installation Guide  UR 8400  1.製品安全に対する基本方針 2.体制整備及び取組について  LED 照明器具に関する課題と施工標準化の検討報告  

Copyright © All rights reserved.
Failed to retrieve file