01-12-2006 10:16 AM
01-12-2006 10:45 AM
01-25-2006 10:30 AM
01-25-2006 10:39 AM
Did you try communicating with Hyperterminal? Like I said, that should be the first step before trying to write your own program. If you can't get it to talk with Hyperterminal, verify the com settings (baud rate, parity, etc.) and the serial cable itself. Typically, you use a null modem cable where the Tx and Rx lines are crossed.
I don't know what to say about two different command sets for the same instrument. The manufacturer should be the one that answers this question and should have some getting started help. They probably won't know anything about LabVIEW but if they shoould be familiar with Hyperterminal or some other terminal emulator program such as Procomm.
01-26-2006 03:45 AM
01-26-2006 11:28 AM
01-26-2006 11:45 AM
Okay, you've made some great strides in getting things to work. The I/O Assistant should, in most cases, work. First, when using the assistant, you have to use MAX (Measurement & Automation Explorer) to configure the serial port. Open MAX, expand Devices & Interfaces, select your com port and configure it. Second, when you use the assistant to write a command, you'll see a termination character box. By default, this is a \n. This is the control code for a Line Feed. Some instruments require this, some require a Carriage Return (\r), and some require both. Hyperterminal sends a CR\LF so you can try entering \r\n. The instrument manual should tell you what the instrument expects. Third, the assistant is set to transmit text. If you are using Hyperterminal to send a command like "read", you should be okay. If you are using Hyperterminal to send a series of hex characters, then the assistant can't be used. Lastly, make sure you're not trying to use the assistant at the same time you have Hyperterminal open. Windows doesn't allow this.
If you don't want to use the I/O Assistant, then look at the shipping examples for serial communication. The examples and the assistant both use VISA but the examples give you the ability to do more customization.
01-27-2006 03:52 AM
01-27-2006 08:56 AM
01-29-2006 10:18 AM