I'm trying to communicate to a spectrum analyzer over the (NI 488) GPIB from Visual Basic 2005. I understand that I need to include the two .bas files in my project.
I'm very new to Visual Basic. I added the two files to my project, but I keep getting compilation errors. Here are some of them:
for Vbib-32.bas, I get the compilation errors:
"Description expected" and it points me to Attribute VB_Name = "VBIB32"
"'Option' statements must precede any declarations or 'Imports' statements." and it points to Option Explicit
Each of the "Declare Function ibask32 Lib "Gpib-32.dll" Alias "ibask" (ByVal ud As Long, ByVal opt As Long, value As Long) As Long" lines gives me the following error: 'Statement is not valid in a namespace'.
What am I missing here?
Thanks!