02-01-2006 07:41 AM
02-01-2006 08:53 AM
1. VISA is not only the preferred, it is the only supported method fro serial communication. VISA is a common API for serial, GPIB, VXI, PXI, USB, and Ethernet communication.
2. The com port is closed by the VISA Close function you see on the diagram. By doing a VISA Close, you enable other applications (i.e. Hyperterminal) to use the com port. The com port can be opened by using a VISA Open (Instrument I/O>VISA>VISA Advanced palette) function. In older versions of VISA, you had to first call the VISA Open to create the session. In more recent versions, if a VISA session is not already open when you do a VISA operation like a read or write, the session will be automatically created first. It's probably a good idea to still include a VISA Open once at the beginning of your program and a single VISA Close at the end but I must admit that lately I haven't always done the VISA Open, just the VISA Configure Serial Port.
02-01-2006 09:06 AM