Target Streaming Base Class Functionality

The P2P links between the devices must be initialized in a controlled manner for the RTG VST to be able to exchange data with the coprocessor. The RTG API handles this initialization.

The base class allows the RTG API to work with a coprocessor. An instance of this class is provided to the RTG API during initial configuration. Refer to the RTG Example VI for more implementation details. Use the following VIs from the RTG Coprocessor Target Streaming Interface class library to get started:

  • Create Coprocessor VI—Creates a coprocessor link class based on host architecture decisions discussed in Host Architecture Options. This VI supports reading information from the RTG INI file or option string. This VI calls the Initialize VI after building the proper configuration.
  • Initialize Coprocessor Session VI—Use this method to build and configure a coprocessor target streaming class. This VI does not support adding values to the INI file, but does support more customization capabilities.
  • Set Coprocessor Target Streaming Resources VI—After the coprocessor target streaming class is created and configured in the RTG API, call this VI and pass the newly created coprocessor class to the RTG API. Repeat this call for each RTG/coprocessor pair used in this session. Call this VI prior to calling the RTG Initialize VI.
  • Coprocessor Target Streaming Status VI—Use this VI to monitor how the P2P stream is performing, including P2P state, number of elements to write, and enabled status.
  • Destroy Coprocessor Session VI—Use this VI to close the FPGA reference. Call this VI while the RTG is in the inactive state, before closing the RTG API.