06-26-2008 02:11 AM
06-26-2008 10:23 AM
06-26-2008 08:51 PM
Hi Smercurio,
Thanks for the reply. I only have some example programs which were written using Visual Basic 6.0 as reference. I do have the Intermec Programming Language(IPL) Guide also.
I had tried to do some callings to the printer using the commands from the IPL Guide, but it seems that the printer doesn't respond to anything at all. I am using the basic_serial_write_and_read.vi to do some serial programming with the printer and LabVIEW but to no avail. Every command that I tried to input, the read control returns exactly what I had input, which probably shows that it is not working as I hope it is.
I had used LabVIEW for my final year project during my university days, but it had nothing to do with serial connection/communication, so you can say I am a greenhorn in this area.
Attached is the VI that I used to do the calling and the IPL Guide.
Many thanks!
Regards,
YuanGe
06-26-2008 09:12 PM
As mentioned in the manual, you need to send the ASCII control codes and based on your version of the basic serial write and read, you are not doing that. What you are sending is the characters '<', 'S', 'T', 'X', etc. The <STX> control code is a hex02 and can also be represented in '\' Code Display (what you have) as \02.
The manual also has instructions on how to use Hyperterminal. If you don't have a test program from the vendor, you need to run Hyperterminal first to at least determine whether you have the correct cable.
06-26-2008 10:59 PM
06-26-2008 11:29 PM
06-30-2008 05:46 AM
Hmm...it is still returning the exact inputs that I entered. Is there any VI examples of using LabVIEW to do a simple connection to a Intermec Printer like PB50?
Regards,
YuanGe
07-01-2008 05:49 PM
07-01-2008 07:57 PM
Hi Simran_K,
I had tried communicating via the hyperterminal which works fine. It seems that my printer 'listens' to the commands based on the progmming tool called Fingerprint from Intermec rather than the <STX> stuff from the IPL guide.
Anyway, after testing with hyperterminal, I tried to use the Advanced Serial Write and Read.vi instead of the basic_serial_write_and_read.vi to command the printer using Fingerprint which interestingly works. I am still buffled at why the basic vi doesn't work whereas the advance vi is able to send the Fingerprint commands to the printer without much fuss. The settings for both vi are almost similar just that the advance vi has more configurations which i did not really touch or adjust.
Regards,
YuanGe
07-02-2008 11:23 AM