LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial (RS 232) communication

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?

0 Kudos
Message 11 of 16
(3,364 Views)

Hi Ravens,

                  It is our requirement to do that file transfer in labVIEW.I'll be so obliged if you can rewrite my code.

 

Regards
RobinHood
0 Kudos
Message 12 of 16
(3,345 Views)

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.

Regards
RobinHood
0 Kudos
Message 13 of 16
(3,334 Views)

Hi

        your query got solved?

 

Regards
RobinHood
0 Kudos
Message 14 of 16
(3,282 Views)
i have a problem almost like u,and i want to know if there is someone who can help me.I want to send data from a DMM MAS-345 via Rs232(my data settings in labview are baud rate=600,data bits=7,parity=none,stop bits=2,flow control=none,delay before read=10000ms) ,and i don't know why does it showes an error when i try to run the application(error -1073807202).I use like example VISA configure serial port,and i don't know if is wrong!!!I will appreciate if someone can help me.
0 Kudos
Message 15 of 16
(3,264 Views)
started a new thread here
0 Kudos
Message 16 of 16
(3,262 Views)