Home
PISO-CAN200-D/T PISO-CAN400
Contents
1. Er Setup PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 12 3 Configurator Description Configurator is the PISO CAN200 400 hardware setting toolkit for LabVIEW CAN driver It can be found in the following path DAQPro PISO CAN LabCAN Configurator It must be executed before using the LabVIEW CAN driver After user executes the configurator exe the ini file will be produced in the setup folder whose path is the same as configureator exe These ini files will provide configuration information about CAN baud rate arbitration ID data length and etc Afterwards LabVIEW CAN driver uses the configuration information to implement the VI block in LabVIEW environment 3 1 Operation Interface Configurator is a simple and easy to use configuration tool Figure 3 1 is the Configurator user interface It has only seven buttons and the functions of these buttons are explained as follow CAN DAG Paice DAS Co LTD Configurator We K L A erh Close ICP DAS Co LTO No 111 Kuang Fu N Ad Ham Chu Industrial Fark Huk ou Shang HSINCHU 303 Taiwan TEL 886 3 5973366 FAX HD 2DO 24371 E mail senviceticodas com EXE Version 0 02 Sep 16 2005 Figure 3 1 Configurator Interface PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 13 CAN Button CAN This button includes the main configuration function It help users to set the
2. Description This VI receives all the CAN messages whose arbitration IDs are previously defined in receive process Function VI Standard VI SubExpCANin vi Express VI ExpCANin e Parameter chProcessName input standard Input all process name that will be used latter Each two different processes name need a comma mark to separate themselves Language input standard There are two kinds of languages German and English to select for error message The input value 0 is German 1 is English The default value is 0 error in input The input parameter is an Error In 3D cluster of form panel If this parameter is not used the default parameter status is ok If the status is ok the function will start to initialize the LabVIEW CAN driver And if the status is error the function will not initialize the CAN driver error out output The output parameter is an Error Out 3D cluster of form panel If some error happens the error state will be outputted FifoPercent output This parameter will output a integer to tell users how many record of CAN message store in the receive data buffer of LabVIEW CAN driver When the parameter value is over 100 the buffer is overflow and some data will be lost MprValOut output When CAN message is received the data part of this CAN message will be passed by this parameter The output data will match the data format setting of the process made by Con
3. Amplitude 2 DTD Send l 0 so JC ei In the block diagram window right click to import a VI Select User Library gt ICPDAS CAN and then there are four VIs to be able to use oHiFunctions FA ee igene Bibliotheken Express ICFDAS CAN Eigene Bibliotheken Evpt ohlot ExpCANStart ExplahStop Put one ExpCANStart one ExpCANStop one ExpCANin and two ExpCANout VI on the block diagram window And the settings of these four VI are shown below ExpCANStop VI does not need to configure CAN RTR Register Processes Version 0 05 i Selection Processes _ EE ExpCANStart parameter setting CAN RTR Receive Process Selection Version 0 05 DMIRR 1 RTA 0 200 ExpCANin parameter setting PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 42 CAN RTR Send Process Selection Version 0 05 a xX ExpCANout1 parameter setting CAN RTR Send Process Selection Version 0 05 i E xj Selection ExpCANout2 parameter setting Add a While Loop VI a Case Structure VI a Simulate Signal VI and an indicator VI with FifoPercent type The function of Case Structure is that when the ready parameter of ExpCANin VI returns 1 the Waveform Chart will start to show the data wave The Simulate Signal provides a sequential sine wave to ExpCANout1 VI to output CAN message into the CAN network The Simulate Signal setting is shown below
4. Ce Manual Selection C Import from EAN ob Decoding Type Signed Bute Start fo D Format Ze Intel Scale Integer Channel for 128 178 for 127 at C Motorola CAN send channel setting window RTR Receive RTR Receive O01 CAN Port Specification Channel Fort CANO gt Ge 11 6n 2 04 29 Bit 2 08 Telegram Number Arbitration ID i 190H RTR receive channel setting window x CAN Port CAN Specification Channel cani 11 Bit 2OA C 29 Bi 208 Telegram Number Arbitration ID P 190 RTR send channel setting window PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 23 Process CAN Configuration Hardware Channels Process ES Pro cess New Process for Data RTR Receive New Process for CAN Send New Process for RTR Send Expand Branch Collapse All Branches Search Continue search F3 Rg CANVATR Receve pan CAN Send P HIH Send not usable After finishing i Channel configuration Process interface can enable the send or receive channels defined in i Channel window and use these channels in the LabVIEW CAN VI or subVI Right click the process icon aid Process there are three kinds of process to be able to add A Data RTR Receive process can include more than one CAN receive channel or RTR receive channel But a CAN send process RTR send process can use only one CAN send ch
5. Tools Help e fach Gpsearch Folkers ca We H tel H Address G CANIPCI PISO CANZ00_400 LabVIEW CAN driver sel Go DN 6 6 LablaN exe Readme Eet WhabWew txt 3 object s PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 7 Step 2 Wait until the installation wizard has prepared Labt AN Setup Hrepzame Setup Peace wil whe the Let sf held Witeed prepares the pup LebCAN Setup is preparing the Inataka Wian wach wall guide pou tinough the neat of the Le Welcome bo the bnatallShield Wierd for Labt an The Inches hed MWosd will ictal LabOAN on pour computer To ciir chek Ned Step 4 Select the folder where the driver will be installed and click Next button to continue Here default path is used PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 8 Hess to Install the Program The wizard i ready to begn inctallation 9 Step 7 After finishing the process click Finish to complete the installation Libh Ay Sea InstallShield Wir ad Complete Tha mtaishi Wied hs macera misked Lal AN Lkck Fineth te godt Hep nard Step 8 When finishing the LabVIEW CAN driver installation the LabCAN folder will be found at the Start menu shown as below fessional i e e V f i d Elan 5
6. architecture PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 4 1 3 Configurator Specification Supported for Windows 2000 XP Supported PISO CAN 200 400 D T Two languages interface German and English The range of sample rate is from 50Hz to 5000Hz Block size range is from 1 to 4096 Provide Intel mode and Motorola mode for remote CAN device 1 4 LabVIEW CAN Driver Specification Support LabVIEW 7 1 Driver is only for Windows 2000 XP platform Provide 8 kinds of CAN baud rate such as 10K 20K 50K 125K 250K 500K 800K and 1M Allow user defined CAN baud rate Two languages interface German and English Support both CAN 2 0A and CAN 2 0B specification Provide debug mode for receive module PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 5 2 Software Installation The LabVIEW CAN DLL driver is the CAN function collections for the PISO CAN200 400 CAN card used on LabVIEW 7 1 environment on Windows 2000 XP Before users use this driver to develop the CAN interface the PISO CAN200 400 driver must be installed because the LabVIEW CAN driver need to call the function of PISO CAN200 400 driver The driver architecture is shown in Application the following Figure2 1 Windrvr6 sys LabVIEW CAN Driver PISO CAN Ea 200 400 Driver KP_CAN sys Figure 2 1 Driver concept of LabVIEW CAN driver PISO CAN200 PI
7. i gt Configure Simulate Signal Simulate Signal Simulate Signal setting PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 43 After finishing the steps above the block diagram looks like this figure E Untitled 1 Block Diagram File Edit Operate Tools Browse Window Help bo P error cue j Le Simulate Signal pe 3 While Loop EE EE Soe Zeie pm E Convert from Dynamic Data 44 When the program is done the block diagram is display as follows IB 1xCAN_1IxXRTR Express y i Block Diagram File Edit Operate Tools Browse Window Help ExpCANStart pEANI CAN Send ID 100 b Language mm error in po error drale error out We LL E HIR Send ID 200 Pp dvalue error out SS O ExpCANStart Include DM1CRP DM1CTP and DM1RTP processes CG ExpCANin Use the process DM1CRP CAN RTR Receive Process G Waveform Chart can show the data wave and the FifoPercent can show the numbers of data stored in the driver FIFO ExpCANout Use the process DM1CTP CAN Send Process ExpCANout Use the process DM1RTP RTR Send Process O ExpCANStop Click stop button to execute stop function of ExoCANStop O Input Signal Input sine wave to DM1CTP process Input value 5 to DM1RTP RTR process PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 45
8. j Tmi ligt bF on i Ka S ei n 2 ij y ee a S d bk sach ZU a A D I SI 8 E AN L AR y i Le Le PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 10 Remove the LabVIEW CAN Driver Step 1 Click Start in the task bar Select the Settings Control Panel as shown in the following figure EE Set Program Access and Defaults Programs Documents EJ Control Pane SS Ed Control Panel 8 E Network and Dial up Connections Lei Printers Taskbar amp Start Menu Search Accessibility Control Panel Options Add Remove Programs o Installs and removes programs and Windows components Automatic BDE Date Time Display Updates Administrator Windows Update Windows 2000 Support Lar Ka LJ Folder Options Fonts Game Intel R Controllers Extre va k3 pan oN Step 3 Find out the LabCAN and click the button Change Remove bre Add Remove Pro mn em iol x Currenthe t ed prop Seng IAS WS Fa PET RRE Pr AL Sie L abl AM Z Microsoft Office 2000 SR 1 Professional a ba ie w Wie am m D s vm PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 11 Step 4 Choose Remove option and click the button Next to remove the software ADLAN Seti Step 5 Click the button Yes to remove the software e
9. the dbc file produced by CANdb editor The CANdb editor is made by Vector Company Please refer to Vector web site for more information CAN Receive CAN Receive l E x CAN Hot Specification Channel Fort CANO Ge 11 6n 204 C 29Bt 208 Telegram Number Arbitration ID US T Telegram Farameter Ce Manual Selection C Import from Decoding Scaling Type Signed Bute Start fo ll Format fe Inte C Motorola Scale Integer Channel for 128 E J0 for 127 lee PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 21 In Decoding frame the Type combo box decides the decoding method of received message It has seven kinds of integer data type such as single bit signed byte unsigned byte signed short integer unsigned short integer signed long integer unsigned long integer It also provides two kinds of float types float 32 bit IEEE and double 64 bit IEEE The Start combo box can select the start byte of the data The message decoding will start at this byte For example if type is unsigned short integer and start is 2 the receive channel will output the unsigned short integer value which is decoded from the 3rd and 4th bytes of received CAN message The Scaling parameter is used to mapping the received data to the real physical value The original scaling range is given by the Type parameter setting For example if the un
10. CAN communication parameters such as CAN baud rate VI block sample rate arbitration ID data length etc For more detail information please refer to the section 3 2 DAQ Button DAG It is a reserved button for further use User Button Go If users do not hope that the settings of Configurator can be changed by other people Checking User Management with Login dialog item can lock the Configurator x User Management E m Settings Uk k User Management with Login dialog Cancel Afterwards if users want to change the Configurator settings users need to select the Administrator item and key the correct password Admin in the Password filed Or only the Guest item can be used for view the Configurator settings Login ICP DAS Co LTD Configurator i x m Settings SEN 7 o ok Administrator C CAN Modify i Channels Processes SE C Guest Password Help PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 14 Language Button IR There are two languages German and English for user to select Use the language button to change which language the user interface window will be Nationaltat l Deutsch Save Button A Itis a reserved button for further use Help Button a Click this button to show the help information of LabVIEW CAN driver and Configurator These h
11. EW CAN Driver user manual ver 1 00 Aug 16 2005 37 The DM1RRx1 channel settings are as follows The channel is CAN O and the CAN specification is 2 0A The arbitration ID is 200 RTR Receive DMIRRHI1 x CAN Pot Specification The DM1RTx1 channel setting is as follows The CAN channel is CAN 1 and the CAN specification is 2 0A The arbitration ID is 200 x CAN Port CAN Specification Telegram Number Arbitration ID PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 38 Process Setting There are 9 processes in the Process window But only the three processes DM1RP CAN RTR receive process DM1CTP CAN send process and DM1RTP RTR send process have been use for this demo So we only check DM1RP DM1CTP and DM1RTP three processes at this part CAN r Configuration Hardware Channels Process es DM2CTP I ee DM2CTP2 ee DM2CTPS ES DMZATPI ES DM2ATP2 Rg CAN RTA Receive ga CON Send pm ATA Send not usable ER P Double click DM1RP to check the setting of DM1RP process as follows Check the DM1CRx1 and DM1RRx1 check box It means that there are only two channels DM1CRx1 and DM1RRx1 applied in the DM1RP process The receive mode is set to Usual Receive Mode for normal application PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 39 Process CAN RTR Receive Config
12. JA1000 can get 1M bps baud rate Port Settings CANO _ Port Settings A Ok C Baud Rate from list Baud Rate over Timing Register BTR1 ICH 20 BTRO 1H r Help Cancel EE Besides users can right click the hardware icon lt DELSE to do some configurations and adjustments The functions of these items are shown below Experiment Setup Expand Branch Collapse All Branches Search Continue search F3 1 Select Experiment Setup to set the sample rate and block size for all VI blocks of all CAN channels Experiment Setup BS wl Settings oa Sample rate zl Hz Block size i Cancel PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 17 Sample rate parameter defines the sampling rate for all channels The range of sample rate is from 50Hz to 5000Hz and the minimum increase step is 50Hz For example if set 4430Hz to the sample rate value it will be round to 4450Hz automatically If type 4420Hz to the sample rate value it will be truncated to 4400Hz automatically Block size parameter will influence the size of latency period The range of block size is from 1 to 4096 This parameter strongly influences the real time performance of the system and the speed of the measuring process 2 Use Expand Branch function to expand the branch Then the tree view shows the detail information 7 d Hardware 3 The Collapse Al
13. PISO CAN200 D T PISO CAN400 D T LabVIEW CAN Driver User s Manual Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assume no liability for damages consequent to the use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use nor for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2005 by ICP DAS All rights are reserved Trademark The names used for identification only maybe registered trademarks of their respective companies PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 1 Tables of Content 1 General a Ed a D EE 3 LICAN Bus introduction ged 3 1 2 LabVIEW CAN Driver Characteristics ccccscsssssssssssssscsscscsscsssecsscsscscees 4 PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 2 1 General Information 1 1 CAN Bus Introduction The CAN Controller Area Network is a serial communication protocol which efficiently supports distributed real time control with a very high level of security It provides the error process mechanisms and message priority concepts These fe
14. SO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 6 2 1 Installation Driver Step by Step When users want to use the LabVIEW CAN driver the PISO CAN200 400 CAN card driver and LabVIEW 7 1 must be installed firstly Afterwards users should install LabVIEW CAN driver After finishing the installation process the demo programs may be a good reference for users to build a simple CAN LabVIEW application In the demo programs basic functions and operation methods of CAN VI blocks are introduced It is very helpful for users to understand how to use these functions and how to develop their CAN applications For more information about the demo programs please refer to the section 5 The following description shows the step by step procedures about how to install the PISO CAN200 400 driver and LabVIEW CAN driver Install the PISO CAN200 400 CAN card driver Please refer to the PISO CAN200 400 user manual It can be found in the product package box Users also can download it in the following website http www icpdas com oldweb download pci piso can manual Install the LabVIEW CAN Driver Step 1 Insert the product CD into the CD ROM and find the setup file with the path CAN PCI PISO CAN200_400 LabVIEW_CAN_driver or download it form the web site http www icpdas com download pci piso can index htm Then execute the LabCAN exe to install the LabVIEW CAN driver E LabVIEW CAN driver j i well x File Edt View Favorites
15. TR send and RTR receive When right click the i Channels icon BNEVGER users need to choose one kind of channels for addition The CAN send CAN receive channels can send receive CAN data The CAN send channel provides the arbitration ID data type and data length for configuration And RTR send RTR receive channels can send receive remote transmit request message to from the CAN network Take CAN receive channel for example right click and select New i Channel for Data Receive to add a new data receive channel When add a channel user must input a channel name below PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 20 Names for i Channels Processes E X m Settings H Ok Input Name ok CAN Receive 01 Cancel Help After setting the name some parameters must be setting for the channel Choose the Channel Port to define the CAN port which the CAN receive channel will receive the CAN message from Select the CAN specification 2 0A 2 0B to decide which CAN specification is used Set the arbitration ID Then the CAN receive channel will receive CAN data according to this arbitration ID The telegram parameters have two part Decoding and Scaling If you select the Manual Select item the parameters in Decoding and Scaling frame must be configured by yourself Or you can select the Import from to import these parameters configuration from
16. The demo front panel is display as follows gt 1xCAN_1xRTR Express yvi File Edit Operate Tools Browse Window Help gt 2 L Waveform Chart 10 2 Plot 0 Flot 1 Amplitude OU l FifoPercent P pn Amplitude 2 i OU l 10 RTR Send AH TASR 72i 1221 C wei stop pom 5 stop Ei a G The waveform shows a sine wave form the received data with CAN ID 100 CG The waveform shows a pulse with value 5 form the data with CAN ID 200 3 Click this button to send an RTR data with CAN ID 200 Receive buffer can show the numbers of data stored in the driver FIFO Stop button to stop the VI When CAN port 1 send the sine wave data with double type by using message ID100 the CAN port O can receive these data Users can check it in the upper part of the waveform chart If users click the RTR send button CAN port 1 will send a RTR message with message ID 200 Then the CAN port O will receive this message Users can also check it in the lower part of the waveform chart PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 46
17. annel PRTR send channel Take the Data RTR receive process for an example when users add this process input a channel name below Note Process name cannot exceed 7 characters Names for i Channels Processes xi Settings Ok eae ok Pm Cancel PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 24 Then click Ok button and the configuration window will pop up All of the receive channels defined in the i Channel window before will display in the configuration window Users can check the check box to select which needs to be applied in this process Process CAN RTR Receive Configuration P O01 E K x LAN Recerve 0l LAN 0 100 CAN Receive 02 CAN O 200 Lancel C CAN Receive 03 LAN 0 300 ATR Receive 01 ATR 0 400 Help J ATR Receive 02 ATR O 500 Hecetve Mode Ge Usual Receive Mode C Debug Mode with value T to mark the start position from an block If the configuration is finished click Ok button Then the CAN RTR receive icon 6 will be added in the process view Configuration Hardware Channels Process lf users add a CAN send process the entire CAN send channels defined in the i Channel window will be shown after giving the CAN send channels a name and clicking Ok button But users can check only one of them and apply the checked channels in the CAN send process The situation in RTR send process is the same as that in CAN send proce
18. atures can improve the network reliability and transmission efficiency Furthermore CAN supplies the multi master capabilities and is especially suited for networking intelligent devices as well as sensors and actuators within a system or sub system In CAN networks there is no addressing of subscribers or stations in the conventional sense but instead prioritized messages are transmitted Figure 1 1 Example of the CAN network The CAN system is generally applied in the embedded systems as well as automation control applications More and more application stories are proposed recently The main CAN application fields include passenger car off highway and off road vehicle maritime electronics factory automation lifts and escalators building automation etc PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 3 1 2 LabVIEW CAN Driver Characteristics ICP DAS LabVIEW CAN DLL driver provides users to establish CAN communication network rapidly It is special for ICPDAS PISO CAN200 400 PCI interface card By the way of using the library most of the CAN communication protocols will be handled by the VI modules of this DLL library automatically Therefore it can help users reducing the complexity of developing a CAN network without the detail CAN bus technology background The general application architecture is demonstrated as the Figure 1 2 H A CAN Bus Figure 1 2 Application
19. cerve Fd HIH Send In this demo we just use 1 CAN receive channel 1 CAN send channel 1 RTR receive channel and 1 RTR send channel Therefore the four channels DM1CRx1 DM1CTx1 DM1RRx1 and DM1RTx1 will be introduced The DM1CRx1 channel setting window is shown below The Channel parameter is CAN 0 and the CAN specification is 2 0A The attribution ID is 100 The telegram parameter is set as Manual Selection The decoding type is double 64 bit and the start byte is 0 The decoding format is Intel format PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 36 CAN Receive DMICR 1 i xj CAN Port Specification Telegram Number Arbitration ID Bab Cancel Help Telegram Parameter Ce Manual Selection C Import from Format Ze ntel Motorola The DM1CTx1 channel parameter setting is similar with the DM1CRx71 expect the Channel and output length parameters The DM1CTx1 use CAN port 1 to transmit data Therefore the Channel filed is set to CAN1 The length of output data is 8 bytes CAN Send DMICTxHI x CAN Port CAN S neciication Channel Porth CANT sl 29 Bit 2 08 17 Bit 2 04 Telegram Number Arbitration ID Output Length Byte g r Telegram Farameter Ce Manual Selection E Import from L o Format e Intel Motorola PISO CAN200 PISO CAN400 LabVI
20. e the LabVIEW CAN driver And if the status is error the function will not initialize the CAN driver error out output The output parameter is an Error Out 3D cluster of form panel If some error happens the error state will be outputted e Note Even if this function is used in a while loop the function is still executed only one time PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 30 4 3 2 ExpCANStop Description This VI closes the CAN card and releases all the LabVIEW CAN driver resources When users want to close their applications the ExpCANStop function must be used firstly e Function VI Standard VI SubExpCANStop vi Express VI ExpCANStop e Parameter Synclinput input The type of this parameter is Boolean format If the input is True the driver will be stopped and released Language input There are two kinds of languages German and English to select for error message The input value O is German 1 is English The default value is 0 SyncOutput output The type of this parameter is Boolean format When the driver is stopped successfully the state True will be output e Note lf the ExoCANStop function is no used when the users program is closed this may lead serious faults and uncertain system behavior of the network PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 31 4 3 3 ExpCANin
21. elp information is made by using both Germany and English interface Close Button Close Click this button to exit Configurator PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 15 3 2 CAN Hardware Setting In this section operation method of Configurator will be described There are three tabs Hardware i Channel and Process in the setting window They are explained below Hardware CAM Configuration See Hardware FIM PISO CAN400 D T Vendor 01065 Device 0x3050 Eh LAND LAN foe LAN Eh CANS In hardware tab users can double click CAN channel icon to set CAN baud rate for each PISO CAN200 400 CAN port on PCI bus For example double click CANO icon LAND to set the Baud of CAN port O After clicking the CAN port icon the Port Settings window pops up If checks the Baud Rate from list combo box there are 8 kinds baud rate to select Ix Port Settings CAND m Port Settings Ok Baud Rate from list 500 kBt e Baud Rate over Timing Register Cancel wade 1000 RBI PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 16 And if users check the second item Baud Rate over Timing Register users must have the background of the CAN chip SJA1000 The CAN baud rate is calculated by using SJA1000 specification with 16MHz oscillator For example setting the BIRO 01H and BTR1 1CH of S
22. ersion 0 03 Sep 22 2005 Hardware Setting Click icon to pup up the CAN configuration window PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 34 CAN Configuration Hardware Channels Process a Hardware Eh CANO ER CANT ER CAN ER CAN ER PISO CAN Experiment Setup Expand Branch Collapse All Branches Search Continue search F3 Right click 2 Iekuele icon Then select experiment setting below Here the sample rate 100 Hz and block size 1 are used Experiment Setup KE x Settings Sample rate f Block size Double click ER LAND and ER LANT to set the baud rate of CANO and CANT Use the 500K bit predefined baud for these two CAN ports Port Setting cano x Fort Settings 500 KBit BTRO U H C Baud Rate over Timing Register prp Jk OH LE x Port Settings 500 KP BTRO OH C Baud Rate over Timing Register prp i OH PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 35 i Channels Setting When users execute the Configurator there are many channels defined in the i Channel window Only the four channels DM1CRx1 DM1CTx1 DM1RRx1 and DM1RTx1 are for demo All the other channels are for demo2 CAN r Configuration CH OMC E DMICTs1 eF DMIRR SI ee B eF DM2ATs1 t H CAN Receive K CAN Send Je not usable e RTA Re
23. figurator Ready output When the ExpCANin module is no error and ready to receive data the Ready parameter is 1 and if not the Ready is 0 e Note One ExpCANin function can include more than one receive process made by Configurator PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 32 4 3 4 ExpCANout Description ExpCANout VI can send the CAN data via send process applied by ExpCANStart Function VI Standard VI SubExpCANout vi Express VI ExpCANout e Parameter chProcessName input standard Input all process name that will be used latter Each two different processes name need a comma mark to separate themselves Language input standard There are two kinds of languages German and English to select for error message The input value 0 is German 1 is English The default value is 0 dValue input This value is the data part of CAN message which will be send out When give the value to this parameter this value needs to match the data format setting of the process made by Configurator error in input The input parameter is an Error In 3D cluster of form panel If this parameter is not used the default parameter status is ok If the status is ok the function will start to initialize the LabVIEW CAN driver And if the status is error the function will not initialize the CAN driver error out output The output
24. l Branches function can concentrate the branch on one icon Then the tree view is more compact Sg PISO CAN400 D T CANO CANT LAN CANS Hardware PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 18 4 Use Search function to search string that user is looking for For example when user inputs the string CAN3 and press ok the CANS in tree view will be found If the Case sensitive check box has been checked the string that you key in the window must match case with the target string that you want to search Hardware PISO CAN 400 27 Find string in overview tree a E X CANO Sp CANT Cp a ER CAN ase sensitive E CAN 5 Press key F3 or use the Continue search F3 function to search the next One PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 19 i Channel CAN r Configuration Hardware Channels Process ol Channels Mew i Channel For Data Receive Mew i Channel For RTR Receive Mew i Channel for Data Send New i Channel For RTR Send Expand Branch Collapse All Branches Search Continue search F3 CA K HIH Recerve K RTA Send CAN Receive K CAN Send Je not usable This tab is used to set the arbitration ID that wants to send or receive by specific CAN channels There are four kinds of channels CAN send CAN receive R
25. parameter is an Error Out 3D cluster of form panel If some error happens the error state will be outputted e Note Every ExpCANout function can only use one send process For example if users have three send processes they need three ExpCANout functions to achieve If the applied send process is an RTR send process the dValue must be set to 5 PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 33 5 Demo Program for Window This section displays the demo program contours and the operation procedure for the demo programs After installing the LabVIEW CAN driver correctly users can see the demo programs in the folder DAQPro PISO CAN LabCAN Demo LabVIEW 7 1 Here a give step by step demo procedure is given to demonstrate how to use the LabVIEW CAN driver in LabVIEW environment In the following description only one demo is displayed If users want to check other demos please refer to the demo folders in the demo path Before using this demo the CAN port 0 and CAN port 1 of PCI CAN card need to connect with each other 5 1 1xCAN_1xRTR Configurator Settings of Demo Open Configurator exe in DAQPro PISO CAN LabCAN Demo Configurator DS DAS Co LTD Configurator l x Bi i A a Close ICF DAS Co LTD No 111 Kuang Fu N Ad Ham Chu Industrial Fark Hukou Shiang HSINCHU 303 Taiwan TEL 86 3 5973366 FAX 806 3 5973733 E mail ervicemicpdas com CAN DAQ i EXE V
26. signed short integer is used the original range is from 0 to 65535 The mapping range is according to user s application If users application need to obtain the voltage from OV 10V the mapping range is O 10 After setting the scaling O and 10 the 0 65535 of decoded value is mapping to the 0 10 application range lf users finish the configuration the data receive channel icon E will be added to the i Channel tree view as follows CAM f Configuration Hardware Channels Process del Channels LC CAN Receive D In order to add CAN send RTR receive or RTR send channel user must to input a channel name first too For CAN send channel its setting is almost the same as CAN receive channel except the data length parameter The data length parameter is used to set the output data length from 1 byte to 8 bytes For RTR receive and RTR send channel this two kinds of channels only have two parameters CAN port and arbitration id These parameters configurations are the same as those in the CAN receive channel The setting window of CAN send RTR receive and RTR send channel is shown below respectively PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 22 x CAN Port CAN Specification Cancel Help Kanal Por CANT sl 17 Bi 204 29 Bit 2 08 Telegram Number Arbitration Dt 0 GAH T utput Length Byte 8 Telegram Parameter
27. ss The following two figure point out these condition PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 25 Process Send Configuration D 3 CAN Send 01 CAN 1 100 C CAN Send 02 CAN 1 200 C CAN Send 03 CAN 1 300 Process Send Configuration 05 RTRA Send 01 C ATRA Send 02 RATA 500 Cancel PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 26 4 Driver Function Description 4 1 Function Definition Every function provides two kinds of VI for user to use in the LabVIEW environment They are standard subVI and Express VI The main differences of these two VI are the design flexibility In Express VI some of parameters are decided by users when the VI is put into the LabVIEW block diagram Therefore when running the users LabVIEW program only few parameters of Express VI could be set dynamically The standard subVI provides all the parameters to modify even if the users LabVIEW program is running It is more flexibility to change the VI parameters However the Express VI could be easier to use because of its compact functionality Users can decide which kind of VIs is proper for users application All the functions provided by the Lablcpdas dll are listed in the following table The detail information and operation method for each function will be presented in the section 4 3 PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual
28. st be used to release the system resources of CAN card and LabVIEW CAN driver START ExpCANStart ExpCANin ExpCANout ExpCANStop END Figure 4 1 programming flowchart PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 29 4 3 Function Description In order to make the descriptions more simply and clear the attributes for the both input and output parameter functions are given as input and output respectively If a parameter is only used in standard subVI but not in Express VI the mark standard will be given 4 3 1 ExpCANStart Description ExpCANStart VI activates the CAN card and applies all desired processes to LabVIEW It will initialize all parameters of LabCANIcpdas dll and must be called once before using other functions Function VI Standard VI SubExpCANStart vi Express VI ExpCANStart e Parameter chProcessName input standard Input all process name that will be used latter Each different process name need a comma mark to separate themselves Language input standard There are two kinds of languages German and English to select for error message The input value 0 is German 1 is English The default value is 0 error in input The input parameter is an Error In 3D cluster of form panel If this parameter is not used the default parameter status is ok If the status is ok the function will start to initializ
29. uration DMIRP DMICRA CAN oO 100 OMIAR 1 ATR Cancel 0 C DM2CA 2 CAN 0 200 Help C OM2CR 3 CAN D 300 Cl DM2pp4 RTA 0 400 C OM2AR 2 RTA 0 POD Receve Made Ce Usual Receive Mode Debug Mode with value f T to mark the start position from an block The setting of the CAN send process DM1CTP is displayed below The DM1CTP process uses the DM1CTx1 channel Process Send Configuration DMiICTP We xj en SL LECH wl DMICT ai POMZCT x1 Cancel C OM2CTx2 C OM2cTx3 Help The RTR Send process setting of DM1RTP is shown below The DM1RTP process uses the DM1RTx1 channel Process Send Configuration DMiIRTP p i a EZ eng LS LES LEE D DMIAT A POMZAT x1 Cancel OM2ATx2 Help PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 40 5 2 1xCAN_1xRTR LabVIEW Program of Demo After finishing the Configurator settings Run the Demo1 vi demo in the demo folder The front panel and the block diagram of the demo1 are shown below Adds a Waveform Chart VI a Stop button VI and a Push button VI in the front panel window The Waveform Chart is set to two plots The button behavior of the Push button is set to Latch when pressed type and its label changes to RTR Send LC 1xCAN_1xXRTR Express vi Front Panel File Edit Operate Tools Browse Window Help ll 13pt Application Font Waveform Chart Amplitude
30. ver 1 00 Aug 16 2005 27 E Function Name Description Standard SH ExpCANStart VI activates the CAN card and applies all ExpCANStart ExpCANStart desired processes under SE LabVIEW d 9 E This VI closes the CAN card de ExpCANStop land releases all the processes eee applied to LabVIEW SET Up r eco The VI receives all input data ExpCANin from receive process applied by ExpCANStart EE 5 ExpCANout VI can send the ExpCANout CAN data via send process dwalue terror in no error applied by ExpCANStart error ot PISO CAN200 PISO CAN400 LabVIEW CAN Driver user manual ver 1 00 Aug 16 2005 28 4 2 LabVIEW CAN Driver Application Flowchart In this section it is described that the operation procedure about how to use the LabVIEW CAN driver to build users applications This information is helpful for users to apply the LabVIEW CAN driver easily Furthermore we provide a demo program to show how to use these VI step by step in section 5 It would be a good reference for users to learning the operation method of LabVIEW CAN driver When users programs apply the LabVIEW CAN driver functions the function ExpCANStart must be call first This function is used to initialize the CAN card and start the LabVIEW CAWN driver After executing the ExpCANStart function the ExpCANin and ExpCANout function would be used to receive and send data If users want to exit this program the function ExpCANStop mu
Download Pdf Manuals
Related Search
Related Contents
Télécharger le programme - Médiathèque communautaire de Moulins Samsung RSJ1KERS Manual de Usuario Avaya BCM 4.0 Unified Messaging Configuration Guide Dell 14R Quick Start Manual ABRITES Commander for OPEL/Vauxhall User Manual Tecumseh AVB5558EXN Drawing Data CSR報告書 2009【PDF3023KB】 Manual de instrucciones y Guía para el usuario 取扱説明書 - テスコム PRO Mask Service Manual Copyright © All rights reserved.
Failed to retrieve file