Generator

Navigation:  Widget Designer > Nodes > Input Nodes > Generic Input >

Generator

prev main next

Navigation:  Widget Designer > Nodes > Input Nodes > Generic Input >

Generator

prev main next

Please wait. Due to its content this page might take a while to load...

The Generator input node provides constantly alternating values, different patterns like sine or a ramp function can be selected

This node can be found under Nodes > Input > Generic > Generator

wd_nodes_input_generator

Node properties

Speed:

Enter here the speed that the generated curve should have. A smaller value will result in a longer time one period of the resulting signal would take.

 

Size:

The Size declares the maximum positive value the generated signal can have. Please note that the types "Sine", "Cosine" and "Circle" always have their maximum at 1, due to being derived from calculating with a unit circle.

Type:

Select in this drop-down what type of curve your output signal is supposed to have. For more information, please refer to the topic Curve Types below this entry

Curve Types

The Generator Node allows setting different curve types. Connected to a GraphDisplay, the curve can be made visible:

Linear

wd_nodes_input_generator-lin

Ramp

wd_nodes_input_generator-ramp

Ramp Inverted

wd_nodes_input_generator-rampINV

Sine

wd_nodes_input_generator-sin

 

Cosine

wd_nodes_input_generator-cos

 

 

Tangent

wd_nodes_input_generator-tan

Random

wd_nodes_input_generator-rnd

 

Random Sine / Cosine: generates values with a maximum deviation of +/-0.5 from the original sine / cosine curve

wd_nodes_input_generator-RNDsin

Circle: generates a sine (outputted as Value 1) and the corresponding cosine curve (outputted as Value 2). Those can be used as X and Y coordinates to create a circular motion.

wd_nodes_input_generator-sin

 

Node control

With Widget Designer version 6, all nodes support so called node commands. Node commands access functions (i.e methods) from a node and / or set a parameter (i.e. property).

Enter "node", followed by the according ID and a dot and a list will pop up showing all available commands for the node. For instance, Node1.TintColor.SetRGB(125,0,255), colors the node in purple.
In addition, the node properties with a parameter ID (the small superscript number) can be edited via the command Node1.SetParam(ID,new Value) or WDNodeSetParam(NodeID,ParamID,Value).

Node output values

The Node generates the following output:

- Value 1

- Value 2 (which is the inverted Value 1, except for "Circle")