Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

DOS GPIB and QuickBasic libraries

I have written a program in QB4.5 that requires use of the
QB.QLB quicklibrary (because I *need* to use the interruptx routine
to talk to a TSR) I am running in a DOS window in win98, with dos support
enabled.

but I also have to use the QBIB.QLB library for the GPIB calls,
my problem is that QB will only open one QLB at a time.
(the program does have the declarations for the functions and constants
throught the QBDECL.CAS include file)

so I thought I would compile the program, and then
make the linker link both of the QB.OBJ and QBIB.OBJ regular libraries to
the
main program.
is this possible, and what is the syntax for doing this?

right now I cant get past the compiling part for some
unknown reason, i think it has to
do with calling these functions
that it doesnt recognize without the libraries already in place.
because i get "1 serious error"

anyone know how I can simply load 2 quicklibraries at once
into the editor? or is there some other way to invoke the GPIB
calls from QB without this library?


thanks,
Greg

grieves@sunchem.chem.uga.edu
0 Kudos
Message 1 of 2
(3,900 Views)
The trick here is to link both the QLB's together. It was a few years ago,
and I don't recall all the details. But here's the basic idea.
As you mentioned, QB only allows one QLB to be loaded at startup, so you
have to combine the two libraries together and then call the new Quick Library
when you start QB4.5. To reduce the size of the library, I used the batch
file supplied by NI to create a quick library with only the function calls
I needed. Actually, it's a two step process. You create the NI library
and then link it into the one supplied with QB4.5.
As I said, I don't recall all the details. I modified the batch file that
came from NI to call the Quick Basic linker to combine the two.
One problem that I was not able to get around with this approach wa
s the
ammount of memory used up by loading the quick library.
Hope this helps.
"Greg Grieves" wrote:
>I have written a program in QB4.5 that requires use of the>QB.QLB quicklibrary
(because I *need* to use the interruptx routine>to talk to a TSR) I am running
in a DOS window in win98, with dos support>enabled.>>but I also have to use
the QBIB.QLB library for the GPIB calls,>my problem is that QB will only
open one QLB at a time.>(the program does have the declarations for the functions
and constants>throught the QBDECL.CAS include file)>>so I thought I would
compile the program, and then>make the linker link both of the QB.OBJ and
QBIB.OBJ regular libraries to>the>main program.>is this possible, and what
is the syntax for doing this?>>right now I cant get past the compiling part
for some>unknown reason, i think it has to do with calling these functions>that
it doesnt recognize without the libraries already in place.>because i get
"1 serious error">
>anyone know how I can simply load 2 quicklibraries at
once>into the editor? or is there some other way to invoke the GPIB>calls
from QB without this library?>>>thanks,>Greg>>grieves@sunchem.chem.uga.edu>>>>
0 Kudos
Message 2 of 2
(3,900 Views)