01-15-2008 07:48 AM
01-16-2008 01:55 AM
01-16-2008 08:52 AM
01-16-2008 09:43 AM
01-16-2008 11:25 AM
01-16-2008 07:46 PM
01-16-2008 09:10 PM
Why aren't you confident in using Hyperterminal? I always try serial communication with that first before trying to write any code. If I can't get communication to work with Hyperterminal, I know there is something wrong with the com settings, the cable, or command. I don't have to worry about bugs in a program I just wrote. Also, if you contact the vendor, they will in most cases, be very familiar with Hyperterminal. Many will have never heard of LabVIEW and suggest Hyperterminal anyway. If you can't get Hyperterminal to work, then you should not even bother with LabVIEW.
I don't understand your comment about seeing two characters for every one you enter. The number of characters received is not a function of the number of characters sent when you are connected to an instrument. Exactly what help are you referring to?
01-16-2008 09:47 PM
@Knight of NI
I am sorry, i guess i did not convey my message clearly.
When i meant i was not confident with the Hyperterminal test, i was referring to the fact that i am unfamiliar with the hyperterminal test for the device. I am familiar with the loopback test and it works. However, i am not sure about how to talk to a device using the Hyperterminal test.
My knowledge of the hyperterminal test is based on this page
http://www.ni.com/support/serial/verhyper.htm
If this isnt what has to be done, please direct me to a correct version of the test.
When i connect my device to the serial port and run hyperterminal, a connected symbol appears at the bottom left of the hyperterminal window. If i type in characters into the window, nothing happens
01-16-2008 10:12 PM
That's a loopback test where you connect the tx and rx lines of the cable together. All that is verifies is that the serial port on the pc works and that you have continuity of the lines. It does not verify that you have the correct cable for the instrument, or that you have the com port settings for the instrument, or that you are sending the correct commands to the instrument. To test communiucation to the instrument, connect the cable to the instrument and then open a Hyperterminal session. Select the com port and com settings. Then, send a command to the instrument. You have a DMM so if the instrument is in Voltage mode, send a command to set it Ohms. If that works, send the command that requests the instrument to take a reading and return a measurement. If the instrument does not switch to ohms or if you do not get a response, then something is wrong. Double check the com settings, double check the type of serial cable you are supposed to use (there are different types), and double check the commands. All of this information should be in the manual for the instrument.
If you have an electronic copy of the manual, attach it so someone can look at it. If you don't have a copy, provide a link to it. Also, if you could attach a copy of the VI you are using, that would help as well. Be sure the VI includes the actual commands you are sending. That means that if you are using a front panel control, you need to enter the command in the control and then go to the edit menu and select 'Make Current Values Default', save the VI, and then attach it.
01-16-2008 11:29 PM