02-15-2017 03:37 AM - edited 02-15-2017 03:38 AM
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…)
02-15-2017 03:41 AM - edited 02-15-2017 03:52 AM
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.