13.07.2015 Views

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Accessing the busNormally, the transmit task is disabled after opening the transmit list. The transmittask does not transmit any messages in the disabled state, even if the list containscreated and started transmit objects.The transmit task of a transmit list can be enabled or disabled by calling the functioncanSchedulerActivate.The function can be used to start all transmit objects simultaneously by first startingall transmit objects with canSchedulerStartMessage and only then enablingthe transmit task. It is also possible to stop all transmit objects simultaneously, bysimply disabling the transmit task.The transmit list can be reset with the function canSchedulerReset. The functionstops the transmit task and removes all registered transmit objects from the specifiedcyclic transmit list.3.2 Accessing the LIN bus3.2.1 OverviewThe following diagram shows an example of an IXXAT interface board with oneLIN and two <strong>CAN</strong> connections.IXXAT interface board<strong>CAN</strong> controller 1<strong>CAN</strong> controller 2 LIN controller 1Control unitMonitor<strong>CAN</strong> 1<strong>CAN</strong> 2LIN 1Fig. 3-8: IXXAT interface board with one LIN and 2 <strong>CAN</strong> connections.As shown in Fig. 3-8 for the LIN connection 1, this consists of a control unit andone or more message monitors. The <strong>CAN</strong> connections available in addition to theLIN connection do not play a role in the following description.The control unit of the LIN connection is accessed with the function linControlOpen.The function linMonitorOpen opens a message monitor.Both functions expect the handle of the device or of the interface board in thefirst parameter and in the second parameter the number of the LIN connection.For connection 1 the number 0 is defined, for connection 2 the number 1 and soon.28Copyright IXXAT Automation GmbH C-API Programming Manual, Version 1.5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!