I am working with Measurement Studio 7.1 and VB .NET. I have a connected Agilent Multimeter and have downloaded the appropriate driver for the device. As a change of pace I have decided to use the Instrument Driver Wizard to create a VB class that wraps the library files for the device driver. I have creates the wrapper class but in order to create a new instance of this wrapper I need to provide the device's resource name or logical name. How do I get this information?
The comments in the wrapper class give this example syntax to obtain the information:
GPIB[board]::<primary address>[::secondary address]::INSTR<LogicalName>
However, they do not say where to use it...just entering this as an argument into the parameter field with the appropriate addresses and such will obviously yield VB. NET compiler errors.
I've gone as far as to open MAX and create a logical name to associate with the driver session. I then used the logical name i created as my resource/logical name argument. This did not work.
Whatever I enter as the resource name I get this error:
"An unhandled exception of type 'System.Runtime.InteropServices.ExternalException' occurred in MultimeterTest1.exe
Additional information: Primary Error: (Hex 0xBFFF0011) Insufficient location information or the requested device or resource is not present in the system."
Any help would be most appreciated as always.
~ Jeramy
CLA, CCVID, Certified Instructor