LabVIEW Pro 專業論壇-程式分享區-Labview 連結 Arduino 教學
 
     
 
 
 
LabVIEW 討論區基礎教學每月專題分享技術問題精選online Test
技術討論區 ★LabVIEW Pro 嘉年華★ 程式分享區 教育訓練與認證區 閒話家常區 工作機會討論區 回報區 高手專訪系列 2017 LabVIEW 至尊爭霸賽
 熱門關鍵字 
    TOP 資源排行榜    取得 NI 協助    3小時內學會 LabVIEW    量測概念充電站    LabVIEW Pro 嘉年華
 您的位置:首頁 > 程式分享區 > Labview 連結 Arduino 教學
  程式分享區   板主:meiae
 之1(10篇)
Labview 連結 Arduino 教學 
 
charles_wu
暱稱:狐狸
經驗值:1106
等級:堂主
發文:10
回文:329
版本:LabVIEW 8.6
闖關狀態:
迷霧之森
前往地圖:
 
字級設定

因為 Arduino 是很容易拿到的硬體

因此 寫一篇 圖解 方便 大家 使用它 做些應用

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
附件檔案:    
Labview_link_Arduino.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  文章人氣: 11673 讚:4 文章日期:2014/04/11 14:48
coolboy30

暱稱:
經驗值:31
等級:學徒
發文:3
回文:10
版本:
闖關狀態:
前往地圖:
1樓
字級設定

引言自 charles_wu:


因為 Arduino 是很容易拿到的硬體

因此 寫一篇 圖解 方便 大家 使用它 做些應用


 

 

如同二樓的板友,請問這個專用的VI是一定要灌嗎??  這個溝通管道~  還是說  灌了我用普通的VISA才能跟 Uno溝通?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    讚:0 文章日期:2014/05/30 12:03
charles_wu

暱稱:狐狸
經驗值:1106
等級:堂主
發文:10
回文:329
版本:LabVIEW 8.6
闖關狀態:
迷霧之森
前往地圖:
2樓
字級設定

可以自己寫 透過 rs232 和 uno 溝通的程式 但是麻煩些

 

上面的 教學文件 是透過 別人已經 寫好的來使用

方便很多

 

如果你能用別人寫好的 來改會容易很多

等熟練了 

在自己寫 透過 Labview VISA (RS232)  <---->  UNO (這邊程式碼也自己寫) 複雜些

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    讚:0 文章日期:2014/05/30 12:41
a24922075

暱稱:
經驗值:174
等級:師傅
發文:5
回文:10
版本:
闖關狀態:
冰火山
前往地圖:
3樓
字級設定

感謝

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    讚:0 文章日期:2015/10/28 13:42
a24922075

暱稱:
經驗值:174
等級:師傅
發文:5
回文:10
版本:
闖關狀態:
冰火山
前往地圖:
4樓
字級設定

想請問LIFA程式無法編譯無法燒入至Arduino嗎是什麼問題?

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    讚:0 文章日期:2016/05/17 17:43
cash999

暱稱:cash999
經驗值:436
等級:導師
發文:0
回文:1
版本:LabVIEW 8.6
闖關狀態:
迷霧之森
前往地圖:
5樓
字級設定

請確認,在裝置管理員 -> COM下有抓到arduino

[+]放大圖片

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
附件檔案:    
COM01.png
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    讚:0 文章日期:2016/05/18 00:02
a24922075

暱稱:
經驗值:174
等級:師傅
發文:5
回文:10
版本:
闖關狀態:
冰火山
前往地圖:
6樓
字級設定
已確認裝置管理員有抓到Mega版的com 但 LIFA檔還是無法編譯燒入
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
附件檔案:    
image.jpeg
image01.jpeg
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    讚:0 文章日期:2016/05/18 11:51
ancle


創始會員 2013 LabVIEW 至尊爭霸賽參賽者   
暱稱:ancle
經驗值:9675
等級:總舵主
發文:99
回文:3271
版本:請選擇
闖關狀態:
迷霧之森
前往地圖:
7樓
字級設定

引言自 a24922075:
已確認裝置管理員有抓到Mega版的com 但 LIFA檔還是無法編譯燒入

看起來是沒有安裝NI-VISA

http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/zht/pg/1/sn/ssnav:ndr/q/NI-VISA/fil/AND(nicontenttype:driver,%20sitesection:ndr,%20AND%20(OR(nigen10:1640,%20productcategories:1640,%20%22NI-VISA%22)%20,%20OR(nilanguage:zh-TW,%20nilanguage:en)))/

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    讚:0 文章日期:2016/05/18 18:20
a24922075

