3-35
3
In Figure 3-3, bytes 4 and 5 are used to output 12 bits of data to a D-to-A
converter. The data output is two bytes of low true bits with a low true pulse
to load the data into the D-to-A convert's latch. HEX characters will be used
to transfer the data as they are easy to program and debug. No handshaking
is required. The example configure and format commands are:
e.g.
CONFigure:OUTput (@ 4,5)
'selects bytes 4 and 5
CONFigure:OUTput:POL 0
'low true input data
CONFigure:OUT:HAND OFF
'no output handshaking
CONFigure:STR 0
'sets low going data
strobe
FORMat:LISTen HEX
'selects HEX coded data
3.8.2.3 Outputting Data Strings
The output data string for the above commands is four HEX characters
terminated with linefeed character or with EOI asserted on the last charac-
ter. The data can be sent with the SOURce:DATA command if the 4863 is
set for a single primary address or if the lower primary or secondary address
is used. If dual addresses are used, the output data string can be sent to the
upper primary or secondary addresses without a command. Use the GPIB
Controller's Output or Send commands to send the commands of data
strings. Some output examples are:
e.g.
Output(dev, "SOURce:DATA 12FC") 'sends 4 HEX characters
to 4863's single primary
address
To send data transparently without a command, first put the unit in the dual
or secondary address mode, then send data to the second or upper address.
e.g.
Output(dev, "SYST:COMM:GPIB:ADDR:MODE DUAL")
Output(dev+1, "12FC")
'Dual Primary address
example
or
Output(dev, "SYST:COMM:GPIB:ADDR:MODE SEC")
Output(dev+sec01, "12FC")
'Secondary address
example
In the examples, some of the commands may be the same as the factory
default settings. They are shown for completeness. Include all of the
configuration parameters in the configuration code in case a different value
was stored in the 4863's Flash.