‎09-08-2011 02:39 PM
I read the help file, it said <visa open.vi> open a new session. I wonder is the vi <visa configure serial port.vi> can replace <visa open.vi>?
that is, is the visa configure serial port.vi inlcude the function of visa open.vi ?
‎09-08-2011 04:25 PM
You can double click on Serial configure to see what it contains.
VISA open is not actually necessary. Any of the VISA functions will automatically open the serial port. The serial configure doesn't contain an explicit VISA Open, but it does open the serial port.
‎09-08-2011 04:30 PM - edited ‎09-08-2011 04:31 PM
One additional piece of information: VISA Open isn't actually necessary now. It used to be that you needed to use it. I don't really remember at what point the automatic opening got put in. The function is still there so that older code won't show up as broken when opening in newer versions of LabVIEW.
‎09-08-2011 04:37 PM
I'm not sure how it handles TCP connectios though. I always feel more comfortable using an explicit open when dealing with network connections. I realize the OP was discussing serial connections however since we are talking VISA, other connection types should be considered. After all, that was the whole purpose of VISA, to allow the connection to be agnostic with respect to the connection type.
‎09-09-2011 08:04 AM
It does the same thing for TCP connections.
‎09-09-2011 01:23 PM
@smercurio_fc wrote:
It does the same thing for TCP connections.
I still prefer explicit open/close rather than implicit.