I have this network analyzer and need to send commands to it via Excel VBA and GPIB. I have the GPIB and other hardware set up just fine, but I do not know how to simply send commands through the GPIB to the analyzer. I have considerable programming experience but I am brand new to VBA. After hours searching through hardware documentation and VBA tutorials my spirit is slowly dying. I believe I need to add the correct References in VBA (Tools -> References) but when I try to run sample code given by the documentation ("Call viOpenDefaultRM(defrm)") I get an error that the Sub or function is not defined.
Any help is very much appreciated. I am working as an engineer and somehow get thrown into tasks that require lots of coding.