03-21-2008 02:04 PM
03-21-2008 03:20 PM
03-21-2008 04:07 PM
I only have COM1 and ASRL1::INSTR in the computer. I tried both with having other setting in the device the same as the one in labview... etc...9600bd, 8bit/no parity, and XON/XOFF, and I also used the volt meter to make sure there is nothing wrong with the rs232 cable. The command Z is an example code I got from the Instruction manual. I've tried Z, "Z", *Z, Z\r\n, "Z"\r\n, *Z\r\n (variations of inputs) but none of them work.
I saw there is a loopback.vi online, however it was written in labview5.1 and I can't open it in labview 8.1. I can't find any loopback example under help either. Can anyone show me how to write a loopback vi?? and do I need to short pin 2 and pin 3 in order to run it?
thanks!!
03-21-2008 04:20 PM
Yes, a basic loopback test just requires you to short pins 2 and 3. You don't need to write anything. You can simply run the basic example. Enable the write and read and whater you send will be received. You can also just open Hyperterminal and just start typing. As I said, this only verifies that the com port of the pc is working. It does not verify anything else.
I would strongly suggest that you do most of your initial debugging with Hyperterminal and try the opposite type of serial cable. The instrument manual should explain what type of cable is required but sometimes a manual skips this vital piece of information. The advantage of using Hyperterminal is that if you continue to have problems with that, you can contact the vendor and explain what is going on. Every vendor should be familiar with Hyperterminal but many will have never heard of LabVIEW. The use of LabVIEW also requires that you have properly installed NI-VISA.
03-21-2008 04:46 PM
Hi Dennis,
I know this sounds silly, but what is a Hyperterminal and how do you run it?
03-21-2008 04:53 PM
03-21-2008 08:24 PM
I believe for Mettler Toledo you need to wirte the following: (Zero the balance only works if the wight display is within 2% of the scale capacity --- I suggest you try TI (Tare Immediately).
You write TI + CReturn+ Line feed constant.
This should work and tare your balance.
Hope this helps.
03-23-2008 03:44 AM
Thanks Dennis and Jaime, I am indeed a beginner using LabVIEW ( I've only control the speed of a motor board using a DAQ board... so pretty much I have no idea how to use this software... espeically using the rs232 cable ...) I'm now out of town and won't be back on campus till thursday, I'll definitly do what you guys suggested, I really hope it works, and I'll keep you guys updated!!!!
Thanks a lot!!