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