FTP
FTP(File Transfer Protocol,檔案傳輸協定)是一種用於在計算機之間進行檔案傳輸的標準網路協定。它允許使用者通過網際網路或區域網路將檔案在設備間傳遞。FTP協定基於客戶端-伺服器模型,其中客戶端發出指令,伺服器執行相應的操作。
FTP commands
一些常見的FTP指令:
- 連線相關指令:
- ftp: 在命令行中輸入此指令,可以啟動FTP客戶端並開始與FTP伺服器建立連線。
- open <hostname>: 連線到指定的FTP伺服器。
- 登入相關指令:
- user <username>: 提供用戶名以進行登入。
- pass <password>: 提供密碼以完成登入。
- 瀏覽和檔案操作指令:
- ls 或 dir: 列出伺服器上當前目錄中的檔案和子目錄。
- cwd <directory>: 切換到指定的目錄。
- get <filename>: 從伺服器下載指定的檔案到客戶端。
- put <filename>: 上傳客戶端上的指定檔案到伺服器。
- 其他操作指令:
- quit 或 bye: 斷開與伺服器的連線並退出FTP客戶端。
- mkd <directory>: 在伺服器上創建一個新的目錄。
- delete <filename>: 刪除伺服器上的指定檔案。
參考資料
https://en.wikipedia.org/wiki/List_of_FTP_commands
在LabVIEW中使用FTP
使用內建的FTP VI

資料上傳範例
參考資料
https://forums.ni.com/t5/Example-Code/Programmatic-FTP-file-transfer/ta-p/3526707
在LabVIEW中建立FTP Server資料夾
Access the FTP library directly through the following path and use VI to create an FTP folder.
1. Access C:\Program Files(x86)\National Instruments\LabVIEW 20xx\vi.lib\FTP.
2. Click the NI_FTP library
3. Use FTP[MKD].vi in FTP1.llb.
If you open FTP[MKD].vi, it is configured as below and you can use it to create a folder on FTP server.

參考資料
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019WObSAM&l=zh-TW