Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB quieries

Dear Sir,
I am an undergraduate form the university technology of malaysia. I
am
doing my project using the GPIB interface card. Well, I had go through some
of
the web pages and i had downloaded the niglobal.bas and vbib-32.bas files
for
using programming with Ms Visual Basic 5.0 on the windows95 os.
After addding two files to the module folder in my Visual Basic and
try
to run ibdev function
call ibdev(0,12,0,t10s,1,0,0)
There is an error that pop up as follow : Invalid Outside Procedure. and it
highlighted the Bdindx% variable which is the Index of the access board for
the
device. Can you please tell me what is going wrong with it. I am using GPIB
card
as GPIB0 and device primary address is 12.
Is that your's comp
any Win32 Interactive Control Utility can use on
other companies GPIB card like Capital Equipment Corporation PC<>488?
And my last question is, in the Win32 Interactive Control
Utility,
after key in ibdev commmand, in the enter timeout : part, it ask me to key
in
again the timeout if i type T10s and it pass when numbers like 10 was key
in.
Besauce according to your manual, T10s should be key in.
Hope that you can help me in it. Thank you.
from: chewhow@hotmail.com
0 Kudos
Message 1 of 2
(3,550 Views)
chlim wrote...
: using programming with Ms Visual Basic 5.0 on the windows95 os.
: After addding two files to the module folder in my Visual Basic and try
: to run ibdev function
: call ibdev(0,12,0,t10s,1,0,0)
: There is an error that pop up as follow : Invalid Outside Procedure. and
it
: highlighted the Bdindx% variable which is the Index of the access board
for
: the device.

In VB, only declarations are allowed outside any procedure. All other code
must be in a procedure- for example, add a command button to a form and put
the code in the Click event:

Sub Command1_Click()
call ibdev(0,12,0,t10s,1,0,0)
' other code to write to gpib device...
End Sub

: in the Win32 Interactive Control Utility,
: after key in ibdev commmand, in the ent
er timeout part, it ask me to key
: in again the timeout if i type T10s and it pass when numbers like 10 was
key
: in. Besauce according to your manual, T10s should be key in.

T10s is a constant that the language interfaces (eg. the NIGLOBAL.BAS file)
define for use in your programs. In the Interactive Control Utility you must
use the corresponding numeric value (which is 13 - see IBTMO in the Function
Reference manual).

--
RobSmith
0 Kudos
Message 2 of 2
(3,550 Views)