Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66774

Special RS232 communication implementation

$
0
0

Hi all, 

 

I want to develop a vi which does the following operation :

- The RS232 port of PC is connected to a PIC microcontroller hardware.

- The VI has to send a byte from PC to the PIC and then it has to wait for an echo of the same byte which is sent back to PC by the PIC controller to ensure that the byte is sent properly.

- If the echo is matched with the byte sent, it has to send the next byte and again wait for its echo and repeat the process for other bytes to be sent or else if the echo doesnt match/ no echo received, it has to give an error message/wait for a predefined time to make sure a timeout has occured respectively.

- Once all the bytes are sent from VI, and all corresponding echoes are received from the PIC, the vi has to wait for the output series of  bytes from the PIC which can come immediately after the last echo was sent or after some time.

 

This should work for all baud rates over RS232 serial port.

 

Can anyone here guide me in implementing this as I am new to labview?..All suggestions are welcome.


Viewing all articles
Browse latest Browse all 66774

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>