DH_Stack

Provides memory storage and retrieval of numeric values
Download

DH_Stack Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • David Haupt
  • Operating Systems:
  • Windows All
  • File Size:
  • 65 KB

DH_Stack Tags


DH_Stack Description

The SynthEdit module will provide memory storage and retrieval of numeric values organized as a last in first out (LIFO) push-down stack. Values are pushed onto the top of the stack, and popped off in reverse order. Only the topmost value is accessible at any given time. An easy way to reverse a sequence of values is to push them all onto the stack, then pop them off one by one. Values can optionally be saved to a text file when the module closes, and loaded from a text file when the module opens, to provide persistent storage, or to pre-load the stack with a predefined set of values. Inputs: Input - Value to be stored Push - Writes the Input value to the top of the stack. Pop - Deletes the value currently at the top of the stack. If there was a previously stored value, it becomes the new top value. File Name - Should be used to give the module's data file a unique name if a file is used. Clear - Resets all slots to 0 and deletes the saved file if any. I suggest connecting a Voltage to List to it, and applying a pulse from a momentary contact button or other source to the Voltage to List's input to clear the memory. Outputs: Output pin: Provides the value currently at the top of the stack.


DH_Stack Related Software