modCopyOnTrigger
modCopyOnNonReqTrigger

Synopsis

These two modules are an extension to the GMOD.copy_on_change module.


module modCopyOnTrigger <compile_subs = 0> {
  prim trigger <NEportLevels={2,0}>;
  prim input <NEportLevels={2,0}>;
  prim output <NEportLevels={0,2}>;
  boolean on_inst = 1;
  omethod+notify_inst+req Update(
    .trigger +req+notify,
    .input   +read+req,
    .output  +write
  ) = "GMODcopy_on_change";
};
module modCopyOnNonReqTrigger <compile_subs = 0> {
  prim trigger <NEportLevels={2,0}>;
  prim input <NEportLevels={2,0}>;
  prim output <NEportLevels={0,2}>;
  boolean on_inst = 1;
  omethod+notify_inst+req Update(
    .trigger +notify,
    .input   +read,
    .output  +write
  ) = "GMODcopy_on_change";
};

Description

This is an extension to the beloved GMOD.copy_on_change, with a new V definition. Handy for building UI's. The new macro allows inputs as optional, rather than required.

Inputs

trigger

Used to trigger the copy on change module to copy the input value to the output value if the value has changed.

input

Input value which will be copied to the output value when the trigger is called and the value has not just updated but is also a different value.

Outputs

output

Copy of the changed input value. Is set (written to) only when the input value has changed.

Utility Macros

n/a

Example

n/a

Files

iac_proj/copontrg/cotgmods.v contains the modCopyOnTrigger module and the modCopyOnNonReqTrigger module V definitions.

Other Notes

The low-level CopyOnTriggerMods library containing the modules modCopyOnTrigger and modCopyOnNonReqTrigger does not specify a process. By default the express process will be used.

Authors

Brian Selle, Leon Thrane, Advanced Visual Systems Inc.
Documentation - Ian Curington, Advanced Visual Systems Inc.

Modifications

Paul G. Lever

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL

See Also

n/a