The top level RTG Passthrough Template VI serves as a good starting point for creating a custom Coprocessor application. It provides everything required to interface with the RTG and custom processing can be easily added to the diagram. The major components are as follows.

IFW Interface

Figure 54. IFW Interface

Data Processing

Data comes from the VST through the read VI. After the read, any custom data processing can occur. This data processing must meet the following criteria:

  • Capable of processing multiple samples per clock cycle (8 or 16)
  • Capable of handling clocks where there is not valid data
  • Receives an input valid signal
  • Generates an output valid signal
Figure 55. Data Processing

Input Trigger Processing

The following figure shows how to read and process input triggers. The physical trigger source will be configured by the host.

Figure 56. Input Trigger Processing

Set the input trigger processing in the INI file or with an option string.

INI file example:

[5841_1]
pxi_trigger_output = PXI_Trig7

Option string example:

5841_1=pxi_trigger_output:PXI_Trig7

Data Path Disabled

The following figure shows a simple method using a front panel control to replace the data path with all 0’s when data path is disabled.

Figure 57. Data Path Disabled (Code Snippet from Data Processing)