CAN-AC1_AC2-104

所属分类:通讯编程
开发工具:Visual Basic
文件大小:93KB
下载次数:73
上传日期:2006-05-13 20:24:25
上 传 者mochen5460
说明:  VB编写的CAN通信程序,是一个基本的例子示范程序。
(VB prepared by the CAN communication program is a model example of the basic procedures.)

文件列表:
CAN-AC2-104 V4.0x (0, 2001-06-26)
CAN-AC2-104 V4.0x\canac104.bas (8232, 2001-06-25)
CAN-AC2-104 V4.0x\canac104.dll (115200, 1999-02-12)
CAN-AC2-104 V4.0x\Can_Object.frm (7417, 2001-06-22)
CAN-AC2-104 V4.0x\Can_test.frm (49090, 2001-06-27)
CAN-AC2-104 V4.0x\Can_Test.frx (1492, 2001-06-27)
CAN-AC2-104 V4.0x\Can_Test_ac104.exe (102400, 2001-06-27)
CAN-AC2-104 V4.0x\Can_Test_ac104.vbp (1116, 2001-06-27)
CAN-AC2-104 V4.0x\CAN_Values.frm (20212, 2001-06-21)
CAN-AC2-104 V4.0x\Common.bas (6905, 2001-06-27)

README.TXT Visual Basic 6.0 Sample Application for CAN AC2-104 Card Build: 3 Date: 27.06.2001 Copyright: Softing AG - 2001 ################################################################################ CONTENTS: --------- 1.- About the Sample Application 1.1.- List of files provided 1.2.- Visual Basic and the CAN API 1.3.- Release Notes 2.- Running the Application 2.1.- System Requirements 2.2.- Initial Settings 3.- Hotline ################################################################################ 1.- About the Sample Application ---------------------------- This sample application demonstrates the use of the CAN AC2-104 Card's API on Visual Basic 6.0 by running following testing modes: Fifo, Dynamic Object Buffer and Static Object Buffer Mode. A Test mode and a Baudrate (from a given list) can be chosen at start. Sending and Receiving of data frame (with random or default data bytes) as well as remote frames are enabled for Can Channels CAN1 and CAN2. Data and remote frames can have random or default assigned Identifiers of standard or extended Length. These options can be defined through an additional window (CanForm). Objects Functions are also displayed in a additional window if needed (ObjectForm). Common administrative function calls (like get_time) are provided on the main window (MainForm). Some buttons and functions are enabled/disabled on run-time depending on the card/device being tested and running test mode. 1.1.- List of files provided ---------------------- Common files for all cards/devices and specific files for this card/device are needed to develop each sample application under Visual Basic. Common Files for all cards/devices: readme.txt This File common.bas Definition of Common Constants, Variables, Functions and Routines (module) CAN_Test.frm Main Window; it also contains main source code Can_Values.frm Display Window for sender and receiver Channel Data Values Can_Object.frm Display Window for Object Functions Can_Test.frx Visual Basic Form binary file Card/Device's specific Files: Can_Test_ac104.vbp Visual Basic Project canac104.bas (module) API-DLL function declarations Can_Test_ac104.exe Sample Application Canac104.dll Card's DLL 1.2.- Visual Basic and the CAN API ---------------------------- Wrapper functions have been defined in Visual Basic for all CAN API functions using the same name (like CANPC_reset_chip(); see Can_Test.frm). One important limitation in Visual Basic is the absence of unsigned variables, many of them are used on the DLL. This can have some influence over routines, specially by passing values to the DLL and by displaying values on screen (negatives values instead of expected positive values). To avoid it there are some functions provided to convert unsigned and signed Values from and to the DLL (like UnsignedtoLong and LongToUnsigned; see common.bas). 1.3.- Release Notes ------------- Sample for VB 3.0: basic functions, run only on windows 3.1x. Deprecated. Sample for VB 5.0: with many bugs, just used to describe DLL-access from VB. It runs on Fifo Mode, with given CAN Channel and ID only. Sample for VB 6.0 (build 1): all wrapper functions have been revised and in many cases the parameters where redefined to conform the API-DLL declarations. The whole functionality of the DOS-Console Application (Can_Test.exe) is now enabled: Channel CAN and ID, as well as other parameters, can be now defined by the user. Sample for VB 6.0 (build 2): Hexadecimal return codes are now provided for CANPC_initialize_board. CANPC_read_ac evaluation is fixed to avoid infinite loop. A restart of the test is still necessary. Sample for VB 6.0 (build 3) - This Release: some minor errors have been fixed and code optimized; readme.txt file for all cards are now being generated using XML and XSL. 2.- Running the Application ----------------------- 2.1.- System Requirements ------------------- The Sample Application needs to access the card/device 's - specific 32bit DLL in the local directory for proper operation: Canac104.dll This Program has been successfully tested under Windows 2000, NT 4.0 and Windows ***. The application's Main Window (MainForm) needs a 800x600 screen resolution to be completely shown. To display all three Windows a 1024x768 screen resolution at least is required. 2.2.- Initial Settings ---------------- The following are general Settings: Baudrate:1 Mbit (can be changed before Test starts) Test mode: FIFO (can be changed before Test starts) No acceptance filter Output control default (CAN High Speed) Furthermore a Timer has been added to enable receiving of frames after 5 seconds (Parameter TIMER_INTERVAL, see common.bas), if no other events take place in the meantime. 3.- Hotline ------- Softing AG Richard-Reitzner-Alle 6 85540 München Hotline: +49 (0)89 456 56 /326 /327 /337

近期下载者

相关文件


收藏者