04-17-2009 09:52 AM
Here is Receiver VI fixed.
Did you ever solve the error message Error -1073807346?
I realized another potential problem with your VI's. How large of a file are you trying to send and at what baud rate?
Assume 9600 baud, that is about 960 bytes per second (depending on data bits and stop bits and parity bits.) For the sake of argument, we'll say 1 KB per second. You have a timeout value of 10 seconds, so if you are trying to read more than 10KB, you'll timeout before you get the requested number of bytes read.
That means for the heart of your program, you'll really need to read the data as chunks at a time. That means a loop. That also means some handshaking so that one PC can signal to the other when to put the next chunk out in the serial lines. Along with the worries I previously mentioned about synhronizing the start of the Receiver program so that starts before the sender (but no more than 10 seconds before the sender). Also, to make sure you don't overflow either sending or receiving buffers for the serial port on either PC.
For all but the most trivial of file transfers, you really have a much more complicated problem either that two VI's that are just a few strung together VISA reads or writes won't be able to solve. All of this can be done in LabVIEW, but you need a bit more sophisticated program. Is there a reason you want to do the file transfer using LabVIEW rather than some other PC communication program?
04-19-2009 11:47 PM
Hi Ravens,
It is our requirement to do that file transfer in labVIEW.I'll be so obliged if you can rewrite my code.
04-20-2009 01:34 AM
Hi Ravens,
I've changed the Timeout to 100seconds and made the enable termination character false.Now sometimes I am able to receive the file at he receiver and sometimes not.I'm getting error codes 1073807253,107380252,43 even though I am able to get the file at the Receiver side.
04-30-2009 12:41 AM
Hi
your query got solved?
04-30-2009 03:04 AM
04-30-2009 03:12 AM