05-24-2012 11:39 AM
As I already said, you will have to break the file into smaller parts and transfer them sequentially. Attach what you have written so far and be specific about the sort of problems you are having.
05-25-2012 02:19 AM
Thanks for your reply.
Here, am sending the code. In this code, I'm transmitting & receiving in the same PC itself.
Am reading the strings & transferring the strings to VISA write; receiving the strings via VISA read.
It works for file size about some kB's. But I have to transmitt about 125kB of file size as it shows some timeout error. I tried by putting some time delays, but it didn't fix the error.
If it is possible to send the entire file means welcome; rather than reading the strings.
Please help me in this.
----------------------------------------
Thanks & Regards,
Ashokan. M
05-25-2012 10:21 AM
Someone else who is apparently unable to read the previous answers.
You simply CANNOT do the write and read sequentially. It makes no sense. You are trying to simulate the file transfer from one pc to another. Your receiver would be a separate VI doing nothing but a read. You would also want to break up the sending into smaller chunks, as I previously said.
With all of this said, there is a good chance you will have problems. There is no provision for handshaking or error correction. In the old days before the internet and connections to bulletin boards over modems, there were protocols for file transfer such as zmodem. I don't know if this was ever implemented in LabVIEW but you could do a search.
05-26-2012 01:43 AM
I have modified the program but I want the timeout to be equal to data bytes but with the feedback node it is only 10 sec and if I make it 20 sec it take too much time to read the bytes at port..Any input would be helpful...thanks in advance...Niladri
05-26-2012 11:30 AM
Since you have again refused to take a single piece of my advice, I see no reason to offer any more or to even look at any more posts of yours. Good bye and good luck.
05-27-2012 10:57 PM
Sorry but I am not getting your point you said sequentially visa Witt and read is not possible so I changed it so once I read a command from another computer only than I send the complete file and for sending in chunks is not possible as I told you before....
05-29-2012 10:20 AM
Perhaps some day you will study some of the underlying communications protocols of such basics as TCP/IP. You will then see that the data you send (such as these endless posts of yours), are in fact broken up into discrete packets and not one huge one. You have not provided a single reason why the file must be transmitted as one huge block instead of smaller packets and if you even had the smallest clue as to what was involved, you would not be arguing about it. Perhaps you will also finally understand why you should have a separate write and read VIs. That is in fact what you will ultimately be doing if your initial explanation is correct.
05-29-2012 10:48 PM
Actually the truth is I am not from communication(I am a mechanical engineer) I have basic or no knowledge of transfer protocol. But my sir is saying that the magnetometer is will send data 24*5 and I have continuously send and record the data from magnetometer and the data will get updated is every 80 mSec I have to simulated this condition first this my job so anyone can suggest me any better solution...Would be most appreciated.