Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

vb.net 2008

Connection to PCMCIA-GPIB api using VB.net 2008 (VB) without using Measurement Studio.

 

Does any one have an example of sending commands to the card using API function callsVB6 use to include a module with global declares and api dll function call names like SendReceive to mention a couple

 

Thanks 

0 Kudos
Message 1 of 4
(4,143 Views)

mpage,

 

For examples for programming for our gpib devices I would recommend looking in the folder C:\Documents and Settings\All Users\Documents\National Instruments\NI-488.2\Examples after installing the 488.2 driver on your computer.  There is also a shortcut to this folder located in your start menu at Start » All Programs » National Instruments » NI-488.2 » Examples.

 

Eric K

Applications Engineering

National Instruments

0 Kudos
Message 2 of 4
(4,121 Views)

EricThank you first of all

 

I have looked at the example many times that you show but the problem is I appear to need more commands than are available under the example

 

As I look at example I could not figure out how to use the NI4882.device or NI4882.Board to duplicate the calls.

 

I believe your response will be very helpful to others also.

 

Paring my vb6 code down here would be an example of talking to HP laser to set the inch mode

  

 API Call Under Visual basic 6

 

Call ibfind("GPIB0", Result


Call SendIFC(0)      'set gpib board as prim


Call ibtmo(0, T10s)

 

Call DevClear(0, 3) '0=Card address, 3HP laser


Call Send(0, 3, "0RC") '"Record Output to HP-IB card"

 

Call ibtmo(0, T300s)


Call Send(0, 3, "UE", &H1) 'Send Inch mode and NL with EOI after a transfer

 

0 Kudos
Message 3 of 4
(4,118 Views)

mpage,

 

The examples and documentation that install with the driver are the starting point I would encourage you to use.  Unfortunately, I am not familiar with any particular example that demonstrates what you are asking.

 

Eric K

Applications Engineering

National Instruments

0 Kudos
Message 4 of 4
(4,097 Views)