VERIFIED SOLUTION i
X

Is there any function in Paramics to get the left time of the specified signal phase

UPDATED: November 20, 2017


The function qps_SIG_action is used for this purpose:

Syntax:
void qps_SIG_action(NODE* node, int phase, int balance, int action_type, int action_mode, float value);

Description:
This function is used to set the action modification for the selected phase for the given node.

Parameters:
NODE* node -> A pointer to the current node

int phase -> An index to the phase at the given node

int balance -> An index number for the balance phase. A secondary phase whose timings are also adjusted if the phase timings for the primary phase are adjusted and the cycle time for the node is fixed.

int action_type -> An index to the actions type option

int action_mode -> An index to the action mode option

float value -> The new value to set.

Comments:

Action type options are:
  • API_ACTION_HOLD
  • API_ACTION_FREE
  • API_ACTION_VARIABLE
  • API_ACTION_FIXED
  • API_ACTION_CURRENT_GREEN
  • API_ACTION_NEXT_GREEN
  • API_ACTION_MINIMUM_GREEN
  • API_ACTION_MAXIMUM_GREEN
  • API_ACTION_STORED_GREEN
  • API_ACTION_STORED_RED
Action mode options are:
  • API_ACTIONMODE_NONE
  • API_ACTIONMODE_SET
  • API_ACTIONMODE_INCREMENT
  • API_ACTIONMODE_DECREMENT
For more details, refer Programmer manual section 'QPS Set functions -> qps -> SIG -> action'.
Further, this is a limited API support issue.

Environment Details

Product Feature: Programmer
 

Downloads

  • No Downloads