toaran Posted June 16, 2007 Report Posted June 16, 2007 hi i use some rs232 ports to comunicate with microcontrollers .... my init parts looks like this : my problem is that if i start that vi i can read from any port i configured...(max 12) but i can write only to some of the com ports.. and everytime i restart the vi there are different ports ... i got no errors nothing .. with a port monitor on the same PC i see that the data is send as it should be ... but i tested it with a terminal program and a different PC and it seems that i only receive a CR/LF but not the data ... has anyone a idea what my problem is ? i hope i could describe my problem ... Toaran Quote
peteski Posted June 17, 2007 Report Posted June 17, 2007 Toaran, In what you've posted, If you already had opened a session to your serial port, you definately closed it before configuring, which doesn't really make much sense. You "got no errors nothing" because you aren't even wiring up the error hanling cluster. You are probably geneating an error but basically ignoring it. If you select "find examples" in the following location: http://forums.lavag.org/index.php?act=attach&type=post&id=6114 Then search for serial to find the following: http://forums.lavag.org/index.php?act=attach&type=post&id=6115 You can then get an example of a reasonable way to handle serial communications. Then modify that to your needs: http://forums.lavag.org/index.php?act=attach&type=post&id=6116 Hope this helps, -Pete Liiva Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.