极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 20854|回复: 10

打开LabVIEWInterface例程报错,求助

[复制链接]
发表于 2016-12-22 13:31:43 | 显示全部楼层 |阅读模式

安装了Labview软件和labview interface for arduino,打开LabVIEWInterface例程,编译报错如下,

报错信息
  1.   This report would have more information with
  2.   "Show verbose output during compilation"
  3.   enabled in File > Preferences.
  4. Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
  5. In file included from LabVIEWInterface.ino:20:
  6. D:\Arduino\libraries\RobotIRremote/IRremoteInt.h:187: error: 'RAWBUF' was not declared in this scope
  7. LabVIEWInterface:95: error: [color=Red]expected constructor, destructor, or type conversion before '*' token[/color]
  8. LabVIEWInterface:99: error: 'IRsend' does not name a type
  9. LabVIEWInterface.ino: In function 'int checkForCommand()':
  10. LabVIEWInterface:119: error: 'COMMANDLENGTH' was not declared in this scope
  11. LabVIEWInterface:125: error: 'currentCommand' was not declared in this scope
  12. LabVIEWInterface:127: error: 'currentCommand' was not declared in this scope
  13. LabVIEWInterface:127: error: 'processCommand' was not declared in this scope
  14. LabVIEWInterface.ino: In function 'void processCommand(unsigned char*)':
  15. LabVIEWInterface:140: error: 'checksum_Test' was not declared in this scope
  16. LabVIEWInterface:167: error: 'writeDigitalPort' was not declared in this scope
  17. LabVIEWInterface:210: error: 'analogReadPort' was not declared in this scope
  18. LabVIEWInterface:231: error: 'sevenSegment_Config' was not declared in this scope
  19. LabVIEWInterface:235: error: 'sevenSegment_Write' was not declared in this scope
  20. LabVIEWInterface:306: error: 'spi_setClockDivider' was not declared in this scope
  21. LabVIEWInterface:330: error: 'spi_sendReceive' was not declared in this scope
  22. LabVIEWInterface:341: error: 'servos' was not declared in this scope
  23. LabVIEWInterface:342: error: 'Servo' was not declared in this scope
  24. LabVIEWInterface:342: error: expected primary-expression before ')' token
  25. LabVIEWInterface:342: error: expected `;' before 'malloc'
  26. LabVIEWInterface:420: error: 'lcd_print' was not declared in this scope
  27. LabVIEWInterface:485: error: 'acqMode' was not declared in this scope
  28. LabVIEWInterface:486: error: 'contAcqPin' was not declared in this scope
  29. LabVIEWInterface:487: error: 'contAcqSpeed' was not declared in this scope
  30. LabVIEWInterface:488: error: 'acquisitionPeriod' was not declared in this scope
  31. LabVIEWInterface:489: error: 'iterationsFlt' was not declared in this scope
  32. LabVIEWInterface:490: error: 'iterations' was not declared in this scope
  33. LabVIEWInterface:495: error: 'delayTime' was not declared in this scope
  34. LabVIEWInterface:505: error: 'FIRMWARE_MAJOR' was not declared in this scope
  35. LabVIEWInterface:506: error: 'FIRMWARE_MINOR' was not declared in this scope
  36. LabVIEWInterface:510: error: 'finiteAcquisition' was not declared in this scope
  37. LabVIEWInterface:564: error: 'irsend' was not declared in this scope
  38. LabVIEWInterface.ino: In function 'void syncLV()':
  39. LabVIEWInterface:752: error: 'DEFAULTBAUDRATE' was not declared in this scope
  40. LabVIEWInterface.ino: In function 'unsigned char checksum_Compute(unsigned char*)':
  41. LabVIEWInterface:763: error: 'COMMANDLENGTH' was not declared in this scope
  42. LabVIEWInterface.ino: In function 'int checksum_Test(unsigned char*)':
  43. LabVIEWInterface:774: error: 'COMMANDLENGTH' was not declared in this scope
  44. LabVIEWInterface.ino: In function 'void sampleContinously()':
  45. LabVIEWInterface:815: error: 'iterations' was not declared in this scope
  46. LabVIEWInterface:817: error: 'contAcqPin' was not declared in this scope
  47. LabVIEWInterface:818: error: 'contAcqSpeed' was not declared in this scope
  48. LabVIEWInterface:821: error: 'delayTime' was not declared in this scope
  49. LabVIEWInterface:827: error: 'delayTime' was not declared in this scope
  50. LabVIEWInterface.ino: In function 'void finiteAcquisition(int, float, int)':
  51. LabVIEWInterface:834: error: 'acquisitionPeriod' was not declared in this scope
复制代码


官方例程,怎么会编译有这么多错误?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复

使用道具 举报

发表于 2016-12-22 22:13:16 来自手机 | 显示全部楼层
看看库有没有安装好,你只有ino文件,可是应该有需要引用的c++库
回复 支持 反对

使用道具 举报

发表于 2016-12-22 22:16:36 | 显示全部楼层
主要原因是因为你装载库文件失败了,你试下更新版本
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-12-23 10:40:29 | 显示全部楼层
zjz5717 发表于 2016-12-22 22:16
主要原因是因为你装载库文件失败了,你试下更新版本

labview interface for arduino包是最新的,那我就使用arduino最新版本IDE
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-12-23 10:41:47 | 显示全部楼层
catnull 发表于 2016-12-22 22:13
看看库有没有安装好,你只有ino文件,可是应该有需要引用的c++库

按照《arduino与labview互动设计》操作,作者也是arduino1.0版本
回复 支持 反对

使用道具 举报

发表于 2016-12-23 12:23:12 | 显示全部楼层
别用LIFA了,你找一下linx  makehub,用那个比较好
(关键是我也没弄好LIFA,。。。)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-12-23 20:00:50 | 显示全部楼层
wwwusr 发表于 2016-12-23 12:23
别用LIFA了,你找一下linx  makehub,用那个比较好
(关键是我也没弄好LIFA,。。。)

解决了,刚好也安装了linx,有关于它的实例吗?分享一下
回复 支持 反对

使用道具 举报

发表于 2016-12-26 11:24:32 | 显示全部楼层
suoma 发表于 2016-12-23 20:00
解决了,刚好也安装了linx,有关于它的实例吗?分享一下

下好了固件后,会有提示,自带有很多例程的。
回复 支持 反对

使用道具 举报

发表于 2016-12-26 11:27:37 | 显示全部楼层
suoma 发表于 2016-12-23 20:00
解决了,刚好也安装了linx,有关于它的实例吗?分享一下

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2016-12-26 11:29:13 | 显示全部楼层

D:\Program Files (x86)\National Instruments\LabVIEW 2014\vi.lib\MakerHub\LINX\Private\Local IO
回复 支持 反对

使用道具 举报

 楼主| 发表于 2016-12-26 21:44:52 | 显示全部楼层

谢谢,今天一个作者也建议我学linx,说LIFA好久没更新了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-4-27 01:36 , Processed in 0.048509 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表