LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we use RS422 serial port communication in LabView.???

Solved!
Go to solution

Hi arun,

 

can you please suggest any article or any example vi for browsing and sending files over serial port in labview instead of sending data directly

A serial port is always sending data "directly"! It was never made for "browsing files" or implementing any other file system methods you utilize when accessing hard drives or USB memory sticks!

 

When you need examples on how to transfer data over serial ports: use "Basic serial read and write" found in the example finder.

When you need examples on file transfer protocol: look out for descriptions of the FTP protocol. (Or read articles about the older XMODEM protocol and its successors YMODEM and ZMODEM…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 41 of 42
(1,880 Views)

Are these files ordinary text? Else you'd have to e.g. prepend a message length and then binary data like in the TCP example (check it out). Else you'll just need to read a file and send the content. If the file includes Termchars you'll need to handle it like above.

Note: This sends the content of the file, not a file per se.

 

ReadAndSendFile.png

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 42 of 42
(1,877 Views)