Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

PCMCIA-GPIB: Communicating with card via BASIC?

How do I send out commands and receive commands to the little pcmcia-gpib card? Is it a print to a port, as if it were a com port?

 

Bob

0 Kudos
Message 1 of 5
(3,714 Views)

The only way I know of is to call throught the ni4882.dll in system32. 

Jensen
National Instruments
Applications Engineer
0 Kudos
Message 2 of 5
(3,686 Views)

Bob,

 

When you refer to BASIC, are you referring to Visual Basic or some DOS based version of BASIC (such as BASICA or QuickBasic)? Also, what operating system are you using? What version of GPIB software do you have installed?

 

gpibtester

0 Kudos
Message 3 of 5
(3,666 Views)

Hi,

I want to use LibertyBASIC (www.libertybasic.com), which is a compiled BASIC. The commands are essentially the same as basica, gwbasic, etc. I can read, write, print, input, output, etc. I think the solution will be some driver that creates a way for me to do  this:  "print #2, (instrument #1, some instruction) for a command and something similar for an input read. People were talking on gpib this sort of way long before Windows came along.

0 Kudos
Message 4 of 5
(3,656 Views)

Bob,

 

National Instruments does not have a language interface for Liberty Basic nor are there any plans to create one. However, if you are using a National Instruments GPIB driver, by default it installs Visual Basic examples. You can refer to the Visual Basic examples and the 2 Visual Basic language interface modules (NIGLOBAL.BAS and VBIB-32.BAS), to see how to implicitly do direct entry to access GPIB-32.DLL. According to Liberty Basic's online help (http://www.libertybasicuniversity.com/lb4help/), direct entry is possible.

 

gpibtester

0 Kudos
Message 5 of 5
(3,649 Views)