Because the IO Plugin and UI Plugin run in separate applications, they must communicate through a network protocol. Data Record AD provides the following two APIs for plugin communication.
-
Data Stream gRPC service (recommended)
-
IO Plugin side: After creating an IO Plugin template project, navigate to: Dependencies>>vilib>>ADAS Utilities>>Send Data to gRPC Service.vim. Call this VI and provide the Topic Name and Data inputs to publish data to a gRPC message topic.
-
UI Plugin side: Use the DatastreamGrpc library functions to subscribe to the published topic and read the data. The library functions are located at: C:\Program Files\National Instruments\LabVIEW 2020\vi.lib\DatastreamGrpc. For examples of how to use these functions, refer to: data-record-ad/DataStreamGrpc on GitHub, specifically Example - Send Client Message.vi.
-
Skylink Message
-
IO Plugin side: Modify the Plugin method according to the VI snippet shown in the figure below.
b. UI Plugin side: After creating a UI Plugin template project, you can process the registered message data in the Console Message case of the template's existing message-handling implementation, as shown in the figure below.