06-09-2009 01:30 PM
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 calls. VB6 use to include a module with global declares and api dll function call names like Send, Receive to mention a couple.
Thanks
06-10-2009 03:31 PM
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
06-10-2009 04:22 PM
Eric: Thank 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, 3= HP 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
06-11-2009 10:59 PM
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