VCI V2.20 LabWindows Manual 1.1 (English)
VCI V2.20 LabWindows Manual 1.1 (English)
Support
In case of unsolvable problems with this product or other IXXAT products
please contact IXXAT in written form by:
Fax: +49 (0)7 51 / 5 61 46-29
e-Mail: [email protected]
Copyright
Duplication (copying, printing, microfilm or other forms) and the electronic
distribution of this document is only allowed with explicit permission of
IXXAT Automation GmbH. IXXAT Automation GmbH reserves the right to
change technical data without prior announcement. The general business
conditions and the regulations of the license agreement do apply. All rights
are reserved.
1 Overview .....................................................................................5
2 System requirements ..................................................................6
3 The VCI under LabWindows/CVI .................................................7
3.1 Creating an ActiveX Controller for the VCI......................... 7
3.1.1 Starting ActiveX Controller Wizard ............................................7
3.1.2 Selection of the VCI-Wrapper as ActiveX Server..........................8
3.1.3 Saving the ActiveX Controller ....................................................8
3.1.4 Advanced options.....................................................................9
3.1.5 Generation of ActiveX Controller completed ..............................9
3.2 Using the VCI-Wrapper ActiveX Controller ....................... 11
3.2.1 Definition of a user interface ...................................................11
3.2.1.1 Create new user interface ..........................................11
3.2.1.2 Creating a control element ........................................12
3.2.1.3 Configuring a control element ...................................13
3.2.1.4 Code generation .......................................................14
3.2.2 Inserting VCI-Wrapper function calls .......................................15
3.2.2.1 Selecting the type library ...........................................15
3.2.2.2 Selecting the interface ...............................................15
3.2.2.3 Selection of interface method ....................................16
3.2.2.4 Parameterization of the function call .........................17
3.2.2.5 Subsequent modification of the function call .............18
3.2.3 Registering the Rx-Event Callback function...............................19
3.2.3.1 Selecting the type library ...........................................19
3.2.3.2 Selecting the Event Callback registration ....................19
3.2.3.3 Selecting the Event interface......................................20
3.2.3.4 Selecting the registration function for the Event.........20
3.2.3.5 Parameterization of the registration call-up................21
3.3 Example application VCI Demo ........................................ 22
1 Overview
The Virtual CAN Interface (VCI) is an application programming interface (API) for
all IXXAT CAN-interfaces.
The VCI-API is a function interface, i.e. the user is provided with functions ex-
ported from the VCI-DLL.
It is theoretically possible under LabWindows/CVI to work directly on this VCI-API.
However, this is somewhat awkward and complicated. We therefore recommend
installing the VCI-Wrapper, which provides the VCI-API via a COM-interface as an
ActiveX component. As an ActiveX, the VCI can be integrated very quickly and
easily into a LabWindows/CVI project.
LabWindows/CVI
VCI Wrapper
VCI-API
VCI-DLL
2 System requirements
• VCI V2.10 (or higher)
• VCI Wrapper V2.0
or
• VCI V2.14 (or higher – VCI Wrapper integrated)
In the following dialog the name of the source code file has to be entered. It is
important to switch to “Add To Current Project“ under “Target Files“. Otherwise
LabWindows/CVI creates a new project and closes the current one.
Acknowledge the dialog with the “OK“-button.
Now click on the button “Insert Function Call“ in the toolbar. The function call is
then inserted in the previously marked line.
Now click on the button “Insert Function Call“ in the toolbar. The registration
call-up is then inserted in the previously marked line.
ATTENTION:
LabWindows/CVI works with absolute paths. In order to translate the
project without problems, it may be necessary to individually adapt the
absolute path information in the files VCIDemo.cws and VCIDemo.prj.
VCIDemo displays the received CAN telegrams in the list box. Every time the
“Transmit“-button is activated, a telegram is transmitted with ID 100 and 8 data
bytes.