Download VSCAN Manual

Transcript
4
TOOLS
4.10 LabVIEW
LabVIEW (short for Laboratory Virtual Instrumentation Engineering Workbench) is a
platform and development environment for a visual programming language from National
Instruments. This section shows one possible way to use vs can api.dll with LabVIEW.
Specially prepared example (see Figure 16) can be found on the product CD9 . It lets the
user to send and read CAN frames after opening the channel with appropriate bitrate.
You can send CAN frames using the left panel. After configuring your CAN frame just
press Write On/Off” Button and frames will be sent each second. The incoming frames
”
will be shown on the right panel one per second if any available.
Figure 16: Example Application
4.10.1 Open CAN Channel
The OpenChannel.vi has following input parameters:
• COM Port string
• speed as a number between 1 and 8 (as in Section 3.2.3).
Output parameters:
• return error code of VSCAN Open() or VSCAN Ioctl() routines
• CAN channel handle.
9
see VSCAN API x y z.zip\Wrapper\Languages\LabVIEW
Version 1.7
VSCAN Manual
53