07-23-2012 10:29 AM
Hello
I have problem in communication. I have one sensor imar sensor that can be easily communicate in Hyperlink but if I send same command for example "show conf" it doesn't responses It is connected with rs232 in com port 1. it will be nice if you give me some suggestion thanking you
regards
Solved! Go to Solution.
07-23-2012 10:48 AM
All the usual basics with serial communications:
Can you post your code (LabVIEW 2010 or earlier if possible)?
-CC
07-23-2012 10:48 AM - edited 07-23-2012 10:49 AM
What is "Hyperlink"? Do you mean Hyperterminal?
Are you sure you have all the baud rate and serial settings correct?
Do you get an error message when it fails to work in LabVIEW?
Are you sending the proper termination characters with the command you are writing when you do it in LabVIEW?
Please send the VI you are using in LabVIEW. Make sure you have the commands saved in it. If you have them in controls, then do a Save Values as Default before saving the file and attaching it to your message.
07-23-2012 10:53 AM
here is my code it has baudrate 57600
07-23-2012 10:56 AM
Yeah I can't open that (needs to be 2010 or earlier - see my first post)
Is 57600 baud rate the one specified in the manual for your device? This needs to be absolutely correct for the serial communications to work properly.
07-23-2012 10:56 AM
You don't need the sequence structure or the case structure.
When you are in Hyperterminal, do you need to hit the enter key after typing "show conf" to make it work?
The string you are writing is "show conf". It doesn't have any termination character at the end of it. Try adding \r or \n or \r\n when the string constant is set up to display \codes.
07-23-2012 10:59 AM
ya in hyperterminal i have to hit enter after command
07-23-2012 11:02 AM - edited 07-23-2012 11:02 AM
In that case, try adding \r or \n to the end of your "show conf" string (ie "show conf\n") like Ravens Fan suggested and see if that works.
-CC
07-23-2012 11:03 AM
thank you so much it works now
regards
07-23-2012 11:05 AM
Excellent, glad we could help.
Well done for marking a post as a solution (although I think Ravens post is more deserving)
Remember that giving Kudos is a great way to show appreciation for any help you recieve.
Good luck with the rest of your project.
-CC