LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To connect a Power Supply over RS-232 in LabView

1. I would skip the IVI driver form Agilent and use the LabVIEW/VISA driver from NI or the example that someone else posted. IVI can be nice but it's probably a bit too complicated for a beginner to set up quickly.
2. You don't need anything from Agilent.
3. You should install MAX
4. You should install VISA
5. You don't need IVI right now (only if you want to run Agilent's IVI driver)
6. VXIpnp is just a folder that some components of VISA and IVI get installed to. Leave it there.
7. Hyperterminal is a terminal emulation program that comes with windows. Go to it from Start>Programs>Accessories>Communication. This is a program designed for serial communication. You open Hyperterminal and configure the port. You need to select baud rate, parity, handshaking, stop bits, etc. If any of these settings are wrong or the cable is incorrect, you will have errors. A framing error indicates that one or more of the port settings is incorrect. A termination character is usually a line feed or carriage return that gets appended to the end of the command line. Hyperterminal adds this for you when you type the command and hit the enter key. When you write a program in LabVIEW, you have to do this in your code. The Instrument I/O Assistant does this as well. On a Write command, the termination character is shown on the right side of the screen. A line feed is a \n and a carriage return is a \r. You have to find out which one your instrument requires. That info should be in the manual. Imho though, it's important that you get everything working with Hyperterminal first. Serial communication is a big enough pain with adding the complexity of writing your own program first.
Message 21 of 23
(991 Views)
Hello !

please check the picture out !

best wishes
0 Kudos
Message 22 of 23
(915 Views)
I'm not sure why you would get a timeout error on a write. On the Select Instrument tab, did you click the Properties button (to the right of the instrument list) and configure the port to be exactly like the instrument itself is configured? Baud rate, parity, stop bits, flow control all have to match. Second, you appear to have a syntax error in your command. I don't believe you should have the " mark as the first character. Lastly, did you ever get communication to work with Hyperterminal? I can't stress strongly enough the need to do this. You could have the wrong cable type or com parameters and it's better to troubleshoot these types of issues before you do any custom programs.
0 Kudos
Message 23 of 23
(898 Views)