Appendix B
Using the DMAmove and CDS-852 Adapter Code Instruments
©
National Instruments Corporation
B-5
Executing an EPROMed Code Instrument
If a CI is configured in nonvolatile configuration to be executed, the CI will be
booted
upon
the next power cycle of the GPIB-VXI/C. The CI booting procedure actually occurs after
the Resource Manager has run and the local command set has been initiated on all ports.
This guarantees the CI access to all resources of the GPIB-VXI/C.
Deleting a CI
To delete a CI, follow the installation procedure but set the CI’s base address location to
000000. If you wish to delete the CI during runtime, after the CI has already been started up,
you can use the local command set command,
CIDelete?
.
The DMAmove Code Instrument
After the nonvolatile configuration is complete and the GPIB-VXI/C is rebooted, the
DMAmove Code Instrument will be up and running. You should see the following message
printed on the serial port:
National Instruments' DMAmove Code Instrument Running
The following sections describe the runtime capabilities of the DMAmove Code Instrument.
GPIB Address Assignment
The DMAmove CI is assigned Logical Address 160 by default. If a device already exists
at Logical Address 160, the DMAmove CI is assigned the next highest available logical
address. The GPIB address is assigned to be the upper five bits of the logical address
(GPIB address 20), if available. If that GPIB address is taken, it takes the next highest
available GPIB address. You can use the local command set command
LaSaddr?
to
determine the GPIB address and the local command set command
LaSaddr
to change the
GPIB address. You can communicate directly with the DMAmove CI through this GPIB
address.
Capabilities and Operation
The DMAmove CI is a Code Instrument built on top of the function
DMAmove()
. As such,
the DMAmove CI has all of the capabilities of the
DMAmove
function plus a few extra device
interface type features. The following is the C language prototype for the
DMAmove()
function:
DMAmove(source, dest, count, mode)
uint32 source
Local address to transfer from
uint32 dest
Local address to transfer to
uint32 count
Number of bytes to transfer