12-03-2015 09:13 AM
Hi, I have done this code which helps me to send 1 file from folder to another using tcp/ip in labview, as part of learning. Next I am trying to change this code to send multiple files from a folder to another folder using tcp/ip in labview. Iam not sure how to do it. Can someone please help me by suggesting a method. I have attached the VI's for reference. Thanking You.
12-03-2015 11:19 AM
You will definately want to change over to a state machine for this.
A proper state machine will make this really simple and allow for the possibility of retries in the case of an error.
12-03-2015 11:29 AM - edited 12-03-2015 11:47 AM
Do you really need to send and receive the same file over and over as fast as the computer and network allows? Are you really creating a new listenener with every iteration? 😮
I don't see any way to e.g. specify the remote folder, so this seems a bit single-purpose. Once you sens multiple files, the target path would need to be embedded into the communication.
If these computers are on the same network, wouln't it be simpler to just use windows file sharing and write to the remote folder directly?
Or how about a network shared variable to share data between machines?
12-04-2015 03:14 AM
Hello, thank you for your kind reply. But I am actually novice in the field of labview and learning stuff. So what I want to know mainly is what should I use for sending mutiple files from one folder to another. As u seen in the code I ve uploaded for sending 1 file I ve used Write to Binary file and Read to binary file. But with that only 1 file is possible. I need to send multiple files. Its not like I select files one by one. I just select the source folder and the target folder and it automaticall copies all files from the source folder to the target folder using tcp ip. What should I use in place of write to binary file and read to binary file. Thank You.
12-04-2015
06:51 AM
- last edited on
10-14-2025
03:34 PM
by
Content Cleaner
For the sake of learning, reading the file, sending over TCP, and then writing the file is fine. But, again, you will want to use a State Machine. If you properly plan out your states before doing any coding, it will become a lot simpler.
The State Machine is such a fundamental architecture that you really should learn it anyways. And since you are still in the learning stages, here are some free tutorials:
3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Learning NI
Getting Started with NI Products
12-04-2015 07:12 AM
Thank You very much.