Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

HP Basic commands in C for GPIB

I may be missing something ;( I am attempting to shutdown the numbr builder in a HP 8563 Spec An. Under HP Basic I am able to use the "ASSIGN 718 xxx; FORMAT OFF" command. I have been unable to use the FORMAT OFF command with my National Instruments DLL.
Is there a command that allows me to write/address a device with a "text" command like "XXX ;FORMAT OFF"
XXX = board ID and Address of device (ie. 718)
0 Kudos
Message 1 of 2
(3,884 Views)

If you want to send a command to an instrument you can just do an ibwrt.
Here is the prototype
int ibwrt (int ud, void *wrtbuf, long count)

ud is the device descriptor and is attained from the
ibdev function. ibdev acquires a device descriptor to use in subsequent device-level traditional NI-488.2
calls. It opens and initializes a device descriptor and configures it according to the input
parameters. (board index, primary address, etc)

int ibdev (int BdIndx, int pad, int sad, int tmo, int eot, int eos)

See the NI-488.2 Function Reference Manual for Windows for details

Ray K
NI Applications Engineer.

0 Kudos
Message 2 of 2
(3,884 Views)