Помогите связать arduino и LabView

Тема в разделе "Arduino & Shields", создана пользователем kvaks, 1 фев 2015.

  1. kvaks

    kvaks Нерд

    Нашел библиотеку LIFA_Base для связи arduino и LabView
    но при компиляция появляется ошибка
    Код (Text):

    Arduino: 1.5.8 (Windows 7), Board: "Arduino Uno"

    C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:6:17: error: 'TKD2' was not declared in this scope
     int RECV_PIN  = TKD2; // the pin the IR receiver is connected to
                     ^
    Ошибка компиляции.

      This report would have more information with
      "Show verbose output during compilation"
      enabled in File > Preferences.
     
    помогите пожалуйста.
     
  2. X-Dron

    X-Dron Гик

    Скачать
    https://github.com/shirriff/Arduino-IRremote/archive/master.zip

    Удалите содержимое библиотеки
    C:\Program Files\Arduino\libraries\RobotIRremote
    или
    C:\Program Files (x86)\Arduino\libraries\RobotIRremote

    Скопировать туда содержимое файла-архива Аrduino-IRremote-master.

    В пакете установки Arduino идет старая библиотека.
     
  3. kvaks

    kvaks Нерд

    это частично помогло. типерь другая ошибка

    Код (Text):


    Arduino: 1.5.8 (Windows 7), Board: "Arduino Uno"

    LIFA_Base\AccelStepper.cpp.o: In function `AccelStepper::setMinPulseWidth(unsigned int)':
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/AccelStepper.cpp:259: multiple definition of `AccelStepper::step(unsigned char)'
    AccelStepper.cpp.o:C:\Users\Max\AppData\Local\Temp\build8026050337923883173.tmp/AccelStepper.cpp:259: first defined here
    LIFA_Base\AccelStepper.cpp.o: In function `AccelStepper::step4(unsigned char)':
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/AccelStepper.cpp:110: multiple definition of `AccelStepper::desiredSpeed()'
    AccelStepper.cpp.o:C:\Users\Max\AppData\Local\Temp\build8026050337923883173.tmp/AccelStepper.cpp:110: first defined here
    LIFA_Base\AccelStepper.cpp.o: In function `AccelStepper::step4(unsigned char)':
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/AccelStepper.cpp:338: multiple definition of `AccelStepper::step4(unsigned char)'
    AccelStepper.cpp.o:C:\Users\Max\AppData\Local\Temp\build8026050337923883173.tmp/AccelStepper.cpp:338: first defined here
    LIFA_Base\AccelStepper.cpp.o: In function `AccelStepper::step8(unsigned char)':
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/AccelStepper.cpp:376: multiple definition of `AccelStepper::step8(unsigned char)'
    AccelStepper.cpp.o:C:\Users\Max\AppData\Local\Temp\build8026050337923883173.tmp/AccelStepper.cpp:376: first defined here
    LIFA_Base\AccelStepper.cpp.o: In function `AccelStepper::step1(unsigned char)':
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/AccelStepper.cpp:296: multiple definition of `AccelStepper::step1(unsigned char)'
    ......
    ......
    .....
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/IRremote.cpp:332: multiple definition of `IRrecv::resume()'
    IRremote.cpp.o:C:\Users\Max\AppData\Local\Temp\build8026050337923883173.tmp/IRremote.cpp:332: first defined here
    LIFA_Base\IRremote.cpp.o: In function `IRrecv::decodeNEC(decode_results*)':
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/IRremote.cpp:383: multiple definition of `IRrecv::decodeNEC(decode_results*)'
    IRremote.cpp.o:C:\Users\Max\AppData\Local\Temp\build8026050337923883173.tmp/IRremote.cpp:383: first defined here
    LIFA_Base\IRremote.cpp.o: In function `IRrecv::decodeSony(decode_results*)':
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/IRremote.cpp:431: multiple definition of `IRrecv::decodeSony(decode_results*)'
    IRremote.cpp.o:C:\Users\Max\AppData\Local\Temp\build8026050337923883173.tmp/IRremote.cpp:431: first defined here
    LIFA_Base\IRremote.cpp.o: In function `IRrecv::getRClevel(decode_results*, int*, int*, int)':
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/IRremote.cpp:478: multiple definition of `IRrecv::getRClevel(decode_results*, int*, int*, int)'
    IRremote.cpp.o:C:\Users\Max\AppData\Local\Temp\build8026050337923883173.tmp/IRremote.cpp:478: first defined here
    LIFA_Base\IRremote.cpp.o: In function `IRrecv::decodeRC5(decode_results*)':
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/IRremote.cpp:517: multiple definition of `IRrecv::decodeRC5(decode_results*)'
    IRremote.cpp.o:C:\Users\Max\AppData\Local\Temp\build8026050337923883173.tmp/IRremote.cpp:517: first defined here
    LIFA_Base\IRremote.cpp.o: In function `IRrecv::decodeRC6(decode_results*)':
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/IRremote.cpp:552: multiple definition of `IRrecv::decodeRC6(decode_results*)'
    IRremote.cpp.o:C:\Users\Max\AppData\Local\Temp\build8026050337923883173.tmp/IRremote.cpp:552: first defined here
    LIFA_Base\IRremote.cpp.o: In function `IRrecv::decode(decode_results*)':
    C:\Users\Max\Documents\Arduino\libraries\LIFA_Base/IRremote.cpp:341: multiple definition of `IRrecv::decode(decode_results*)'
    IRremote.cpp.o:C:\Users\Max\AppData\Local\Temp\build8026050337923883173.tmp/IRremote.cpp:341: first defined here
    collect2: error: ld returned 1 exit status
    Ошибка компиляции.

      This report would have more information with
      "Show verbose output during compilation"
      enabled in File > Preferences.


     
     
  4. X-Dron

    X-Dron Гик

    В папке LIFA_Base есть IRremote.cpp, IRremote.h, IRremoteInt.h,?
    Попробуй полностью удалить \Arduino\libraries\RobotIRremote. Похоже конфликт версий.
     
    kvaks нравится это.
  5. kvaks

    kvaks Нерд

    спасибо большое. все заработало )