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 bust zTransmit object 21Transmittask23495678Transmit object 1(wCycleTime = 2)(wCycleTime = 3)Transmitlist0123456789101112131415Fig. 3-6: Transmit task of the cyclic transmit listThe transmit task can always send only one message per tick. A time slot thereforecontains only one transmit object. If the first transmit object is created with acycle time of 1, all time slots are occupied and no further objects can be created.The more transmit objects are created, the longer their cycle time must be. Therule for this is: the sum of all 1/wCycleTime must be less than one. If, for example,a message is to be transmitted every 2 ticks and another message every 3ticks, then 1/2 + 1/3= 5/6 = 0.833 and thus a permissible value.The example in Fig. 3-6 shows two transmit objects with the cycle times 2 and 3.When creating transmit object 1, the time slots 2, 4, 6, 8 etc. are occupied.When subsequently creating the second object (cycle time = 3), collisions occurin the time slots 6, 12, 18 etc., as these time slots are already occupied by object1.Such collisions are resolved by the transmit task in that it uses the next free timeslot in each case. Object 2 from the previous example thus occupies the time slots3, 7, 9, 13, 19 etc. The cycle time of the second object is thus not always observedexactly, which leads to an inaccuracy in the example of ± 1 tick.The time accuracy with which the individual objects are transmitted also dependson the general bus load, as the time of transmission becomes increasingly inaccurateas the bus load increases. Generally, accuracy decreases with increasing busload, shorter cycle times and increasing number of transmit objects.26Copyright 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!