Adding a parameter block, Compare the parameter block in index to the out, Calculate the offset for the parameter block in – Ciprico Rimfire 3880 User Manual

Page 80: Increment the parameter block in index, Write a 1 to the channel attention port, Removing a status block, Compare the status block in index with the out, Read in the block indicated by the status block, Increment the status block out index

Advertising
background image

21020285 D

User’s Guide

Chapter 4 Command Operation

Page 4 - 22

Using a Command List Structure

Adding a

Parameter

Block

To add an entry to the Parameter Block array, follow these steps:

1.

Compare the Parameter Block IN Index to the OUT Index to be sure the
array is not full.

2.

Calculate the offset for the Parameter Block indicated by the Parameter
Block IN Index and build a Parameter Block containing the command
you wish to issue.

3.

Increment the Parameter Block IN Index.

4.

Write a 1 to the Channel Attention Port.

Removing a

Status Block

To remove an entry from the Status Block array, follow these instructions:

1.

Compare the Status Block IN Index with the OUT Index to find out if
the list is empty.

2.

Read in the Block indicated by the Status Block OUT Index.

3.

Increment the Status Block OUT Index.

Example ‘C’ routines for Command List handling begin on the next page.

Advertising