10-19-2012 10:51 AM
Hi,
Presently I use the HyperTerminal to communicate with the Laser. How can I use Labview to control the Laser instead of the HyperTerminal?
Thanks,
KN
10-19-2012 10:58 AM
Did you try searching for "hyperterminal" or "serial" in the forums before posting your question?
If you look in the LabVIEW example finder and search for "serial" you'll find examples that show who to use VISA Read and Write to communicate through a serial port.
10-19-2012 11:46 AM
Yes, I can use serial port to communicate with instruments but not the one that currently use hyberterminal to communicate with. It does not understand the hyberterminal command thru serial port.
Thank you for you help.
10-19-2012 11:48 AM
@KPRO wrote:
Yes, I can use serial port to communicate with instruments but not the one that currently use hyberterminal to communicate with. It does not understand the hyberterminal command thru serial port.
Thank you for you help.
That's likely because you need to append an End of Line to the command before writing to the serial port.
10-19-2012 12:33 PM
@KPRO wrote:
Hi,
Presently I use the HyperTerminal to communicate with the Laser. How can I use Labview to control the Laser instead of the HyperTerminal?
Thanks,
KN
What Laser? (Where is the "LMRTFMFY" Link)
10-19-2012 12:51 PM
@KPRO wrote:
Yes, I can use serial port to communicate with instruments but not the one that currently use hyberterminal to communicate with. It does not understand the hyberterminal command thru serial port.
Thank you for you help.
Oh, also make sure hyperterminal has closed out the port before trying with LabVIEW. Only one program can have it.
10-22-2012 10:54 AM
Hi,
Thank you very much for your help. I did run only one program and also add end of line to command line but still reading nothing.
Attached is the screen of hyberterminal with only simple command S: to display status of the laser.
Any advise are very much appreciated.
Khanh
10-22-2012 11:23 AM
@KPRO wrote:
Hi,
Thank you very much for your help. I did run only one program and also add end of line to command line but still reading nothing.
Attached is the screen of hyberterminal with only simple command S: to display status of the laser.
Any advise are very much appreciated.
Khanh
Looking at the doc you posted, this has to be insanely simple. Please post your VI so we can help you out.
10-22-2012 12:06 PM
Attached is the screen shot of the LV. Thank you very much for your help.
10-22-2012 12:23 PM
First and foremost, you have the read set to read only 2 bytes of data from the port, and according to your other doc, you are expecting WAY more than that.
Unfortunately, the none of the examples are great examples of real-world communications. I would recommend searching this forum for examples of serial communications and also learning about serial communications in general. For example, it appears that the response contains an EOL character. If that is ALWAYS true - and I've seen equipment where some responses do and some don't - you can use that to vastly simplify the serial read.