打开LabVIEWInterface例程报错,求助
安装了Labview软件和labview interface for arduino,打开LabVIEWInterface例程,编译报错如下,
报错信息
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
In file included from LabVIEWInterface.ino:20:
D:\Arduino\libraries\RobotIRremote/IRremoteInt.h:187: error: 'RAWBUF' was not declared in this scope
LabVIEWInterface:95: error: expected constructor, destructor, or type conversion before '*' token
LabVIEWInterface:99: error: 'IRsend' does not name a type
LabVIEWInterface.ino: In function 'int checkForCommand()':
LabVIEWInterface:119: error: 'COMMANDLENGTH' was not declared in this scope
LabVIEWInterface:125: error: 'currentCommand' was not declared in this scope
LabVIEWInterface:127: error: 'currentCommand' was not declared in this scope
LabVIEWInterface:127: error: 'processCommand' was not declared in this scope
LabVIEWInterface.ino: In function 'void processCommand(unsigned char*)':
LabVIEWInterface:140: error: 'checksum_Test' was not declared in this scope
LabVIEWInterface:167: error: 'writeDigitalPort' was not declared in this scope
LabVIEWInterface:210: error: 'analogReadPort' was not declared in this scope
LabVIEWInterface:231: error: 'sevenSegment_Config' was not declared in this scope
LabVIEWInterface:235: error: 'sevenSegment_Write' was not declared in this scope
LabVIEWInterface:306: error: 'spi_setClockDivider' was not declared in this scope
LabVIEWInterface:330: error: 'spi_sendReceive' was not declared in this scope
LabVIEWInterface:341: error: 'servos' was not declared in this scope
LabVIEWInterface:342: error: 'Servo' was not declared in this scope
LabVIEWInterface:342: error: expected primary-expression before ')' token
LabVIEWInterface:342: error: expected `;' before 'malloc'
LabVIEWInterface:420: error: 'lcd_print' was not declared in this scope
LabVIEWInterface:485: error: 'acqMode' was not declared in this scope
LabVIEWInterface:486: error: 'contAcqPin' was not declared in this scope
LabVIEWInterface:487: error: 'contAcqSpeed' was not declared in this scope
LabVIEWInterface:488: error: 'acquisitionPeriod' was not declared in this scope
LabVIEWInterface:489: error: 'iterationsFlt' was not declared in this scope
LabVIEWInterface:490: error: 'iterations' was not declared in this scope
LabVIEWInterface:495: error: 'delayTime' was not declared in this scope
LabVIEWInterface:505: error: 'FIRMWARE_MAJOR' was not declared in this scope
LabVIEWInterface:506: error: 'FIRMWARE_MINOR' was not declared in this scope
LabVIEWInterface:510: error: 'finiteAcquisition' was not declared in this scope
LabVIEWInterface:564: error: 'irsend' was not declared in this scope
LabVIEWInterface.ino: In function 'void syncLV()':
LabVIEWInterface:752: error: 'DEFAULTBAUDRATE' was not declared in this scope
LabVIEWInterface.ino: In function 'unsigned char checksum_Compute(unsigned char*)':
LabVIEWInterface:763: error: 'COMMANDLENGTH' was not declared in this scope
LabVIEWInterface.ino: In function 'int checksum_Test(unsigned char*)':
LabVIEWInterface:774: error: 'COMMANDLENGTH' was not declared in this scope
LabVIEWInterface.ino: In function 'void sampleContinously()':
LabVIEWInterface:815: error: 'iterations' was not declared in this scope
LabVIEWInterface:817: error: 'contAcqPin' was not declared in this scope
LabVIEWInterface:818: error: 'contAcqSpeed' was not declared in this scope
LabVIEWInterface:821: error: 'delayTime' was not declared in this scope
LabVIEWInterface:827: error: 'delayTime' was not declared in this scope
LabVIEWInterface.ino: In function 'void finiteAcquisition(int, float, int)':
LabVIEWInterface:834: error: 'acquisitionPeriod' was not declared in this scope
官方例程,怎么会编译有这么多错误? 看看库有没有安装好,你只有ino文件,可是应该有需要引用的c++库 主要原因是因为你装载库文件失败了,你试下更新版本 zjz5717 发表于 2016-12-22 22:16
主要原因是因为你装载库文件失败了,你试下更新版本
labview interface for arduino包是最新的,那我就使用arduino最新版本IDE catnull 发表于 2016-12-22 22:13
看看库有没有安装好,你只有ino文件,可是应该有需要引用的c++库
按照《arduino与labview互动设计》操作,作者也是arduino1.0版本 别用LIFA了,你找一下linxmakehub,用那个比较好
(关键是我也没弄好LIFA,。。。) wwwusr 发表于 2016-12-23 12:23
别用LIFA了,你找一下linxmakehub,用那个比较好
(关键是我也没弄好LIFA,。。。)
解决了,刚好也安装了linx,有关于它的实例吗?分享一下 suoma 发表于 2016-12-23 20:00
解决了,刚好也安装了linx,有关于它的实例吗?分享一下
下好了固件后,会有提示,自带有很多例程的。 suoma 发表于 2016-12-23 20:00
解决了,刚好也安装了linx,有关于它的实例吗?分享一下
wwwusr 发表于 2016-12-26 11:27
D:\Program Files (x86)\National Instruments\LabVIEW 2014\vi.lib\MakerHub\LINX\Private\Local IO wwwusr 发表于 2016-12-26 11:27
谢谢,今天一个作者也建议我学linx,说LIFA好久没更新了
页:
[1]