發表文章

目前顯示的是有「labview」標籤的文章

[第28期] LabVIEW Queued Message Handler tutorial/LabVIEW佇列訊息處理器教學

圖片
This video shows how to use the design pattern of Queued Message Handler for programming in LabVIEW, including: 1. Use QMH Template when create project 2. Use Refnum (point) to read/write data transfer 3. Use dynamic event to send data 這個視頻說明如何在LabVIEW使用佇列訊息處理器的設計模式來撰寫程式,包含: 1. 建立專案時使用QMH模板 2. 使用參考(指標)讀寫數據 3. 使用動態事件傳遞數據

[Note 5] 使用NI package manager安裝Vision Development Module(VDM) 2021/Install Vision Development Module with NI package manager

圖片
由於在更新LabVIEW 2021後,Vision Development Module (VDM)也要更新到2021年版,在NI的網站無法下載到軟體,因此我使用NI Package Manager來安裝VDM軟體。 安裝的過程如下:

[第12期]Migrate LabVIEW to Python: Use Expression Node and Math library/使用Expression Node和Math函式庫

圖片
This video shows how to use mathematical functions in LabVIEW and Python. We introduce Expression Node for non-conplex data type calculation in LabVIEW and applications of Math library in Python. Some examples (conversion of degree and radian, the plot of sine wave etc.) are provided for the demonstration of Expression Node and Math library in LabVIEW and Python respectively. 本視頻說明如何在LabVIEW和Python中使用數學函數。 我們介紹LabVIEW的Expression Node來處理簡單的資料型態,以及Math函數庫在Python中的應用。 我們也提供的一些範例,如角度與弧度間的轉換、Sine波的繪製,來說明Expression Node和Math函數庫分別在與Python中應用。 References: 1. Expression Node ( https://zone.ni.com/reference/en-XX/help/371361R-01/glang/expression_node/ ) 2. math数学函数 ( https://docs.python.org/zh-tw/3.7/library/math.html#angular-conversion )

[第11期]Migrate LabVIEW to Python: read file to XY graph/使用Python改寫LabVIEW程式: 讀檔輸出XY圖

圖片
This video shows how to migrate LabVIEW to Python. Examples of reading file to XY graph are demonstrated by using LabVIEW and Python. Content: 1. Read file and plot XY graph with LabVIEW 2. Read file and plot XY graph with Python 本視頻說明如何使用Python改寫LabVIEW程式,分別使用LabVIEW與Pyhon寫出讀檔輸出XY圖的範例來說明。 內容: 1. LabVIEW讀檔並繪製XY圖 2. Python讀檔並繪製XY圖

[第6期]Write LabVIEW VISA program to control Dobot Magician/撰寫LabVIEW VISA程式來控制Dobot Magician

圖片
  This video shows how to control Dobot Magician by writing LabVIEW VISA program. The content includes: 1. Protocol description of PTP mode command 2. Write Protocol by VISA to control Dobot Magician 這個視頻說明如何撰寫LabVIEW VISA程式來控制Dobot Magician。 內容為: 1. 通訊指令說明 (PTP mode command) 2. 用VISA寫傳輸指令來控制Dobot Magician 參考資料/References: 1. Dobot Communication Protocol https://www.dobot.cc/downloadcenter/dobot-magician.html?sub_cat=72#sub-download 2. Communicating with the Dobot Magician using raw protocol https://jacquesjohnston.wordpress.com/2019/01/29/communicating-with-the-dobot-magician-using-raw-protocol/

[第5期]Dobot Magician robotic arm Introduction/Dobot Magician機器手臂簡介

圖片
This video gives the brief introduction of Dobot Magicain robotic arm and provides some documents and resources. 這個視頻提供簡單的Dobot Magician機器手臂的簡介,以及一些文件與資源。 Content: 1. Software & Driver Installation 2. Documents & Resources 內容如下: 1. 軟體與驅動程式的安裝           2. 文件與資源  References: 1. CH340 Drivers for Windows, Mac and Linux https://sparks.gogo.co.nz/ch340.html 2. Magician Studio v1.9.4 https://www.dobot.cc/downloadcenter/dobot-magician.html?sub_cat=70#sub-download 3. Dobot Magician User Manual https://iptech1.com/pdf/Dobot-Magician-User-Manual.pdf 4. Dobot Communication Protocol, Dobot Demo https://www.dobot.cc/downloadcenter/dobot-magician.html?sub_cat=72#sub-download 5. Hands-On Introduction to LabView with the Dobot Magician https://www.dobot.us/download/hands-on-introduction-to-labview-with-the-dobot-magician/# 6. Communicating with the Dobot Magician using raw protocol https://jacquesjohnston.wordpress.com/2019/01/29/communicating-with-the-do...

[第4期]使用LabVIEW視覺模組擷取Webcam影像與存檔/Use LabVIEW Vsion Module to grab and save the image of the camera

圖片
本影片在說明如何使用LabVIEW視覺模組擷取Webcam影像並存檔 This video shows how to use LabVIEW Vsion Module to grab and save the image of the camera 大綱/Outline: 1. 安裝機器視覺開發模組 Install Vision Development Modul (VDM) 2. 安裝機器視覺擷取軟體 Install Vision Acquisition Software (VAS) 3. 讀取Webcam影像 Read Image from webcam 4. 將Webcam影像寫入檔案 Write Image to file

[第2期]使用LabVIEW Python Node與OpenCV來讀取圖片/Use LabVIEW Python Node and OpenCV to read image

圖片
本影片介紹如何使用LabVIEW Python Node與OpenCV來讀取圖片。 This video shows how to use LabVIEW Python Node and OpenCV to read image. 步驟 Steps: 1. 使用命令提示字元安裝OpenCV Install openCV in Comand Prompt 2. 完成OpenCV讀取圖片的函數 Complete ReadImage() function 3. 用Python Node呼叫讀圖的函數 Call function by Python Node

[LabVIEW] Get stock data from yahoo finance by LabVIEW/使用LabVIEW獲取yahoo財經上的股票資料

圖片
  This example shows how to use LabVIEW to get stock data from yahoo finance 這個範例說明如何使用LabVIEW擷取yahoo財經上的股票資料 1. get yahoo finance data by using LabVIEW 使用LabVIEW擷取Yahoo財經的資料 2. Use HTTP Client VIs to get web content 使用HTTP Client的VIs來獲取網頁內容 3. Determine the data range you want to get 決定想要獲取的資料範圍 4. Select data range by using Match Pattern VI 使用Match Pattern VI選擇資料範圍 5. Find one row data by using Match Pattern VI 使用Match Pattern VI尋找一列資料 6. Find add row data by using Match Pattern VI 使用Match Pattern VI尋找所有列資料 7. Send all array data to Multi Listbox 將陣列資料送到Multi Listbox

(下) BLE (Bluetooth Low Energy) Toolkit for LabVIEW (低功耗藍芽工具套件)

圖片
將LabVIEW更新到2014版後,新買的BLE Dongle也到貨了,接下來要完成LabVIEW BLE Toolkit的安裝,以及BLE Dongle Driver的安裝。 使用VIPM安裝完BLE Toolkit,接著按下Show Examples按鈕,      可選擇以下三個VI來測試,      ble_scan_devices.vi Discover and connect to BLE devices ble_read_write_characteristics.vi Read and Write a Characteristic value, providing the  UUID  for  Service  and  Characteristic ble_read_hr_monitor.vi  Acquire Heart Rate data stream, for devices with Heart Rate Profile 執行 ble_read_hr_monitor.vi,

(上) BLE (Bluetooth Low Energy) Toolkit for LabVIEW (低功耗藍芽工具套件)

圖片
之前使用過 App inventor開發過BLE App,但實在是有不方便的地方 例如Debug的部分, 最近翔從 LabVIE來實現與BLE的溝通,於是搜尋相關資訊,發現LabVIEW有提供相關的套件, 1. 下載資訊: Communicate with Bluetooth Low Energy (BLE) Devices in LabVIEW https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LuHSAU 2. 低功耗藍芽工具套件下載處 BLE-Toolkit-LabVIEWriu https://github.com/MuSAELab/BLE-Toolkit-LabVIEW 3. 使用VIPM安裝 套件內容: BLE Toolkit v1.4.0.2 by MuSAE Lab Author: Raymundo Cassani Copyright: Copyright (c) 2017, MuSAE Lab License: MIT Compatible LabVIEW Versions: >= 2013. Compatible OS Versions: ALL. Description: The BLE (Bluetooth Low Energy) toolkit allows the interaction of BLE devices with LabVIEW. The BLE toolkit for LabVIEW is an implementation of the Bluegica BGAPI, that allows to communicate with Bluegiga BLE(D)11x and WF121 devices using USB/UART. Provided examples indlude: * Scanning for BLE devices * Reading and Writing Characteristics values * Acquiring Heart Rate data stream 由於目前使用的LabVIEW版本太舊,需要更新, ...