tengels Posted April 6, 2005 Report Share Posted April 6, 2005 Hi there, I need some help!!! I want to read a displacementsensor through serial communication. But i get a timeout error when the Visa is sending the string to the displacement sensor. I've tried to enlarge the timeout with a property node. Still no result. The string I'm sending is correct because it works if I use program hyperterminal to communicate with the sensor. Please HELP somebody, I am probably doing something wrong and can figure it out. :headbang: The VI is attached. The error will occur in the VISA write (error 1073807339) THNX Download File:post-1757-1112791619.vi Quote Link to comment
regisphilbin Posted April 6, 2005 Report Share Posted April 6, 2005 just out of curiosity, are you sure there's no need for a termination character? <cr> or <lf> can be appended to your command string if necessary. Regis Hi there,I need some help!!! I want to read a displacementsensor through serial communication. But i get a timeout error when the Visa is sending the string to the displacement sensor. I've tried to enlarge the timeout with a property node. Still no result. The string I'm sending is correct because it works if I use program hyperterminal to communicate with the sensor. Please HELP somebody, I am probably doing something wrong and can figure it out. :headbang: The VI is attached. The error will occur in the VISA write (error 1073807339) THNX 4449[/snapback] Quote Link to comment
tengels Posted April 7, 2005 Author Report Share Posted April 7, 2005 just out of curiosity, are you sure there's no need for a termination character? <cr> or <lf> can be appended to your command string if necessary.Regis 4451[/snapback] Accordingly to the manual the carriage return and line feed are optional. theo Quote Link to comment
Mark Balla Posted April 12, 2005 Report Share Posted April 12, 2005 I would agree with regis. The sensor needs something to tell it that the string is complete. If it is not a LF or CR it could be a non printable character like hex 03. Hyperterminal may be appending a nonprintable without you realizing it. One of the programs I use is called port monitor. It shows exactly what is being written and read from the serial port. you can download it here http://www.sysinternals.com/ntw2k/freeware/portmon.shtml I would start portmon and then use hyperterminal and see what characters are being passed back and forth. good luck. Quote Link to comment
Rolf Kalbermatter Posted April 16, 2005 Report Share Posted April 16, 2005 just out of curiosity, are you sure there's no need for a termination character? <cr> or <lf> can be appended to your command string if necessary.Regis 4451[/snapback] That would be a little strange it seems. Also you should consider that Hyperterminal actually adds a carriage return/line feed automatically to every line (after all you pressed the return key to tell it to send the string and the return key at least under DOS/Windows is equivalent to carriage return+line feed). Rolf Kalbermatter Quote Link to comment
Rolf Kalbermatter Posted April 16, 2005 Report Share Posted April 16, 2005 That would be a little strange it seems. Also you should consider that Hyperterminal actually adds a carriage return/line feed automatically to every line (after all you pressed the return key to tell it to send the string and the return key at least under DOS/Windows is equivalent to carriage return+line feed).Rolf Kalbermatter 4554[/snapback] Oops this was meant to be a reply to the previous message. Rolf Kalbermatter Quote Link to comment
tengels Posted April 20, 2005 Author Report Share Posted April 20, 2005 I would agree with regis. The sensor needs something to tell it that the string is complete. If it is not a LF or CR it could be a non printable character like hex 03. Hyperterminal may be appending a nonprintable without you realizing it. One of the programs I use is called port monitor. It shows exactly what is being written and read from the serial port. you can download it here http://www.sysinternals.com/ntw2k/freeware/portmon.shtml I would start portmon and then use hyperterminal and see what characters are being passed back and forth. good luck. 4515[/snapback] Thnx mballa with the monoitor I found out there was a non printable character. With the character the program works fine now. greetings Theo :thumbup: Quote Link to comment
Mark Balla Posted April 21, 2005 Report Share Posted April 21, 2005 Thnx mballa with the monoitor I found out there was a non printable character. With the character the program works fine now.greetings Theo :thumbup: 4575[/snapback] Your Welcome Thanks for the feedback. Quote Link to comment
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.