I'm using LV6i and I'm a little bit unhappy with that new data type VISA
resource name which is input to the VISAOpen VI.
If I use the FindResource VI, it returns a list with all the found
resources. How can I select out of this list and wire the result to VISA
resource name input. Is there a function to convert string into
VISAResourceName? I found only VISAResource controls and constants, aren't
there any conversion functions? If not, FindResources is useless, cause you
can't use that information for further processing.
Second question: Is the VISA Resource control a hidden FindResource because
it offers me some resources in my system, but not all of them (in fact, it
offers me COM1 and LPT1 but not GPIB).
Last but not least a question
of a more programming philosophy nature: If I
execute a VISAOpen to a instrument on the GPIB bus, it changes into remote
operation. But why does the VISAClose not the exact reverse the VISAOpen,
e.g sends a GoToLocal to the device, so that the instrument returns into
initial condition ? I find it more consistent to leave a VISA execution
chain with device on local. If I want to set a device into local I have to
use the Misc VI with loc xx input. And this VI doesn't use the VISA resource
name but a string. That's rather inconsistent.
Any opinions?
Oliver Friedrich