Advertisement
Guest User

Advantech DAQNavi Install_commands.txt

a guest
Jul 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. sudo apt update
  2. sudo apt install build-essential
  3. sudo apt upgrade
  4. sudo reboot
  5.  
  6. sudo apt install linux-headers-$(uname -r)
  7. sudo su
  8. uname -a
  9. pwd
  10. cd Downloads
  11. cp linux_driver_source_3.2.12.1_64bit.zip ~
  12. cd ~
  13. unzip linux_driver_source_3.2.12.1_64bit.zip
  14.  
  15. cd linux_driver_source_3.2.12.1_64bit
  16. cd drivers/driver_base/src/lnx_ko
  17. make
  18. cd ../../../usb5800dio/src/lnx_ko
  19. make
  20.  
  21. mkdir /lib/modules/$(uname -r)/biodaq
  22. cd ../../../
  23. cp bin/*.ko /lib/modules/$(uname -r)/biodaq
  24. depmod
  25.  
  26. vi /etc/modules
  27. **append (G to jump to end)
  28. biokernbase
  29. bio5800dio
  30. :wq (write file and quit)
  31.  
  32. **plug in USB
  33. dmesg | grep bio
  34. lsmod | grep bio
  35.  
  36. cd ../libs
  37. cp * /usr/lib
  38. cd ../inc
  39. cp bdaqctrl.h /usr/include
  40. mkdir /usr/share/advantech
  41. cp Automation.BDaq.jar /usr/share/advantech
  42. chmod 444 /usr/share/advantech/Automation.BDaq.jar
  43.  
  44. cd ../examples/C++_Console/DO_StaticDO
  45. cat /sys/class/daq/daq0/desc (copy or write down the string)
  46. vi StaticDO.cpp
  47. :%s/ Ctrl-V Ctrl-M //g (without the spaces before and after "Ctrl-V Ctrl-M")
  48. /Device (find the device string)
  49. xx to delete DemoDevice
  50. type in string from cat which is "USB-5830,BID#0" in this example
  51. :wq (write file and quit)
  52. make
  53. ./StaticDO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement