- Install DIAdem version 6 or 7. Version 4 is 16-bit, and so out of the question.
- Install Kvaser’s CANLIB driver package and your LAPcan card.
- Copy the files kcandrv.dll and kcandrv.g5d into the DIAdem program
directory (e.g. c:\Program Files\Gfs\DIAdem.) If you can’t find kcandrv.dll, go to Windows Explorer, select View | Folder Options | View tab and make sure “Show All Files” is checked. Then go back to DIAdem.
- Copy the file kcandrv.bmp into the symbols directory of DIAdem
(e.g. c:\Program Files\Gfs\DIAdem\symbols).
- Start DIAdem. Select Options | GPI-DLL Registration. Press the Add… button. Select the directory where you installed the DIAdem driver, step 3 above, and select the file kcandrv.dll.
- Now you are back in the “Registration of GPI-extensions” dialog you opened in the previous step. Press the Close button. DIAdem asks you if you want to save the list of registered drivers in the desktop. Select Yes and do as DIAdem suggests, i.e. save the settings in desktop.DDD.
- DIAdem will now restart.
- After DIAdem has restarted, press the DAC button (the one with the green board on it).
- Select Options | Single Value Processing | Configure Driver…
- Press New Entry, check the Hardware/Driver button and press OK.
- In the list on the left, select “Kvaser CAN” and press OK.
- Optional: press the Info button to make a sanity test. A dialog with driver information should now display.
- Press Close.
- Press the “Inputs(driver)” button in the vertical toolbar on the left. Somewhere on the now appearing horizontal toolbar a button labeled CAN appears. Select it.
- Hooray! You now have a CAN block.
- Double-click on the CAN block. A combined CANdb editor and configuration dialog now appears.
- Select a suitable LAPcan channel and set the bit rate. Assign one or more CANdb files and select the signals you are interested in.
|