National Instruments PC-OPDIO-16 Telescope User Manual


 
Chapter 4 The Fundamentals of Building Applications with NI-DAQ
© National Instruments Corporation 4-15 PC-OPDIO-16 User Manual
Put fh%, , strBuffer$
:
close fh%
:
Huge Buffer Access
Visual Basic does not support buffer allocation greater than 64 KB or huge buffer access. To
allocate and use buffers that are larger than 64 KB, consult the NI-DAQ memory management
functions.
String Passing
In Visual Basic, variables of data type String need no special modifications to be passed to
NI-DAQ for Windows functions. Visual Basic automatically appends a null character to the end
of a string before passing it (by reference, because strings cannot be passed by value in Visual
Basic) to a procedure or function.
Parameter Passing
By default, Visual Basic passes parameters by reference. Include the ByVal keyword if you
need to pass by value.