安装了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: [color=Red]expected constructor, destructor, or type conversion before '*' token[/color]
- 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
复制代码
官方例程,怎么会编译有这么多错误? |