Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 5 out of 5     Rate this Document

Using Kvaser CAN Cards With LabVIEW

Primary Software: LabVIEW Development Systems>>Professional Development System
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
How can I program a Kvaser CAN card with LabVIEW ?


Solution:
The procedure for programming the Kvaser CAN card is as follows:

1. Install your Kvaser hardware.

Since the VI library calls the canlib32.dll directly, you must install Kvaser's CANlib driver package and your Kvaser hardware.These drivers come with the Kvaser CAN cards.

2. Install Kvaser's CANlib Software Developer's Kit (SDK).

Install CANlib SDK, which is the transparent interface to the Kvaser hardware platforms. It is Kvaser's API to Kvaser hardware. Installing the SDK should not be necessary for using the VI library but provides useful documentation. The API provides overview documentation on the order of the calls. This is useful when looking at the VI calls since they are just wrappers for the API. Download the CANlib SDK from attachment below named Kvcanvi_60.zip.

3. Kvaser's VI library for LabVIEW.

Double click on our VI library.  This will launch the kvCanTree.vi and kvCanQuickStart.vikvCanTree.vi is a list of all the VI's in the library when you select show diagram from the menu.  kvCanQuickStart.vi is the example program which provides a simplified bus monitor. This is the easiest way to see what Kvaser's VI library for LabVIEW is capable of. Please reference the KVcanLIB double click.jpg for a graphical representation.

You can use KvCanExample1.vi for receiving and transmitting CAN data. You can also see the block diagram to understand the programming and make your own customized programs.

Related Links:
Kvaser Download Page: LabView Library for Kvaser CAN hardware
Kvaser Main Page

Attachments:
kvcanvi_60.zip
KVcanLIB doule click.jpg




Report Date: 02/25/2008
Last Updated: 03/03/2008
Document ID: 4IO9FD6

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit