Specifications
Here’s an example command sequence for Figure 3-10. It assumes that the FIFO
mode was set to BLOCK and that at least one algorithm is sending values to the
FIFO.
following loop reads number of values in FIFO while algorithms executing
loop while “measuring” bit is true see STAT:OPER:COND bit 4
SENS:DATA:FIFO:COUNT? query for count of values in FIFO
input n_values here
if n_values >= 16384 Sets the minimum block size to
transfer
SENS:DATA:FIFO:PART? n_values ask for n_values
input read_data here Format depends on FORMat cmd
end if
end while loop
following checks for values remaining in FIFO after “measuring” false
SENS:DATA:FIFO:COUNT? query for values still in FIFO
input n_values here
if n_values if any values…
SENS:DATA:FIFO:PART? n_values
input read_data here get remaining values from FIFO
end if
Reading the Latest FIFO Values (FIFO mode OVER)
In this mode the FIFO always contains the latest values (up to the FIFO’s capacity
of 65,024 values) from running algorithms. In order to read these values, the
algorithms must be stopped (use ABORT). This forms a record of the algorithm’s
latest performance. In the OVERwrite mode, the FIFO must not be read while it is
accepting data from algorithms. Algorithm execution must be stopped before an
application program reads the FIFO.
Here is an example command sequence that can be used to read values from the
FIFO after algorithms are stopped (ABORT sent).
SENS:DATA:FIFO:COUNT? query count of values in FIFO
input n_values here
if n_values if any values…
SENS:DATA:FIFO:PART? n_values Format of values set by FORMat
input read_data here get remaining values from FIFO
end of if
Programming the VT1419A Multifunction
Plus
Retrieving Algorithm Data
84 Chapter 3
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com










