03-27-2008 11:22 AM
03-27-2008 11:57 AM
03-27-2008 12:16 PM - edited 03-27-2008 12:18 PM
For the VISA Resource Name control, you have to select the port that the instrument is connected to. If you click on the little arrow on the right side of the control, you will get a list of available resources.
p.s. Please don't try to squeeze your entire question into the message topic. You've got the message body for doing that.
03-31-2008 06:34 AM
03-31-2008 08:38 AM
The functions you are using are obsolete and I don't even know where you could have found them with LabVIEW 7.1. One problem that you could be having is that the old serial functions used port '0' for Com1 and port '1' for Com2.
If you really want to use your own serial functions, use the shipping examples (Basic Serial Write and Read) but it would be far better if you used the instrument driver that ships with LabVIEW. Go to the Instrument I/O>Instrument Drivers palette and you will see a HP34401 palette. It has all of the functions you need and a Getting Started example.
04-01-2008 10:08 AM
Thanks for the help,
04-01-2008 10:32 AM
If you would use the driver I mentioned, this would be done for you.
If you insist on writing your own code and reinventing the wheel, the command is SYST:REM. However, you may have other problems. You might not have the correct com settings (baud rate, parity, handshaking,etc.), the correct type of RS-232 cable (null modem or straight-through), and you might not be terminating your commands correctly (CR or LF). Try some basic communications with Hyperterminal and at least look at the code in the shipping example.