暱稱:
經驗值:174
等級:師傅
發文:5
回文:10
版本:
闖關狀態:
冰火山
前往地圖:
8樓
字級設定
謝謝你 以解決了
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    讚:0 文章日期:2016/05/18 23:29
0911878917

暱稱:
經驗值:39
等級:學徒
發文:3
回文:2
版本:請選擇
闖關狀態:
前往地圖:
9樓
字級設定

請問一下 這是甚麼問題

C:\Program Files (x86)\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base/LIFA_Base.ino:39: undefined reference to `syncLV()'
 
sketch\LIFA_Base.ino.cpp.o: In function `loop':
 
C:\Program Files (x86)\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base/LIFA_Base.ino:58: undefined reference to `checkForCommand()'
 
C:\Program Files (x86)\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base/LIFA_Base.ino:64: undefined reference to `sampleContinously()'
 
collect2.exe: error: ld returned 1 exit status
 
exit status 1
Error compiling for board Arduino/Genuino Uno.
 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    讚:0 文章日期:2016/08/03 09:13
superpcman

暱稱:superpcman
經驗值:23
等級:學徒
發文:0
回文:1
版本:LabVIEW 2013
闖關狀態:
荒蕪之地
前往地圖:
10樓
字級設定

搞出這一堆信息....看半天不知道問題在哪>"<

 

Arduino:1.8.4 (Windows 8.1), 開發板:"Arduino/Genuino Uno"

C:\Program Files (x86)\National Instruments\LabVIEW 2016\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino: In function 'void processCommand(unsigned char*)':

C:\Program Files (x86)\National Instruments\LabVIEW 2016\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:150:60: warning: left shift count >= width of type

       duration=(command[8]+  (command[7]<<8)+ (command[6]<<16)+(command[5]<<24));   

                                                            ^

C:\Program Files (x86)\National Instruments\LabVIEW 2016\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:150:77: warning: left shift count >= width of type

       duration=(command[8]+  (command[7]<<8)+ (command[6]<<16)+(command[5]<<24));   

                                                                             ^

C:\Program Files (x86)\National Instruments\LabVIEW 2016\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino: In function 'sevenSegment_Config(unsigned char*)':

C:\Program Files (x86)\National Instruments\LabVIEW 2016\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:632:41: warning: iteration 7 invokes undefined behavior [-Waggressive-loop-optimizations]

     sevenSegmentPins[(i-1)] = command[i];

                                         ^

C:\Program Files (x86)\National Instruments\LabVIEW 2016\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:629:3: note: containing loop

   for(int i=2; i<10; i++)

   ^

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::setRowOffsets(int, int, int, int)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::pulseEnable()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::write4bits(unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::send(unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::write8bits(unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::clear()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::home()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::setCursor(unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::noDisplay()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::display()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::begin(unsigned char, unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::init(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::LiquidCrystal(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::noCursor()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::cursor()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::noBlink()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::blink()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::scrollDisplayLeft()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::scrollDisplayRight()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::leftToRight()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::rightToLeft()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::autoscroll()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::noAutoscroll()'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\LiquidCrystal\LiquidCrystal.cpp.o (symbol from plugin): In function `LiquidCrystal::setRowOffsets(int, int, int, int)':

(.text+0x0): multiple definition of `LiquidCrystal::createChar(unsigned char, unsigned char*)'

sketch\LiquidCrystal.cpp.o (symbol from plugin):(.text+0x0): first defined here

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\main.cpp: In function 'main':

C:\Program Files (x86)\National Instruments\LabVIEW 2016\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:632:41: warning: iteration 7 invokes undefined behavior [-Waggressive-loop-optimizations]

     sevenSegmentPins[(i-1)] = command[i];

                                         ^

C:\Program Files (x86)\National Instruments\LabVIEW 2016\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:629:3: note: containing loop

   for(int i=2; i<10; i++)

   ^

collect2.exe: error: ld returned 1 exit status

exit status 1
開發板 Arduino/Genuino Uno 編譯錯誤。

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

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    讚:0 文章日期:2017/08/29 22:08
 之1(10篇)
 
 
   會員中心 
帳號:
     
密碼:
     
  以後自動登入
 
註冊
   待回覆文章 
1. 如何把DAQ的量測訊號傳入SQL EX...
 
   Top 5 熱門討論 
1. Crash Reporter問題
2. 如何把DAQ的量測訊號傳入SQL EX...
3. 有關LABVIWE與PLC無法控制,因...
4. myRIO 用25ns的速度去打方波,輸出訊號上不到3.3V ,下也到不了0V
5. Actor framework 20分鐘快速建立
 
 
 
LabVIEW討論區 站長信箱 關於我們 站內聲明
國家儀器股份有限公司贊助;Sponsored by NI.
© 2010 National Instruments, Taiwan. All rights reserved. design by begonia