Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Send command from my own application

Hi,
I have some problem to send commands to �Instrument�, which connect to computer via GPIB card.
I use my own application with advanced script language and 16-bit GPIB ISA card, OS � Windows 2000. I have send to �Instrument� command as string.
Here is fragment of code :

LoadLib(�gpib-32.dll�) <-- Loading DLL
RunLibFunc(handler, , ) <-- Running function from DLL

- the name of function from DLL � should be something like �Send�
- array of arguments for the function : GPIB card ID, GPIB address of �Instrument�, my string, and something else �
Please Help me to find exactly commands syntax and the way to use it.
Thanks in advance
0 Kudos
Message 1 of 4
(3,624 Views)
When you installed the software for your GPIB board, it should also have installed the help file that documents the function calls. Choose the NI-488 help topic from MAX (Measurement and Automation Explorer) or look in the \Program Files\National Instruments\NI-488.2 folder. You will mostly be using the functions ibwrt (to send a cmmand to an instrument) and ibrd (to read instrument data).
0 Kudos
Message 2 of 4
(3,624 Views)
Dennis is correct, you can find information about the functions in the help file.

You can also find a list of functions in the "NI 488.2 Function Reference":

http://digital.ni.com/manuals.nsf/websearch/35cd6168125e0ebd86256789006e84d4

The 488.2 user's manual may also be helpful:

http://digital.ni.com/manuals.nsf/websearch/2c9c18cf53d69f678625678d005075e9

Salvador Santolucito
Applications Engineering
National Instruments
0 Kudos
Message 3 of 4
(3,624 Views)
Hi,
I spoke to Local Technical support of NI in my country and receive help. I'll like to thank Special to Dalia Russek for her care.
And you, people, thank you for your help.
I start to write some code for GPIB at VB (its easy) and I think that I got the principle. Later I'll transfer the code at VB to my application.

Again : Thank to all of you.
0 Kudos
Message 4 of 4
(3,624 Views)