Jump to content

my rs232 init want is wrong ?


toaran

Recommended Posts

hi

i use some rs232 ports to comunicate with microcontrollers ....

my init parts looks like this :

schnittstellen_init.JPG

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

Link to comment

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.