Visual Programming

Overview

There is an example implementation of the temperature cool sensor application available in the apps folder. In this implementation, it contains all the API functions and demos for how to use them.

The below table captures the function of vp.

Inputs and Outputs:

s.no

VP data group

Supported operations

Data group

Data operations
  • Read data

  • Write data

  • Constant

  • Triggered write

  • Typecast

Mathematical group

Math operations
  • Addition

  • Subtraction

  • Multiplication

  • Division

  • Modulous

  • Integer

  • Sign

  • Negate

  • Power

  • Exponential

  • Absolute

  • Square root

  • Trignometry(sin,cos,tan,sin-1,cos-1,tan-1)

  • Log(Log, Log10, Exp10)

  • Summation

  • Polynomial

Logical group

Logical operations
  • Gates(AND,OR,NOT,XOR)

  • Flipflops(SRFF, TFF, DFF)

  • Latch

Conditional group

Conditional operations
  • Equal to, Not equal to

  • Less than, Greater than

  • Less than or equal to, Greater than or equal to

Switches group

Switches operations
  • Selector

  • Switch negate

  • Switch priority

  • Switch minimum

  • Switch maximum

  • Toggle switch

  • Delay

Input Limiters group

Limiters operations
  • Integrator

  • Priority Encoder

  • Input limiter

  • Low pass filter

  • Input limiter

  • Slew limiter

  • PID controller

Transformation group

Transformation operations
  • Polar to Cartesian

  • Cartesian to Polar

  • Angular units

  • Length units

  • Mass units

  • Volume units

  • Time units

  • Temperature units

Physical group

Physical operations
  • IC Engine

  • Longitudinal Vehicle

Wave Generator group

Sinewave generator

The below table captures the function that are to be called from the application logic.

API Functions

Function

Description

rs_vp_init

To initialize the VP stack.

rs_vp_process

To be called periodically to process the block operations.

Callback Functions

Function

Description

rcb_vp_blk_error_info

Called when blocks error occurs.

Error Code

  • Every API’s for the VP returns some success or failure values. Please refer below section,

Implementation Guide

This section explains how to implement the VP using the RAPIDSEA stack, the steps to be followed are

  • Initialize the VP

  • Import flint project.

  • Call the vp process periodically to execute the VP blocks.

  • Blocks execute based on the flint project

VP Header

Documentation from the relevant header as follows:

Warning

doxygenfile: Cannot find file “rs_vp_core.h